]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
metadump: include NULLFSINO check in inode copy code
authorBrian Foster <bfoster@redhat.com>
Tue, 24 Feb 2015 00:19:31 +0000 (11:19 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 24 Feb 2015 00:19:31 +0000 (11:19 +1100)
commit39fe84affd9c3773235fc66f7050c43babc125b8
treee14e272e6cc80e50645795424f9386dcc7ba6a62
parent5c6afe94262439357b79c2aacccbe09cecef9fd1
metadump: include NULLFSINO check in inode copy code

The copy_ino() function includes a check for effectively NULL inode
numbers. It checks for 0 but does not include NULLFSINO. This leads to
spurious warnings in some instances. For example, copy_ino() is called
unconditionally for sb quota inodes from copy_sb_inodes(), values of
which can be NULLFSINO.

Check for NULLFSINO and return quietly from copy_ino().

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/metadump.c