diff options
author | David Teigland <teigland@redhat.com> | 2021-06-08 14:49:34 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-06-11 13:27:18 -0500 |
commit | 440d6ae79fb4df92c7992d3c1689ba4f2d242d6a (patch) | |
tree | 2a6029e0c653466687cb73dbd7d6322d8b92d345 /tools/args.h | |
parent | 8331321070899507b904d8a0ec78b413c826ae32 (diff) | |
download | lvm2-440d6ae79fb4df92c7992d3c1689ba4f2d242d6a.tar.gz |
lvmdevices: add deviceidtype option
When adding a device to the devices file with --adddev, lvm
by default chooses the best device ID type for the new device.
The new --deviceidtype option allows the user to override the
built in preference. This is useful if there's a problem with
the default type, or if a secondary type is preferrable.
If the specified deviceidtype does not produce a device ID,
then lvm falls back to the preference it would otherwise use.
Diffstat (limited to 'tools/args.h')
-rw-r--r-- | tools/args.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/args.h b/tools/args.h index 741c82b9f..d4f23f849 100644 --- a/tools/args.h +++ b/tools/args.h @@ -228,6 +228,11 @@ arg(detachprofile_ARG, '\0', "detachprofile", 0, 0, 0, "Detaches a metadata profile from a VG or LV.\n" "See \\fBlvm.conf\\fP(5) for more information about profiles.\n") +arg(deviceidtype_ARG, '\0', "deviceidtype", string_VAL, 0, 0, + "The type of device ID to use for the device.\n" + "If the specified type is available for the device,\n" + "then it will override the default type that lvm would use.\n") + arg(devices_ARG, '\0', "devices", pv_VAL, ARG_GROUPABLE, 0, "Devices that the command can use. This option can be repeated\n" "or accepts a comma separated list of devices. This overrides\n" |