1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-30 05:49:28 +03:00

Remove dev name prefix from dmsetup line output if major and minor is used.

This commit is contained in:
Milan Broz
2011-08-11 17:06:24 +00:00
parent 47d7f00e16
commit 2836eabc9e
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.66 - Version 1.02.66 -
=============================== ===============================
Remove dev name prefix from dmsetup line output if major and minor is used.
Remove support for the original version 1 dm ioctls. Remove support for the original version 1 dm ioctls.
Add missing check for allocation failure _create_dir_recursive(). Add missing check for allocation failure _create_dir_recursive().
Add support for systemd file descriptor handover in dmeventd. Add support for systemd file descriptor handover in dmeventd.

View File

@ -3478,7 +3478,8 @@ int main(int argc, char **argv)
#endif #endif
doit: doit:
multiple_devices = (argc != 2 && cmd->repeatable_cmd); multiple_devices = (cmd->repeatable_cmd && argc != 2 &&
(argc != 1 || (!_switches[UUID_ARG] && !_switches[MAJOR_ARG])));
do { do {
if (!cmd->fn(cmd, argc--, argv++, NULL, multiple_devices)) { if (!cmd->fn(cmd, argc--, argv++, NULL, multiple_devices)) {
fprintf(stderr, "Command failed\n"); fprintf(stderr, "Command failed\n");