]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- check qgroup before remove
authorArvin Schnell <aschnell@suse.de>
Tue, 29 Mar 2016 14:47:53 +0000 (16:47 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 29 Mar 2016 14:47:53 +0000 (16:47 +0200)
snapper/Btrfs.cc

index ed0b2c1d8b436031a25bfe3f19e008da0eec5652..50570c5e1ff0c1a717021e0e633e54db028206fb 100644 (file)
@@ -376,7 +376,8 @@ namespace snapper
 #ifdef ENABLE_BTRFS_QUOTA
            // see https://bugzilla.suse.com/show_bug.cgi?id=972511
            SDir subvolume_dir = openSubvolumeDir();
-           qgroup_remove(subvolume_dir.fd(), calc_qgroup(0, subvolid), qgroup);
+           if (qgroup != no_qgroup)
+               qgroup_remove(subvolume_dir.fd(), calc_qgroup(0, subvolid), qgroup);
            qgroup_destroy(subvolume_dir.fd(), calc_qgroup(0, subvolid));
 #endif