diff options
author | Miles Bader <miles@gnu.org> | 1995-04-27 14:36:55 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-27 14:36:55 +0000 |
commit | a0c17c4d2999ec5886ac396c45d1bd40bd818987 (patch) | |
tree | ed07859a8dafbddde6d00402893864bd78eebc0e /ext2fs | |
parent | 312731a709958bf10ab58556ae019e1eb896ab40 (diff) |
Formerly ext2fs.h.~35~
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/ext2fs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h index b4171d85..e94e6a60 100644 --- a/ext2fs/ext2fs.h +++ b/ext2fs/ext2fs.h @@ -122,8 +122,10 @@ void *memscan(void *buf, unsigned char ch, unsigned len); /* ---------------------------------------------------------------- */ +/* ext2fs specific per-file data. */ struct disknode { + /* The inode number of this file. */ ino_t number; /* For a directory, this array holds the number of directory entries in @@ -142,11 +144,18 @@ struct disknode /* Random extra info used by the ext2 routines. */ struct ext2_inode_info info; + /* The upi structure for this file's file pager. */ struct user_pager_info *fileinfo; /* True if the last page of the file has been made writable, but is only partially allocated. */ int last_page_partially_writable; + + /* True if the last block of this file (the one ending at allocsize bytes) + has actually been allocated. We must eventually do so to maintain a + consistent on-disk state, but delaying it can improveme allocation, and + it's an inconsistency easily fixed by fsck. */ + int last_block_allocated; }; struct user_pager_info |