aboutsummaryrefslogtreecommitdiffstats
path: root/OPENSOLARIS.LICENSE
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2013-10-02 11:22:53 -0400
committerBrian Behlendorf <[email protected]>2013-10-29 09:51:59 -0700
commitc12e3a594a49ed10b7870d950c1f336f78f136cb (patch)
treef44342977c62b07bffa357b53a2afb804fd91ffc /OPENSOLARIS.LICENSE
parentd65e73810938e5619b72591d3438063b00949e77 (diff)
Restructure zfs_readdir() to fix regressions
This does the following: 1. It creates a uint8_t type value, which is initialized to DT_DIR on dot directories and ZFS_DIRENT_TYPE(zap.za_first_integer) otherwise. This resolves a regression where we return unintialized values as the directory entry type on dot directories. This was accidentally introduced by commit 8170d281263e52ff33d7fba93ab625196844df36. 2. It restructures zfs_readdir() code to use `uint64_t offset` like Illumos instead of `loff_t *pos`. This resolves a regression where negative ZAP cursors were treated as if they were dot directories. 3. It restructures the function to more closely match the structure of zfs_readdir() on Illumos and removes the unused variable outcount, which was only used on Illumos. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #1750
Diffstat (limited to 'OPENSOLARIS.LICENSE')
0 files changed, 0 insertions, 0 deletions