]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: introduce rgw_mount2 with a bucket name parameter 15330/head
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Sat, 22 Jul 2017 05:12:06 +0000 (13:12 +0800)
committerGui Hecheng <guihecheng@cmss.chinamobile.com>
Sat, 22 Jul 2017 05:12:06 +0000 (13:12 +0800)
commit860716e17e840df11a7e1d8b6ca0c1ee694b038b
tree62d799988655d8c8d0ee7467871f033bdf70735b
parent178b547e83a2c0eeb024bbe4ca2ff8d8e7d50572
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>
src/include/rados/rgw_file.h
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/test/librgw_file.cc
src/test/librgw_file_aw.cc
src/test/librgw_file_cd.cc
src/test/librgw_file_gp.cc
src/test/librgw_file_nfsns.cc