aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r--src/fs/fs.h46
1 files changed, 10 insertions, 36 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h
index c8712b492..7df395e86 100644
--- a/src/fs/fs.h
+++ b/src/fs/fs.h
@@ -238,19 +238,6 @@ struct GNUNET_FS_FileInformation
238 * (for operational persistence). 238 * (for operational persistence).
239 */ 239 */
240 char *serialization; 240 char *serialization;
241
242 /**
243 * In-memory cache of the current CHK tree.
244 * This struct will contain the CHK values
245 * from the root to the currently processed
246 * node in the tree as identified by
247 * "current_depth" and "publish_offset".
248 * The "chktree" will be initially NULL,
249 * then allocated to a sufficient number of
250 * entries for the size of the file and
251 * finally freed once the upload is complete.
252 */
253 // struct ContentHashKey *chk_tree;
254 241
255 /** 242 /**
256 * Encoder being used to publish this file. 243 * Encoder being used to publish this file.
@@ -262,24 +249,6 @@ struct GNUNET_FS_FileInformation
262 * failed). 249 * failed).
263 */ 250 */
264 char *emsg; 251 char *emsg;
265
266 /**
267 * Number of entries in "chk_tree".
268 */
269 // unsigned int chk_tree_depth;
270
271 /**
272 * Depth in the CHK-tree at which we are
273 * currently publishing. 0 is the root
274 * of the tree.
275 */
276 // unsigned int current_depth;
277
278 /**
279 * How many bytes of this file or directory have been
280 * published so far?
281 */
282 // uint64_t publish_offset;
283 252
284 /** 253 /**
285 * Data describing either the file or the directory. 254 * Data describing either the file or the directory.
@@ -580,14 +549,19 @@ struct GNUNET_FS_UnindexContext
580 void *client_info; 549 void *client_info;
581 550
582 /** 551 /**
583 * Overall size of the file. 552 * Merkle-ish tree encoder context.
584 */ 553 */
585 uint64_t file_size; 554 struct GNUNET_FS_TreeEncoder *tc;
586 555
587 /** 556 /**
588 * How far have we gotten? 557 * Handle used to read the file.
558 */
559 struct GNUNET_DISK_FileHandle *fh;
560
561 /**
562 * Overall size of the file.
589 */ 563 */
590 uint64_t unindex_offset; 564 uint64_t file_size;
591 565
592 /** 566 /**
593 * When did we start? 567 * When did we start?