From 0e69d32bed09abb7e9d666f5e436b2231f88b3ec Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 15 Apr 2003 12:30:44 +0000 Subject: [PATCH] Display read-only state. --- tools/dmsetup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.43.5