summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-04-06 19:01:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-07 08:31:17 -0700
commit7fa10d20012296300dfe645cb3e628a4e9a0d5ef (patch)
treed3678ad2cbfb41624af0058b7de1ee2d48b7334c /net
parentb028fcfc4cd198a6aa1ffcfb872073ccc1db3459 (diff)
downloadlinux-stable-7fa10d20012296300dfe645cb3e628a4e9a0d5ef.tar.gz
linux-stable-7fa10d20012296300dfe645cb3e628a4e9a0d5ef.tar.bz2
linux-stable-7fa10d20012296300dfe645cb3e628a4e9a0d5ef.zip
nilfs2: fix improper return values of nilfs_get_cpinfo ioctl
A few tool developers gave me requests for fixing inconvenient return value of nilfs_get_cpinfo() ioctl; if the requested mode is NILFS_SNAPSHOT and the specified start entry is not a snapshot, the ioctl unnaturally returns one as the number of acquired snapshot item. In addition, the ioctl function returns an ENOENT error for checkpoints within blocks deleted by garbage collection. These behaviors require corrections for programs which enumerate snapshots. This resolves the inconvenience by changing the return values to zero for the above cases. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions