summaryrefslogtreecommitdiff
path: root/src/mount
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-12-23 16:59:56 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-12-23 18:48:16 +0900
commit89ada3ba0867fb1330a470ea17ae698c81d8762e (patch)
tree081b02a01b2985dbeac3cd4c17b05c07616263f7 /src/mount
parent9c0320e7abda82f78c448c2b173d2809dac6bfb1 (diff)
downloadsystemd-89ada3ba0867fb1330a470ea17ae698c81d8762e.tar.gz
bus-unit-util: add socket unit related options
Also, split bus_append_unit_property_assignment().
Diffstat (limited to 'src/mount')
-rw-r--r--src/mount/mount-tool.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index f82e9dac44..131f160b50 100644
--- a/src/mount/mount-tool.c
+++ b/src/mount/mount-tool.c
@@ -40,6 +40,7 @@
#include "stat-util.h"
#include "strv.h"
#include "udev-util.h"
+#include "unit-def.h"
#include "unit-name.h"
#include "user-util.h"
#include "terminal-util.h"
@@ -403,7 +404,7 @@ static int parse_argv(int argc, char *argv[]) {
return 1;
}
-static int transient_unit_set_properties(sd_bus_message *m, char **properties) {
+static int transient_unit_set_properties(sd_bus_message *m, UnitType t, char **properties) {
int r;
if (!isempty(arg_description)) {
@@ -432,7 +433,7 @@ static int transient_unit_set_properties(sd_bus_message *m, char **properties) {
return r;
}
- r = bus_append_unit_property_assignment_many(m, properties);
+ r = bus_append_unit_property_assignment_many(m, t, properties);
if (r < 0)
return r;
@@ -445,7 +446,7 @@ static int transient_mount_set_properties(sd_bus_message *m) {
assert(m);
- r = transient_unit_set_properties(m, arg_property);
+ r = transient_unit_set_properties(m, UNIT_MOUNT, arg_property);
if (r < 0)
return r;
@@ -503,7 +504,7 @@ static int transient_automount_set_properties(sd_bus_message *m) {
assert(m);
- r = transient_unit_set_properties(m, arg_automount_property);
+ r = transient_unit_set_properties(m, UNIT_AUTOMOUNT, arg_automount_property);
if (r < 0)
return r;