1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00
Alasdair G Kergon 043fb32c4b dmsetup: Restructure arg handling.
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).
2015-08-13 22:30:39 +01:00
..
2015-07-02 15:42:26 -05:00
2015-08-13 22:30:39 +01:00
2015-08-12 14:32:24 +02:00
2015-08-12 14:32:24 +02:00
2015-08-12 19:46:43 +02:00
2008-01-30 14:00:02 +00:00
2015-07-06 17:30:18 +01:00
2008-01-30 14:00:02 +00:00
2015-08-10 00:35:15 +01:00
2015-07-02 15:42:26 -05:00
2015-07-02 15:42:26 -05:00
2015-07-08 14:53:30 +02:00
2015-07-02 15:42:26 -05:00
2015-07-02 15:42:26 -05:00
2015-07-06 15:09:17 +01:00
2014-01-30 13:09:15 +00:00
2015-07-06 17:30:18 +01:00
2015-08-12 14:11:18 +02:00
2015-08-12 14:11:18 +02:00
2015-07-13 14:07:57 -05:00
2015-07-02 15:42:26 -05:00
2015-07-13 14:07:57 -05:00
2015-07-02 15:42:26 -05:00
2015-07-02 15:42:26 -05:00
2015-07-02 15:42:26 -05:00