From: Alasdair Kergon Date: Tue, 15 Apr 2003 12:30:44 +0000 (+0000) Subject: Display read-only state. X-Git-Tag: v2_02_91~5454 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=0e69d32bed09abb7e9d666f5e436b2231f88b3ec;p=lvm2.git Display read-only state. --- diff --git a/tools/dmsetup.c b/tools/dmsetup.c index e89e0cec5..039564037 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -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);