X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_guts.h;fp=yaffs_guts.h;h=e2b2fb9378afe615beba22b0eb86f3d65a992b99;hp=c2f7ac46ef6c7e9ca4f2f57a5616b4c92c615a3c;hb=33308768bd24abe4e1f59c5025a3dd824119ae1d;hpb=03e4ccdbfa08eb7f504d36732727b2fda4352a3e diff --git a/yaffs_guts.h b/yaffs_guts.h index c2f7ac4..e2b2fb9 100644 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -374,9 +374,19 @@ struct yaffs_tnode { * - a hard link */ +/* The file variant has three file sizes: + * - file_size : size of file as written into Yaffs - including data in cache. + * - stored_size - size of file as stored on media. + * - shrink_size - size of file that has been shrunk back to. + * + * The stored_size and file_size might be different because the data written + * into the cache will increase the file_size but the stored_size will only + * change when the data is actually stored. + * + */ struct yaffs_file_var { loff_t file_size; - loff_t scanned_size; + loff_t stored_size; loff_t shrink_size; int top_level; struct yaffs_tnode *top;