xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Luca Fancellu <luca.fancellu@arm.com>
To: Julien Grall <julien@xen.org>
Cc: xen-devel@lists.xenproject.org, Julien Grall <jgrall@amazon.com>,
	Ian Jackson <iwj@xenproject.org>, Wei Liu <wl@xen.org>,
	Juergen Gross <jgross@suse.com>
Subject: Re: [PATCH] tools/xenstored: Wire properly the command line option -M/--path-max
Date: Wed, 21 Apr 2021 15:10:34 +0100	[thread overview]
Message-ID: <2609B712-3780-49B4-80E8-E769C8981184@arm.com> (raw)
In-Reply-To: <20210421140255.23437-1-julien@xen.org>



> On 21 Apr 2021, at 15:02, Julien Grall <julien@xen.org> wrote:
> 
> From: Julien Grall <jgrall@amazon.com>
> 
> The command line option -M/--path-max was meant to be added by
> commit 924bf8c793cb "tools/xenstore: rework path length check" but this
> wasn't wired through properly.
> 
> Fix it by adding the missing "case 'M':".
> 
> Fixes: 924bf8c793cb ("tools/xenstore: rework path length check")
> Signed-off-by: Julien Grall <jgrall@amazon.com>
> ---
> tools/xenstore/xenstored_core.c | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c
> index 591b28e4552f..c638e46221eb 100644
> --- a/tools/xenstore/xenstored_core.c
> +++ b/tools/xenstore/xenstored_core.c
> @@ -2148,6 +2148,7 @@ int main(int argc, char *argv[])
> 		case 'A':
> 			quota_nb_perms_per_node = strtol(optarg, NULL, 10);
> 			break;
> +		case 'M':
> 			quota_max_path_len = strtol(optarg, NULL, 10);
> 			quota_max_path_len = min(XENSTORE_REL_PATH_MAX,
> 						 quota_max_path_len);
> — 
> 2.17.1
> 
> 

Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>

  reply	other threads:[~2021-04-21 14:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 14:02 Julien Grall
2021-04-21 14:10 ` Luca Fancellu [this message]
2021-04-21 15:07 ` Juergen Gross
2021-04-25 12:56   ` Julien Grall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2609B712-3780-49B4-80E8-E769C8981184@arm.com \
    --to=luca.fancellu@arm.com \
    --cc=iwj@xenproject.org \
    --cc=jgrall@amazon.com \
    --cc=jgross@suse.com \
    --cc=julien@xen.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    --subject='Re: [PATCH] tools/xenstored: Wire properly the command line option -M/--path-max' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).