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