From: Christian Brauner <christian.brauner@ubuntu.com>
To: viro@zeniv.linux.org.uk, kstewart@linuxfoundation.org,
tglx@linutronix.de, pombredanne@nexb.com,
gregkh@linuxfoundation.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Cc: Christian Brauner <christian.brauner@ubuntu.com>
Subject: [PATCH 0/6 RESEND] statfs: handle mount propagation
Date: Wed, 18 Apr 2018 11:27:16 +0200 [thread overview]
Message-ID: <20180418092722.20136-1-christian.brauner@ubuntu.com> (raw)
Hey,
This is a resend of this to CC more people and because it seems to have
gotten lost in the prior merge window. I should've sent it afterwards
right away.
This series:
- unifies the definition of constants in statfs.h and fs.h
Please note the comments by Greg and others on this part:
https://patchwork.kernel.org/patch/10340403/
https://patchwork.kernel.org/patch/10340379/
I haven't yet changed the fs.h and statfs.h header changes to not
bitshifts. I wanted to wait what Al would think of it.
- extends statfs to handle mount propagation. This will let userspace
easily query a given mountpoint for MS_UNBINDABLE, MS_SHARED,
MS_PRIVATE and MS_SLAVE without always having to do costly parsing of
/proc/<pid>/mountinfo.
To this end the flags:
- ST_UNBINDABLE
- ST_SHARED
- ST_PRIVATE
- ST_SLAVE
are added. They have the same value as their MS_* counterparts.
The patchset was made against Al's vfs/for-next tree.
Thanks!
Christian
Christian Brauner (6):
fs: use << for MS_* flags
statfs: use << to align with fs header
statfs: add ST_UNBINDABLE
statfs: add ST_SHARED
statfs: add ST_PRIVATE
statfs: add ST_SLAVE
fs/statfs.c | 16 +++++++++++++++-
include/linux/statfs.h | 30 +++++++++++++++++-------------
include/uapi/linux/fs.h | 33 +++++++++++++++++----------------
3 files changed, 49 insertions(+), 30 deletions(-)
--
2.17.0
next reply other threads:[~2018-04-18 9:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-18 9:27 Christian Brauner [this message]
2018-04-18 9:27 ` [PATCH 1/6 RESEND] fs: use << for MS_* flags Christian Brauner
2018-04-18 9:27 ` [PATCH 2/6 RESEND] statfs: use << to align with fs header Christian Brauner
2018-04-18 9:27 ` [PATCH 3/6 RESEND] statfs: add ST_UNBINDABLE Christian Brauner
2018-04-18 9:27 ` [PATCH 4/6 RESEND] statfs: add ST_SHARED Christian Brauner
2018-04-18 9:27 ` [PATCH 5/6 RESEND] statfs: add ST_PRIVATE Christian Brauner
2018-04-18 9:27 ` [PATCH 6/6 RESEND] statfs: add ST_SLAVE Christian Brauner
2018-05-02 15:42 [PATCH 0/6 resend] statfs: handle mount propagation Christian Brauner
2018-05-02 16:09 ` Al Viro
2018-05-03 13:04 ` Christian Brauner
2018-05-03 13:43 ` Al Viro
2018-05-03 13:57 ` 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=20180418092722.20136-1-christian.brauner@ubuntu.com \
--to=christian.brauner@ubuntu.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=kstewart@linuxfoundation.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pombredanne@nexb.com \
--cc=tglx@linutronix.de \
--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
Powered by JetHome