mirror of
https://github.com/ceph/ceph
synced 2025-02-27 21:15:28 +00:00
filestore: do not test xattrs on fsid file
This is sufficient to break our fcntl lock, which breaks the check for
other running daemons.
Broken by f03dc34f7e
Fixes: #2452
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
bd5fc0a0d4
commit
deccc592c5
@ -1312,7 +1312,7 @@ int FileStore::_detect_fs()
|
||||
char fn[PATH_MAX];
|
||||
int x = rand();
|
||||
int y = x+1;
|
||||
snprintf(fn, sizeof(fn), "%s/fsid", basedir.c_str());
|
||||
snprintf(fn, sizeof(fn), "%s/whoami", basedir.c_str());
|
||||
int ret = do_setxattr(fn, "user.test", &x, sizeof(x));
|
||||
if (ret >= 0)
|
||||
ret = do_getxattr(fn, "user.test", &y, sizeof(y));
|
||||
|
Loading…
Reference in New Issue
Block a user