1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

also suppress error if device doesn't exist with STATUS

This commit is contained in:
Alasdair Kergon 2005-10-26 17:50:15 +00:00
parent 9e356e11e0
commit 697e09df50

View File

@ -707,6 +707,7 @@ static int _status(int argc, char **argv, void *data)
char *name = NULL;
int matched = 0;
int ls_only = 0;
struct dm_info info;
if (data)
name = names->name;
@ -737,6 +738,9 @@ static int _status(int argc, char **argv, void *data)
if (!dm_task_run(dmt))
goto out;
if (!dm_task_get_info(dmt, &info) || !info.exists)
goto out;
if (!name)
name = (char *) dm_task_get_name(dmt);