]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: fix return value of verify_set_primary_sb()
authorLi Zhong <zhong@linux.vnet.ibm.com>
Thu, 26 Sep 2013 06:48:12 +0000 (06:48 +0000)
committerRich Johnston <rjohnston@sgi.com>
Thu, 17 Oct 2013 19:45:39 +0000 (14:45 -0500)
commitae181820d03e19f145dbd058c0f8fa59fa18468c
treea743b921618bf5bded1e11eb789bead8897d37be
parent548c2e3e5b123266b4b89cc81bedd113442570b8
xfsprogs: fix return value of verify_set_primary_sb()

If get_sb() fails because of EOF, it will return with retval 1, which will
then be interpreted as XR_BAD_MAGIC("bad magic number") in phase1() when
warning the user.

This patch fix it by using XR_EOF here, so it would be interpreted correctly.
Also change the associated comments about the return value.

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
repair/sb.c