]> sourceware.org Git - lvm2.git/commitdiff
Display read-only state.
authorAlasdair Kergon <agk@redhat.com>
Tue, 15 Apr 2003 12:30:44 +0000 (12:30 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 15 Apr 2003 12:30:44 +0000 (12:30 +0000)
tools/dmsetup.c

index e89e0cec57963c2429fca5087e73dd1673086a75..03956403785f76e9231af65831613e29425771c7 100644 (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);
This page took 0.041366 seconds and 5 git commands to generate.