1
0
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:
Alasdair Kergon 2003-04-15 12:30:44 +00:00
parent 26493424ae
commit b4753c044f

View File

@ -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);