1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-14 04:59:04 +03:00
Dave Wysochanski 3e47d4e65b Fix return values for reporting commands when run with no PVs, LVs, or VGs.
The new error checking code caught some commands that were returning '0' as
an exit status for success.  This is incorrect and resulted in a benign error
message displayed (see below).  As of today, all commands should return a
value defined in lib/commands/errors.h (1-5).  This results in an exit code of
0 on success, or > 0 on failure (as stated in the lvm.8 man page).

Before change:
1. Make sure no PVs are on the system
2. Run 'pvs'
  Command failed with status code 0.

After change:
<no output>
2008-06-10 20:07:04 +00:00
..
2004-03-26 14:51:23 +00:00
2008-06-06 19:28:35 +00:00
2008-06-06 19:28:35 +00:00
2008-06-06 18:53:08 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-06-06 19:28:35 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-06-06 19:28:35 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-05-19 20:06:34 +00:00
2008-01-30 14:00:02 +00:00
2008-02-06 15:47:28 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-06-06 19:28:35 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00