Hi, Reinoud! On Sat, 23 Aug 2008 22:38:53 +0200, Reinoud Zandijk wrote: > Dear folks, > i wondered why directory lengths are specified in blocksize units resulting > in the last dirent in the block to fill up the space with its rec_len. > Searching for free space to enter a directory entry i could use > rec_len - NILFS_DIR_REC_LEN(last_dir_enty->namelen) as free space indicator > but i wondered if it might not be a better practice to allow zero-length > dir entries that are used to fill up the rest of the block with its > rec_len. > > Thoughts?
The directory format of NILFS comes from that of ext2 file system except its inode number field is extended to 64 bytes. So, for code maintenance, I think it's not good idea to make such change. Redesigning directory format is actually one of todo items. If someone send us a better alternative, we may switch to it. In the meantime however, we'd like to avoid confusion on this. Thank you for comments. Regards, Ryusuke Konishi _______________________________________________ users mailing list [email protected] https://www.nilfs.org/mailman/listinfo/users
