]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- add workaround for kernel bug
authorArvin Schnell <aschnell@suse.de>
Tue, 29 Mar 2016 12:25:50 +0000 (14:25 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 29 Mar 2016 12:25:50 +0000 (14:25 +0200)
snapper/Btrfs.cc

index b30f49d31055af72e5eddecab998e520298443c3..ed0b2c1d8b436031a25bfe3f19e008da0eec5652 100644 (file)
@@ -372,6 +372,14 @@ namespace snapper
 
 #ifdef HAVE_LIBBTRFS
            deleted_subvolids.push_back(subvolid);
+
+#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);
+           qgroup_destroy(subvolume_dir.fd(), calc_qgroup(0, subvolid));
+#endif
+
 #endif
        }
        catch (const runtime_error& e)