OSD creates it, but it won't be there if we did --op mkfs
Signed-off-by: Sage Weil <sage@redhat.com>
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");