Advertisement
Guest User

Untitled

a guest
Aug 27th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc
  2. index 42f4705..d947237 100644
  3. --- a/src/os/FileStore.cc
  4. +++ b/src/os/FileStore.cc
  5. @@ -1030,7 +1030,7 @@ int FileStore::mkfs()
  6. strcpy(volargs.name, "current");
  7. if (::ioctl(basedir_fd, BTRFS_IOC_SUBVOL_CREATE, (unsigned long int)&volargs)) {
  8. ret = -errno;
  9. - if (ret == -EOPNOTSUPP || ret == -ENOTTY) {
  10. + if (ret < 0) {
  11. dout(2) << " BTRFS_IOC_SUBVOL_CREATE ioctl failed, trying mkdir "
  12. << current_fn << dendl;
  13. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement