diff options
author | Andrew Stone <a@stne.dev> | 2021-11-11 22:45:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-23 09:44:35 +0100 |
commit | 7c5cef22115c1898cce8d501d912e2685c83e16e (patch) | |
tree | 1c9104060060327a70d8210965e211327e5dc8ac /src/core/dbus-automount.c | |
parent | Merge pull request #21470 from poettering/resolved-250-fixes (diff) | |
download | systemd-7c5cef22115c1898cce8d501d912e2685c83e16e.tar.xz systemd-7c5cef22115c1898cce8d501d912e2685c83e16e.zip |
core/automount: Add ExtraOptions field
Diffstat (limited to 'src/core/dbus-automount.c')
-rw-r--r-- | src/core/dbus-automount.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/dbus-automount.c b/src/core/dbus-automount.c index 3f74488dad..881bf50b6e 100644 --- a/src/core/dbus-automount.c +++ b/src/core/dbus-automount.c @@ -11,6 +11,7 @@ static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_result, automount_result, Autom const sd_bus_vtable bus_automount_vtable[] = { SD_BUS_VTABLE_START(0), SD_BUS_PROPERTY("Where", "s", NULL, offsetof(Automount, where), SD_BUS_VTABLE_PROPERTY_CONST), + SD_BUS_PROPERTY("ExtraOptions", "s", NULL, offsetof(Automount, extra_options), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("DirectoryMode", "u", bus_property_get_mode, offsetof(Automount, directory_mode), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(Automount, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), SD_BUS_PROPERTY("TimeoutIdleUSec", "t", bus_property_get_usec, offsetof(Automount, timeout_idle_usec), SD_BUS_VTABLE_PROPERTY_CONST), @@ -35,6 +36,9 @@ static int bus_automount_set_transient_property( if (streq(name, "Where")) return bus_set_transient_path(u, name, &a->where, message, flags, error); + if (streq(name, "ExtraOptions")) + return bus_set_transient_string(u, name, &a->extra_options, message, flags, error); + if (streq(name, "TimeoutIdleUSec")) return bus_set_transient_usec_fix_0(u, name, &a->timeout_idle_usec, message, flags, error); |