diff options
author | Thomas Haller <thaller@redhat.com> | 2019-07-19 16:55:47 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-07-25 22:02:00 +0200 |
commit | e3b5b1e64b9afe56ba5cd452775ba02a9d92dd2f (patch) | |
tree | 9c0c5d985f1cf80f70c188742e729e6eade8c7c2 /src/settings/plugins/keyfile/nms-keyfile-writer.h | |
parent | aade7e5317253be58c4a5091bbb978e2a9adc0cd (diff) | |
download | NetworkManager-e3b5b1e64b9afe56ba5cd452775ba02a9d92dd2f.tar.gz |
settings: support storing "shadowed-storage" to [.nmmeta] section for keyfiles in /run
When we make runtime only changes, we may leave the profile in persistent
storage and store a overlay profile in /run. However, in various cases we need
to remember the original path.
Add code to store and retrieve that path from the keyfile.
Note that this data is written inside the keyfile in /run. That is because
this piece of information really depends on that particular keyfile, and not
on the profile/UUID. That is why we write it to the [.nmmeta] section of the
keyfile and not to the .nmmeta file (which is per-UUID).
This patch only adds the backend to write and load the setting from
disk. It's not yet used.
Diffstat (limited to 'src/settings/plugins/keyfile/nms-keyfile-writer.h')
-rw-r--r-- | src/settings/plugins/keyfile/nms-keyfile-writer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings/plugins/keyfile/nms-keyfile-writer.h b/src/settings/plugins/keyfile/nms-keyfile-writer.h index 4fb9a20638..99e86025ae 100644 --- a/src/settings/plugins/keyfile/nms-keyfile-writer.h +++ b/src/settings/plugins/keyfile/nms-keyfile-writer.h @@ -29,6 +29,8 @@ typedef gboolean (*NMSKeyfileWriterAllowFilenameCb) (const char *check_filename, gboolean nms_keyfile_writer_connection (NMConnection *connection, gboolean is_nm_generated, gboolean is_volatile, + const char *shadowed_storage, + gboolean shadowed_owned, const char *keyfile_dir, const char *profile_dir, const char *existing_path, |