[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180413161126.31313-1-christian.brauner@ubuntu.com>
Date: Fri, 13 Apr 2018 18:11:20 +0200
From: Christian Brauner <christian.brauner@...ntu.com>
To: viro@...iv.linux.org.uk, tglx@...utronix.de,
kstewart@...uxfoundation.org, gregkh@...uxfoundation.org,
pombredanne@...b.com, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, serge@...lyn.com
Cc: Christian Brauner <christian.brauner@...ntu.com>
Subject: [PATCH 0/6] statfs: handle mount propagation
Hey,
This little series
- unifies the definition of constants in statfs.h and fs.h
- 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 but they also apply
cleanly against current linus/master. So if they are deemed suitable for
inclusion in the current release that should work too.
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
Powered by blists - more mailing lists