Mercurial > hg > toybox
changeset 113:1f7dcdef245c
And more mke2fs changes.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 18 Apr 2007 21:41:38 -0400 |
parents | aadd28817955 |
children | ce6956dfc0cf |
files | toys/toylist.h |
diffstat | 1 files changed, 20 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/toylist.h Wed Apr 18 21:39:46 2007 -0400 +++ b/toys/toylist.h Wed Apr 18 21:41:38 2007 -0400 @@ -19,16 +19,30 @@ }; struct mke2fs_data { + // Command line arguments. long blocksize; long bytes_per_inode; - long inodespg; - long reserved_percent; - char *gendir; + long inodes; // Total inodes in filesystem. + long reserved_percent; // Integer precent of space to reserve for root. + char *gendir; // Where to read dirtree from. + + // Internal data. + struct dirtree *dt; // Tree of files to copy into the new filesystem. + unsigned treeblocks; // Blocks used by dt + unsigned treeinodes; // Inodes used by dt - unsigned blocks, groups, blockbits, treeblocks, treeinodes; - int fsfd, noseek; + unsigned blocks; // Total blocks in the filesystem. + unsigned freeblocks; // Free blocks in the filesystem. + unsigned inodespg; // Inodes per group + unsigned groups; // Total number of block groups. + unsigned blockbits; // Bits per block. (Also blocks per group.) + + // For gene2fs + unsigned nextblock; // Next data block to allocate + unsigned nextgroup; // Next group we'll be allocating from + int fsfd; // File descriptor of filesystem (to output to). + struct ext2_superblock sb; - struct dirtree *dt; }; struct touch_data {