]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: new fsid for fs instance
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Fri, 26 May 2017 09:45:29 +0000 (17:45 +0800)
committerGui Hecheng <guihecheng@cmss.chinamobile.com>
Sat, 22 Jul 2017 04:22:30 +0000 (12:22 +0800)
commit178b547e83a2c0eeb024bbe4ca2ff8d8e7d50572
treef4e0c48389ba359414b27035fbb080893b48b15e
parent1e5c8aef7b63c3f2c68c856885571cfdb3e4acbd
rgw_file: new fsid for fs instance

We use an in-memory fs_inst_counter for fsid currently, but it
inevitably cause nfs automount problem across a nfs-ganesha crash.
So here we relate the fsid to the s3 uid with a hash.
With this, fsid remains consistent across all fs instances and
across crashes.

We should be able to upgrade from old fsid to new fsid with
update_fh().

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h