[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH] Return non-zero on violation of global/metadata_read_only



> -----Original Message-----
> From: Thanos Makatos [mailto:thanos makatos citrix com]
> Sent: 14 January 2014 17:22
> To: lvm-devel redhat com
> Cc: Thanos Makatos
> Subject: [PATCH] Return non-zero on violation of
> global/metadata_read_only
> 
> Signed-off-by: Thanos Makatos <thanos makatos citrix com>
> ---
>  tools/lvmcmdline.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index
> 6fe4670..c87cf4e 100644
> --- a/tools/lvmcmdline.c
> +++ b/tools/lvmcmdline.c
> @@ -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 "
>  			  "is set.", cmd->cmd_line);
> +		ret = ECMD_FAILED;
>  		goto out;
>  	}
> 
> --
> 1.7.9.5

Ping?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]