mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-25 01:34:38 +03:00
Display read-only state.
This commit is contained in:
parent
26493424ae
commit
b4753c044f
@ -301,8 +301,9 @@ static int _info(int argc, char **argv)
|
||||
|
||||
printf("Name: %s\n", argv[1]);
|
||||
|
||||
printf("State: %s\n",
|
||||
info.suspended ? "SUSPENDED" : "ACTIVE");
|
||||
printf("State: %s%s\n",
|
||||
info.suspended ? "SUSPENDED" : "ACTIVE",
|
||||
info.read_only ? " (READ-ONLY)" : "");
|
||||
|
||||
if (info.open_count != -1)
|
||||
printf("Open count: %d\n", info.open_count);
|
||||
|
Loading…
Reference in New Issue
Block a user