mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
043fb32c4b
Introduce enums and global variables to record cleanly which command we are processing and eliminate the historically inconsistent use of the shifted argv[0] and fix assorted bugs discovered along the way. Add dm_report_is_empty() to indicate there is no data awaiting output and use this to suppress dmsetup report headings when no data is output so we don't get a stray line saying 'Help' at the end of reporting help. Define a report type (as the interface requires) so -o all selects the right fields in splitname. (A fix for stats list will follow.) Exit immediately if no device is supplied to dmsetup wipe_table instead of hitting errors later and failing. Adjust the command name printed in usage/help output to match command invoked (most of the time).
2 lines
19 B
Plaintext
2 lines
19 B
Plaintext
dm_report_is_empty
|