linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/7] btrfs-progs: Allow normal user to call "subvolume list/show"
@ 2018-03-06  8:32 Misono, Tomohiro
  2018-03-06  8:33 ` [RFC PATCH 1/7] btrfs-progs: Add 2 definitions of new unprivileged ioctl Misono, Tomohiro
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Misono, Tomohiro @ 2018-03-06  8:32 UTC (permalink / raw)
  To: linux-btrfs

This RFC implements user version of "subvolume list/show" using two new ioctls.
The ioctl patch to the kernel can be found in the ML titled 
  "[PATCH 0/2] btrfs: Add two new unprivileged ioctls to allow normal users to call "sub list/show" etc."

1st-4th are some prepartion works.
5th patch is the main part.
6th-7th adds the test for "subvolume list"

The main behavior differences between root and normal users are:
 - "subvolume list" only lists subvolumes which exist under the specified path.
   (The specified path itself is not needed to be a subvolume.)
 - snapshot filed of "subvolume show" just lists the snapshots under the specified path.

This is a part of RFC I sent last December[1] whose aim is to improve normal users' usability.
The remaining works of RFC are: 
  - Allow "sub delete" for empty subvolume
  - Allow "qgroup show" to check quota limit

[1] https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg70991.html

Tomohiro Misono (7):
  btrfs-progs: Add 2 definitions of new unprivileged ioctl
  btrfs-progs: sub list: Add helper function which checks the permission
    for tree search ioctl
  btrfs-progs: sub list: Pass specified path down to
    btrfs_list_subvols()
  btrfs-progs: fallback to open without O_NOATIME flag in
    find_mount_root()
  btrfs-progs: sub list: Allow normal user to call "subvolume list/show"
  btrfs-progs: test: Add helper function to check if test user exists
  btrfs-porgs: test: Add cli-test/009 to check subvolume list for both
    root and normal user

 btrfs-list.c                               | 289 +++++++++++++++++++++++++++--
 btrfs-list.h                               |   8 +-
 cmds-subvolume.c                           |  12 +-
 ioctl.h                                    |  19 ++
 tests/cli-tests/009-subvolume-list/test.sh | 136 ++++++++++++++
 tests/common                               |  10 +
 utils.c                                    |  13 +-
 7 files changed, 464 insertions(+), 23 deletions(-)
 create mode 100755 tests/cli-tests/009-subvolume-list/test.sh

-- 
2.14.3


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-06  8:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-06  8:32 [RFC PATCH 0/7] btrfs-progs: Allow normal user to call "subvolume list/show" Misono, Tomohiro
2018-03-06  8:33 ` [RFC PATCH 1/7] btrfs-progs: Add 2 definitions of new unprivileged ioctl Misono, Tomohiro
2018-03-06  8:34 ` [RFC PATCH 2/7] btrfs-progs: sub list: Add helper function which checks the permission for tree search ioctl Misono, Tomohiro
2018-03-06  8:34 ` [PATCH 3/7] btrfs-progs: sub list: Pass specified path down to btrfs_list_subvols() Misono, Tomohiro
2018-03-06  8:35 ` [RFC PATCH 4/7] btrfs-progs: fallback to open without O_NOATIME flag in, find_mount_root() Misono, Tomohiro
2018-03-06  8:36 ` [RFC PATCH 5/7] btrfs-progs: sub list: Allow normal user to call "subvolume list/show" Misono, Tomohiro
2018-03-06  8:36 ` [RFC PATCH 6/7] btrfs-progs: test: Add helper function to check if test user exists Misono, Tomohiro
2018-03-06  8:37 ` [RFC PATCH 7/7] btrfs-porgs: test: Add cli-test/009 to check subvolume list for both root and normal user Misono, Tomohiro

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).