Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc
- index 42f4705..d947237 100644
- --- a/src/os/FileStore.cc
- +++ b/src/os/FileStore.cc
- @@ -1030,7 +1030,7 @@ int FileStore::mkfs()
- strcpy(volargs.name, "current");
- if (::ioctl(basedir_fd, BTRFS_IOC_SUBVOL_CREATE, (unsigned long int)&volargs)) {
- ret = -errno;
- - if (ret == -EOPNOTSUPP || ret == -ENOTTY) {
- + if (ret < 0) {
- dout(2) << " BTRFS_IOC_SUBVOL_CREATE ioctl failed, trying mkdir "
- << current_fn << dendl;
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement