+-------------------------------------------------------------------
+Tue Jun 13 12:08:55 CEST 2023 - aschnell@suse.com
+
+- update qgroup in config info in snapperd when running setup-quota
+
-------------------------------------------------------------------
Fri Apr 21 09:47:57 CEST 2023 - aschnell@suse.com
Snapper* snapper = it->getSnapper();
snapper->setupQuota();
+ it->updateConfigInfo("QGROUP");
DBus::MessageMethodReturn reply(msg);
/*
* Copyright (c) [2012-2015] Novell, Inc.
- * Copyright (c) [2018-2022] SUSE LLC
+ * Copyright (c) [2018-2023] SUSE LLC
*
* All Rights Reserved.
*
}
+void
+MetaSnapper::updateConfigInfo(const char* key)
+{
+ string value;
+
+ if (getSnapper()->getConfigInfo().get_value(key, value))
+ config_info.set_value(key, value);
+}
+
+
void
MetaSnapper::set_permissions()
{
/*
* Copyright (c) [2012-2015] Novell, Inc.
- * Copyright (c) [2018-2022] SUSE LLC
+ * Copyright (c) [2018-2023] SUSE LLC
*
* All Rights Reserved.
*
const ConfigInfo& getConfigInfo() const { return config_info; }
void setConfigInfo(const map<string, string>& raw);
+ void updateConfigInfo(const char* key);
+
const vector<uid_t>& get_allowed_uids() const { return allowed_uids; }
const vector<gid_t>& get_allowed_gids() const { return allowed_gids; }