From: Yury Norov <ynorov@caviumnetworks.com>
To: David Howells <dhowells@redhat.com>
Cc: viro@zeniv.linux.org.uk, Latchesar Ionkov <lucho@ionkov.net>,
Eric Van Hensbergen <ericvh@gmail.com>,
linux-kernel@vger.kernel.org,
v9fs-developer@lists.sourceforge.net,
linux-fsdevel@vger.kernel.org, Ron Minnich <rminnich@sandia.gov>
Subject: Re: [PATCH 12/14] 9p: Implement show_options
Date: Wed, 12 Jul 2017 01:34:35 +0300 [thread overview]
Message-ID: <20170711223435.x5tysl756jkrcrrt@yury-thinkpad> (raw)
In-Reply-To: <149926833746.20611.13052624709409745101.stgit@warthog.procyon.org.uk>
On Wed, Jul 05, 2017 at 04:25:37PM +0100, David Howells wrote:
> Implement the show_options superblock op for 9p as part of a bid to get
> rid of s_options and generic_show_options() to make it easier to implement
> a context-based mount where the mount options can be passed individually
> over a file descriptor.
>
> Signed-off-by: David Howells <dhowells@redhat.com>
> cc: Eric Van Hensbergen <ericvh@gmail.com>
> cc: Ron Minnich <rminnich@sandia.gov>
> cc: Latchesar Ionkov <lucho@ionkov.net>
> cc: v9fs-developer@lists.sourceforge.net
> ---
[...]
> +/*
> + * Display the mount options in /proc/mounts.
> + */
> +int v9fs_show_options(struct seq_file *m, struct dentry *root)
> +{
> + struct v9fs_session_info *v9ses = root->d_sb->s_fs_info;
> +
> + if (v9ses->debug)
> + seq_printf(m, ",debug=%x", v9ses->debug);
> + if (!uid_eq(v9ses->dfltuid, V9FS_DEFUID))
> + seq_printf(m, ",dfltuid=%u",
> + from_kuid_munged(&init_user_ns, v9ses->dfltuid));
> + if (!gid_eq(v9ses->dfltgid, V9FS_DEFGID))
> + seq_printf(m, ",dfltgid=%u",
> + from_kgid_munged(&init_user_ns, v9ses->dfltgid));
> + if (v9ses->afid != ~0)
> + seq_printf(m, ",afid=%u", v9ses->afid);
> + if (strcmp(v9ses->uname, V9FS_DEFUSER) != 0)
> + seq_printf(m, ",uname=%s", v9ses->uname);
> + if (strcmp(v9ses->aname, V9FS_DEFANAME) != 0)
> + seq_printf(m, ",aname=%s", v9ses->aname);
> + if (v9ses->nodev)
> + seq_puts(m, ",nodevmap");
> + if (v9ses->cache)
> + seq_printf(m, ",%s", v9fs_cache_modes[v9ses->cache]);
> + if (v9ses->cachetag && v9ses->cache == CACHE_FSCACHE)
> + seq_printf(m, ",cachetag=%s", v9ses->cachetag);
Hi David,
I just found that this patch breaks the next-20170711 build for me:
fs/9p/v9fs.c: In function ‘v9fs_show_options’:
fs/9p/v9fs.c:140:13: error: ‘struct v9fs_session_info’ has no member
named ‘cachetag’; did you mean ‘cache’?
if (v9ses->cachetag && v9ses->cache == CACHE_FSCACHE)
^~~~~~~~
cache
fs/9p/v9fs.c:141:40: error: ‘struct v9fs_session_info’ has no member named ‘cachetag’; did you mean ‘cache’?
seq_printf(m, ",cachetag=%s", v9ses->cachetag);
^~~~~~~~
cache
It seems you forgot to wrap it with #ifdef CONFIG_9P_FSCACHE
Yury
next prev parent reply other threads:[~2017-07-11 22:34 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-05 15:24 [RFC][PATCH 00/14] VFS: Make all filesystems implement ->show_options() David Howells
2017-07-05 15:24 ` [PATCH 01/14] VFS: Don't use save/replace_mount_options if not using generic_show_options David Howells
2017-07-05 15:30 ` Steven Rostedt
2017-07-05 15:33 ` David Howells
2017-07-05 18:54 ` Steven Rostedt
2017-07-05 18:50 ` Greg Kroah-Hartman
2017-07-10 16:15 ` David Sterba
2017-07-05 15:24 ` [PATCH 02/14] hugetlbfs: Implement show_options David Howells
2017-07-05 15:24 ` [PATCH 03/14] omfs: " David Howells
2017-07-07 18:28 ` Bob Copeland
2017-07-05 15:24 ` [PATCH 04/14] pstore: " David Howells
2017-07-05 17:10 ` Kees Cook
2017-07-07 16:00 ` David Howells
2017-07-05 15:24 ` [PATCH 05/14] ramfs: " David Howells
2017-07-05 15:24 ` [PATCH 06/14] bpf: " David Howells
2017-07-06 8:00 ` Daniel Borkmann
2017-07-05 15:24 ` [PATCH 07/14] spufs: " David Howells
2017-07-05 15:25 ` [PATCH 08/14] befs: " David Howells
2017-07-05 15:25 ` [PATCH 09/14] affs: " David Howells
2017-07-05 15:25 ` [PATCH 10/14] afs: " David Howells
2017-07-05 15:25 ` [PATCH 11/14] isofs: " David Howells
2017-07-05 15:25 ` [PATCH 12/14] 9p: " David Howells
2017-07-11 22:34 ` Yury Norov [this message]
2017-07-11 23:34 ` David Howells
2017-07-05 15:25 ` [PATCH 13/14] orangefs: " David Howells
2017-07-05 15:25 ` [PATCH 14/14] VFS: Kill off s_options and helpers David Howells
2017-07-05 16:34 ` [RFC][PATCH 00/14] VFS: Make all filesystems implement ->show_options() Eric W. Biederman
2017-07-07 15:58 ` David Howells
2017-07-08 15:33 ` Theodore Ts'o
2017-07-11 15:22 ` [PATCH] isofs: Fix isofs_show_options() David Howells
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=20170711223435.x5tysl756jkrcrrt@yury-thinkpad \
--to=ynorov@caviumnetworks.com \
--cc=dhowells@redhat.com \
--cc=ericvh@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucho@ionkov.net \
--cc=rminnich@sandia.gov \
--cc=v9fs-developer@lists.sourceforge.net \
--cc=viro@zeniv.linux.org.uk \
/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
all inboxes | Powered by JetHome®