summaryrefslogtreecommitdiff
path: root/src/libcephfs.cc
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2012-10-25 12:04:00 -0700
committerNoah Watkins <noahwatkins@gmail.com>2012-10-26 08:38:26 -0700
commitf1eef532005d256f646cb3334bc40fe798dfac3d (patch)
tree0eeef747f43a88113ea622501748731411a6ea17 /src/libcephfs.cc
parent1152656c620c347cfd17035ea3e41711a79b86ce (diff)
downloadceph-f1eef532005d256f646cb3334bc40fe798dfac3d.tar.gz
client: double mount returns -EISCONN
Change error code from -EDOM to -EISCONN when mounting an already mounted ceph_mount_info instance. The current convention is to return -ENOTCONN when using the libcephfs interface in an unmounted state. Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Diffstat (limited to 'src/libcephfs.cc')
-rw-r--r--src/libcephfs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcephfs.cc b/src/libcephfs.cc
index 69fca3f6a39..d589633f5aa 100644
--- a/src/libcephfs.cc
+++ b/src/libcephfs.cc
@@ -67,7 +67,7 @@ public:
int ret;
if (mounted)
- return -EDOM;
+ return -EISCONN;
common_init_finish(cct);