diff options
author | Andrey Vesnovaty <[email protected]> | 2013-10-08 10:28:40 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-02-10 16:34:30 -0800 |
commit | 5f15fa22167ff665d0db0159551eb90759683984 (patch) | |
tree | dfeda1fb2aa43c1e7d52ac3c8eb850d23e1bfb52 /lib/libzpool/kernel.c | |
parent | 3941503c0a26467fc4da63d4ee190c96edd8d0fd (diff) |
Fix readdir for .zfs/snapshot directory
dmu_snapshot_list_next stores the index of the next snapshot entry to the offp
argument, which zpl_snapdir_iterate then uses for the dir_emit. This
result in an off-by-one error. Therefore a temporary variable should be
used.
This was a regression introduced in commit zfsonlinux/zfs@0f37d0c.
Signed-off-by: Andrey Vesnovaty <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #2930
Diffstat (limited to 'lib/libzpool/kernel.c')
0 files changed, 0 insertions, 0 deletions