]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: introduce rgw_mount2 with a bucket name parameter 18800/head
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Sat, 22 Jul 2017 05:12:06 +0000 (13:12 +0800)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 7 Nov 2017 21:08:51 +0000 (16:08 -0500)
commit7efa91c7ced61f0fde81adfc0540a36fafafb10d
tree522c253e221d4623552a2c5e884ac188dc1d863f
parentb53c3948a5e48623bb437b2d36718ce3a799aa54
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>
(cherry picked from commit 860716e17e840df11a7e1d8b6ca0c1ee694b038b)
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