From: Arvin Schnell Date: Tue, 4 Sep 2012 12:10:22 +0000 (+0200) Subject: - improved ioctl fallback X-Git-Tag: v0.1.3~117 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=a6d44aee3840c3e2ade7e283c832a3eef6d9b826;p=thirdparty%2Fsnapper.git - improved ioctl fallback --- diff --git a/snapper/Filesystem.cc b/snapper/Filesystem.cc index a7cf34fa..526a0e70 100644 --- a/snapper/Filesystem.cc +++ b/snapper/Filesystem.cc @@ -376,7 +376,7 @@ namespace snapper if (ioctl(fddst, BTRFS_IOC_SNAP_CREATE_V2, &args_v2) == 0) return true; - else if (errno != EINVAL) + else if (errno != ENOTTY && errno != EINVAL) return false; struct btrfs_ioctl_vol_args args;