]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- improved ioctl fallback
authorArvin Schnell <aschnell@suse.de>
Tue, 4 Sep 2012 12:10:22 +0000 (14:10 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 4 Sep 2012 12:10:22 +0000 (14:10 +0200)
snapper/Filesystem.cc

index a7cf34fa1dfbaad9357a51fd07482550c9003fcd..526a0e70916ce6d2f0dd3d3adf607f7fad5a6910 100644 (file)
@@ -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;