Skip to contentSkip to conversation

Return non-zero on violation of global/metadata_read_only

PATCH New Thanos Makatos 1 participant 1 message Jan 30, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 Return non-zero on violation of global/metadata_read_only

Quoted 29 lines

-----Original Message-----
From: Thanos Makatos [mailto:thanos.makatos at citrix.com]
Sent: 14 January 2014 17:22
To: lvm-devel at redhat.com
Cc: Thanos Makatos
Subject: [PATCH] Return non-zero on violation of global/metadata_read_only

---
 tools/lvmcmdline.c |    1 +
 1 file changed, 1 insertion(+)
tools/lvmcmdline.c index renamed from tools/lvmcmdline.c +0 -0

6fe4670..c87cf4e 100644

tools/lvmcmdline.c +0 -0
@@ -1163,6 +1163,7 @@ int lvm_run_command(struct cmd_context *cmd, int
 argc, char **argv)
 	    !(cmd->command->flags & PERMITTED_READ_ONLY)) {
 		log_error("%s: Command not permitted while

global/metadata_read_only "

tools/lvmcmdline.c +1 -1
 			  "is set.", cmd->cmd_line);
+		ret = ECMD_FAILED;
 		goto out;
 	}
 
--
Quoted 1 line

1.7.9.5

Ping?