]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: fix inode command with "-n" for bogus inode
authorEric Sandeen <sandeen@sandeen.net>
Sun, 2 Oct 2016 23:56:00 +0000 (10:56 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 2 Oct 2016 23:56:00 +0000 (10:56 +1100)
commit197069505b88b83d215662b5e62be1d89ba00d5d
tree1101c704da2395d893bf607f6c4bf98537e916ad
parentd5b046de584df2577e7ed180c7371f6ab9dd2d4b
xfs_io: fix inode command with "-n" for bogus inode

If we ask for the next allocated inode after a number for which
no other inode exists, the bulkstat returns success, but with
count == 0.  If we ignore this fact, we print a garbage result
from bstat.bs_ino in this case, so fix it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/open.c