Files
mirror_zfs/module/zfs
Richard Yao c12e3a594a 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 8170d28126.

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 <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1750
2013-10-29 09:51:59 -07:00
..
2013-10-25 13:59:40 -07:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2013-07-02 13:34:31 -07:00
2013-10-25 13:59:40 -07:00
2013-10-25 13:59:40 -07:00
2013-09-04 16:01:24 -07:00
2010-08-31 13:41:58 -07:00
2013-09-04 16:01:24 -07:00
2013-10-25 13:57:25 -07:00
2012-08-27 12:01:37 -07:00
2013-10-25 13:59:40 -07:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2013-10-25 13:57:25 -07:00
2013-09-25 15:44:22 -07:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2012-10-15 16:01:54 -07:00
2010-08-31 08:38:46 -07:00
2013-10-22 10:12:39 -07:00
2012-08-27 12:01:37 -07:00
2013-10-25 13:59:40 -07:00
2013-10-18 14:34:01 -07:00
2013-09-04 16:01:24 -07:00
2013-09-25 15:44:22 -07:00
2013-09-04 16:01:24 -07:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2010-08-31 13:41:58 -07:00
2013-10-25 13:57:25 -07:00
2013-09-25 15:38:44 -07:00
2013-09-04 16:01:24 -07:00
2013-10-25 13:57:25 -07:00
2012-08-27 12:01:37 -07:00
2012-08-27 12:01:37 -07:00
2013-01-08 10:35:42 -08:00
2013-06-19 15:14:10 -07:00
2012-09-05 08:44:58 -07:00
2013-06-19 15:14:10 -07:00
2013-06-19 15:14:10 -07:00
2010-08-31 13:41:58 -07:00
2013-09-04 16:01:24 -07:00
2013-06-19 15:14:10 -07:00
2013-04-19 15:43:16 -07:00
2013-05-01 17:05:52 -07:00
2011-03-02 11:44:34 -08:00
2012-12-20 09:56:28 -08:00
2013-09-25 15:44:22 -07:00
2013-06-19 15:14:10 -07:00
2013-09-04 16:01:24 -07:00
2013-09-13 13:31:24 -07:00
2013-09-04 16:01:24 -07:00
2013-05-01 17:05:52 -07:00
2013-09-04 16:01:24 -07:00
2013-08-15 16:19:07 -07:00
2013-09-13 13:31:24 -07:00
2013-08-22 13:30:44 -07:00
2010-09-17 16:24:15 -07:00
2013-09-04 16:01:24 -07:00