mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
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:
parent
5377d87271
commit
99c7696a27
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user