diff options
author | Maarten Lankhorst <m.b.lankhorst@gmail.com> | 2010-05-09 18:44:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-09 18:46:10 +0200 |
commit | 07b0b134d3076fe223d6e15959b6081a74b56792 (patch) | |
tree | c768259278d9436d553587c284be22d32f788175 /load-fragment.c | |
parent | af5bc85dc1297079edc9890861aaa38de0ec30df (diff) |
swap: add .swap unit type
Diffstat (limited to 'load-fragment.c')
-rw-r--r-- | load-fragment.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/load-fragment.c b/load-fragment.c index 0dfb49f113..b4e0c76009 100644 --- a/load-fragment.c +++ b/load-fragment.c @@ -1171,7 +1171,8 @@ static int load_from_path(Unit *u, const char *path) { [UNIT_DEVICE] = "Device", [UNIT_MOUNT] = "Mount", [UNIT_AUTOMOUNT] = "Automount", - [UNIT_SNAPSHOT] = "Snapshot" + [UNIT_SNAPSHOT] = "Snapshot", + [UNIT_SWAP] = "Swap" }; #define EXEC_CONTEXT_CONFIG_ITEMS(context, section) \ @@ -1286,6 +1287,10 @@ static int load_from_path(Unit *u, const char *path) { { "Where", config_parse_path, &u->automount.where, "Automount" }, + { "What", config_parse_path, &u->swap.what, "Swap" }, + { "Priority", config_parse_unsigned, &u->swap.priority, "Swap" }, + { "NoAuto", config_parse_bool, &u->swap.no_auto, "Swap" }, + { NULL, NULL, NULL, NULL } }; |