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: 
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-05-19 14:56:49 -07:00
parent bd5fc0a0d4
commit deccc592c5

View File

@ -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));