libcephfs: negative error return of ceph_ll_lookup_root()

Generally speaking, a zero or positive return code of (POSIX-style) call
shall indicates success, and a negative value means something really bad
happens by constrast.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
xie xingguo 2016-06-18 14:11:11 +08:00
parent 5377d87271
commit 99c7696a27

View File

@ -1319,7 +1319,7 @@ extern "C" int ceph_ll_lookup_root(struct ceph_mount_info *cmount,
*parent = cmount->get_client()->get_root();
if (*parent)
return 0;
return EFAULT;
return -EFAULT;
}
extern "C" struct Inode *ceph_ll_get_inode(class ceph_mount_info *cmount,