freebsd-skq/sys/fs/ext2fs
Pedro F. Giffuni 78d912bbc3 ext2fs: Don't assume that on-disk format of a directory is the same
as in <sys/dirent.h>

ext2_readdir() has always been very fs specific and different
with respect to its ufs_ counterpart. Recent changes from UFS
have made it possible to share more closely the implementation.

MFUFS r252438:
Always start parsing at DIRBLKSIZ aligned offset, skip first entries if
uio_offset is not DIRBLKSIZ aligned. Return EINVAL if buffer is too
small for single entry.

Preallocate buffer for cookies.

Skip entries with zero inode number.

Reviewed by:	gleb, Zheng Liu
MFC after:	1 month
2013-07-25 15:34:20 +00:00
..
ext2_alloc.c Define and use e2fs_lbn_t in ext2fs. 2013-06-23 02:44:42 +00:00
ext2_balloc.c Define and use e2fs_lbn_t in ext2fs. 2013-06-23 02:44:42 +00:00
ext2_bmap.c Define and use e2fs_lbn_t in ext2fs. 2013-06-23 02:44:42 +00:00
ext2_dinode.h Re-sort ext2fs headers to make things easier to find. 2013-06-16 16:10:45 +00:00
ext2_dir.h Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
ext2_extern.h Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
ext2_hash.c Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
ext2_htree.c Fix some typos. 2013-07-07 01:32:52 +00:00
ext2_inode_cnv.c Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
ext2_inode.c Turn DIAGNOSTICs to INVARIANTS in ext2fs. 2013-06-12 15:24:48 +00:00
ext2_lookup.c ext2fs: Don't assume that on-disk format of a directory is the same 2013-07-25 15:34:20 +00:00
ext2_mount.h ext2fs: Remove unused em_e2fsb definition.. 2013-02-05 03:23:56 +00:00
ext2_subr.c Define and use e2fs_lbn_t in ext2fs. 2013-06-23 02:44:42 +00:00
ext2_vfsops.c Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
ext2_vnops.c Implement 1003.1-2001 pathconf() keys. 2013-07-10 22:03:01 +00:00
ext2fs.h Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
fs.h Define and use e2fs_lbn_t in ext2fs. 2013-06-23 02:44:42 +00:00
htree.h Initial implementation of the HTree directory index. 2013-07-06 18:28:06 +00:00
inode.h Define and use e2fs_lbn_t in ext2fs. 2013-06-23 02:44:42 +00:00