]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: 'whoami' is not required for an ObjectStore
authorSage Weil <sage@redhat.com>
Thu, 7 Jan 2016 18:03:59 +0000 (13:03 -0500)
committerSage Weil <sage@redhat.com>
Wed, 27 Jan 2016 19:06:14 +0000 (14:06 -0500)
OSD creates it, but it won't be there if we did --op mkfs

Signed-off-by: Sage Weil <sage@redhat.com>
src/tools/ceph_objectstore_tool.cc

index b6a3fd8b59aa51dbefaec477523dfff6320db6a9..dd8a7470da355377fafa42d0d2e4e22f539d2aed 100644 (file)
@@ -2450,14 +2450,6 @@ int main(int argc, char **argv)
     if (!S_ISDIR(st.st_mode)) {
       invalid_filestore_path(dpath);
     }
-    string check = dpath + "/whoami";
-    if (::stat(check.c_str(), &st) == -1) {
-       perror("whoami");
-       invalid_filestore_path(dpath);
-    }
-    if (!S_ISREG(st.st_mode)) {
-      invalid_filestore_path(dpath);
-    }
     check = dpath + "/current";
     if (::stat(check.c_str(), &st) == -1) {
        perror("current");