diff options
author | Gui Hecheng <guihecheng@cmss.chinamobile.com> | 2017-07-22 07:12:06 +0200 |
---|---|---|
committer | Gui Hecheng <guihecheng@cmss.chinamobile.com> | 2017-07-22 07:12:06 +0200 |
commit | 860716e17e840df11a7e1d8b6ca0c1ee694b038b (patch) | |
tree | 62d799988655d8c8d0ee7467871f033bdf70735b /src/test/librgw_file_gp.cc | |
parent | rgw_file: new fsid for fs instance (diff) | |
download | ceph-860716e17e840df11a7e1d8b6ca0c1ee694b038b.tar.xz ceph-860716e17e840df11a7e1d8b6ca0c1ee694b038b.zip |
rgw_file: introduce rgw_mount2 with a bucket name parameter
This explicitly allow mount a specified bucket in librgw.
Originally, mounting a bucket is implemented like a sub-directory
mount in nfs-ganesha FSAL_RGW with lookup_path.
With this change, we allow root_fh to points exactly to the root
of a mounted fs instance, which is a bucket or "/" rather than
always let root_fh points to "/".
Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
Diffstat (limited to 'src/test/librgw_file_gp.cc')
-rw-r--r-- | src/test/librgw_file_gp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/librgw_file_gp.cc b/src/test/librgw_file_gp.cc index d2b00fc8300..2b591e46898 100644 --- a/src/test/librgw_file_gp.cc +++ b/src/test/librgw_file_gp.cc @@ -179,8 +179,8 @@ TEST(LibRGW, INIT) { } TEST(LibRGW, MOUNT) { - int ret = rgw_mount(rgw, uid.c_str(), access_key.c_str(), secret_key.c_str(), - &fs, RGW_MOUNT_FLAG_NONE); + int ret = rgw_mount2(rgw, uid.c_str(), access_key.c_str(), secret_key.c_str(), + "/", &fs, RGW_MOUNT_FLAG_NONE); ASSERT_EQ(ret, 0); ASSERT_NE(fs, nullptr); } |