]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- update qgroup in Btrfs object during setup-quota command
authorArvin Schnell <aschnell@suse.de>
Fri, 1 Apr 2016 12:19:09 +0000 (14:19 +0200)
committerArvin Schnell <aschnell@suse.de>
Fri, 1 Apr 2016 12:19:09 +0000 (14:19 +0200)
snapper/Btrfs.cc
snapper/Snapper.cc

index d24914f9e8cd4bc120b5400b116a8136cc81f5ff..52291604bba8df6fb735dedba9e0748e5845be5a 100644 (file)
@@ -99,6 +99,10 @@ namespace snapper
                SN_THROW(InvalidConfigException());
            }
        }
+       else
+       {
+           qgroup = no_qgroup;
+       }
 
 #endif
     }
index c87b2528ae8d5455a461834a4347919aaa92427f..81850cf81c844ec651404909dba202c76529e2c0 100644 (file)
@@ -455,6 +455,8 @@ namespace snapper
 
        config_info->save();
 
+       filesystem->evalConfigInfo(*config_info);
+
        if (raw.find(KEY_ALLOW_USERS) != raw.end() || raw.find(KEY_ALLOW_GROUPS) != raw.end() ||
            raw.find(KEY_SYNC_ACL) != raw.end())
        {
@@ -651,7 +653,7 @@ namespace snapper
 
        BtrfsUtils::qgroup_create(subvolume_dir.fd(), qgroup);
 
-       config_info->setValue("QGROUP", format_qgroup(qgroup));
+       setConfigInfo({ { "QGROUP", format_qgroup(qgroup) } });
 
 #else