mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
dmsetup: report error on stderr
Send error message on stdout, since after _display_info_long() command return errors. Patch makes consistent behavior for command: dmsetup info -c non-existing-dev & dmsetup info non-existing-dev Now both commands report error on stderr when they return error status for non-existing device.
This commit is contained in:
parent
9f6209b878
commit
52f41baedb
@ -1,5 +1,6 @@
|
||||
Version 1.02.83
|
||||
==================================
|
||||
Consistently report on stderr when device is not found for dmsetup info.
|
||||
Skip race errors when non-udev dmsetup build runs on udev-enabled system.
|
||||
Skip error message when holders are not present in sysfs.
|
||||
Use __linux__ instead of linux define to make libdevmapper.h C compliant.
|
||||
|
@ -461,7 +461,7 @@ static void _display_info_long(struct dm_task *dmt, struct dm_info *info)
|
||||
uint32_t read_ahead;
|
||||
|
||||
if (!info->exists) {
|
||||
printf("Device does not exist.\n");
|
||||
fprintf(stderr, "Device does not exist.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user