summaryrefslogtreecommitdiff
path: root/src/udev/udevadm.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-04-01 14:27:45 +0200
committerLennart Poettering <lennart@poettering.net>2022-04-04 17:19:51 +0200
commit8b12a516e9304f720e07eeec5d25c5b7f7104bc9 (patch)
treedc9a53cbc6c7d52ec03677949013d4a771b40365 /src/udev/udevadm.c
parent1748853700551fcea8e68047621fa9cffff904eb (diff)
downloadsystemd-8b12a516e9304f720e07eeec5d25c5b7f7104bc9.tar.gz
udevadm: add new "lock" verb for locking block devices
Diffstat (limited to 'src/udev/udevadm.c')
-rw-r--r--src/udev/udevadm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c
index df23a60c1a..cd3786b416 100644
--- a/src/udev/udevadm.c
+++ b/src/udev/udevadm.c
@@ -27,6 +27,7 @@ static int help(void) {
{ "test", "Test an event run" },
{ "test-builtin", "Test a built-in command" },
{ "wait", "Wait for device or device symlink" },
+ { "lock", "Lock a block device" },
};
_cleanup_free_ char *link = NULL;
@@ -103,6 +104,7 @@ static int udevadm_main(int argc, char *argv[]) {
{ "test", VERB_ANY, VERB_ANY, 0, test_main },
{ "test-builtin", VERB_ANY, VERB_ANY, 0, builtin_main },
{ "wait", VERB_ANY, VERB_ANY, 0, wait_main },
+ { "lock", VERB_ANY, VERB_ANY, 0, lock_main },
{ "version", VERB_ANY, VERB_ANY, 0, version_main },
{ "help", VERB_ANY, VERB_ANY, 0, help_main },
{}