linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miklos Szeredi <miklos@szeredi.hu>
To: Jeff Layton <jlayton@kernel.org>
Cc: Miklos Szeredi <mszeredi@redhat.com>,
	linux-fsdevel@vger.kernel.org,  linux-api@vger.kernel.org,
	Karel Zak <kzak@redhat.com>,
	 Christian Brauner <christian@brauner.io>,
	Josef Bacik <josef@toxicpanda.com>
Subject: Re: [PATCH] statmount: add flag to retrieve unescaped options
Date: Tue, 12 Nov 2024 13:24:57 +0100	[thread overview]
Message-ID: <CAJfpegso0Rd8DK0BYAPgSCHKJgbYX2iO7d4qMqGifBuGFaoE9A@mail.gmail.com> (raw)
In-Reply-To: <2faa89f0ad18d8f8015f65b202f8ddc64a810a71.camel@kernel.org>

On Tue, 12 Nov 2024 at 13:20, Jeff Layton <jlayton@kernel.org> wrote:

> If the options are separated by NULs, how does userland know where to
> stop?

The number of options is returned in st->opt_num.  I find that clearer
than returning the end offset.

Thanks,
Miklos

  reply	other threads:[~2024-11-12 12:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 10:10 [PATCH] statmount: add flag to retrieve unescaped options Miklos Szeredi
2024-11-12 12:20 ` Jeff Layton
2024-11-12 12:24   ` Miklos Szeredi [this message]
2024-11-12 12:29   ` Jeff Layton
2024-11-13 12:27 ` Christian Brauner
2024-11-13 16:30   ` Christian Brauner
2024-11-14 14:53     ` Miklos Szeredi
2024-11-15  8:10       ` Christian Brauner

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=CAJfpegso0Rd8DK0BYAPgSCHKJgbYX2iO7d4qMqGifBuGFaoE9A@mail.gmail.com \
    --to=miklos@szeredi.hu \
    --cc=christian@brauner.io \
    --cc=jlayton@kernel.org \
    --cc=josef@toxicpanda.com \
    --cc=kzak@redhat.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mszeredi@redhat.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).