]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: do not test xattrs on fsid file
authorSage Weil <sage@inktank.com>
Sat, 19 May 2012 21:56:49 +0000 (14:56 -0700)
committerSage Weil <sage@inktank.com>
Sun, 20 May 2012 21:12:02 +0000 (14:12 -0700)
This is sufficient to break our fcntl lock, which breaks the check for
other running daemons.

Broken by f03dc34f7e2fc1707fa00339b917c0d2c93dbdd3

Fixes: #2452
Backport: dho
Signed-off-by: Sage Weil <sage@inktank.com>
src/os/FileStore.cc

index 3b8171b598c2f10ca7cd7b0c0cd377fbc7197f23..c144fd21213ff0d987e515f72576bc2bc4e9b4eb 100644 (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));