--- src/sys/vfs/hpfs/hpfs_vnops.c 2005/08/20 18:37:21 1.25 +++ src/sys/vfs/hpfs/hpfs_vnops.c 2005/08/22 16:53:26 1.26 @@ -876,6 +876,10 @@ hpfs_readdir(struct vop_readdir_args *ap dprintf(("hpfs_readdir(0x%x, 0x%x, 0x%x): ",hp->h_no,(u_int32_t)uio->uio_offset,uio->uio_resid)); /* + * As we need to fake up . and .., and the remaining directory structure + * can't be expressed in one off_t as well, we just increment uio_offset + * by 1 for each entry. + * * num is the entry we need to start reporting * cnum is the current entry */