[PATCH 6/8] btrfs-progs: sub show: Allow non-privileged user to call "subvolume show"

2018-11-26 Thread Misono Tomohiro
Allow non-privileged user to call subvolume show if new ioctls (BTRFS_IOC_GET_SUBVOL_INFO/BTRFS_IOC_GET_SUBVOL_ROOTREF, BTRFS_IOC_INO_LOOKUP_USER, from kernel 4.18) are available. Non-privileged user still cannot use -r or -u option. The behavior for root user is the same as before

[PATCH v2 17/20] btrfs-progs: sub show: Allow non-privileged user to call "subvolume show"

2018-06-18 Thread Misono Tomohiro
Allow non-privileged user to call subvolume show if new ioctls (BTRFS_IOC_GET_SUBVOL_INFO/BTRFS_IOC_GET_SUBVOL_ROOTREF, BTRFS_IOC_INO_LOOKUP_USER, from kernel 4.18) are available. Non-privileged user still cannot use -r or -u option. The behavior for root user is the same as before

[PATCH 09/11] btrfs-progs: sub show: Allow non-privileged user to call "subvolume show"

2018-05-11 Thread Tomohiro Misono
Allow non-privileged user to call subvolume show (-r or -u cannot be used) if new ioctls (BTRFS_IOC_GET_SUBVOL_INFO etc.) are available. The behavior for root user is the same as before. There are some output differences between root and user: root ... subvolume path is from top-level subvolume

Re: possible bug - wrong path in 'btrfs subvolume show' when snapshot is in path below subvolume.

2016-08-06 Thread Andrei Borzenkov
05.08.2016 02:32, Peter Holm пишет: > 'btrfs subvolumee show' gives no path to btrfs system root (volid=5) > when snapshot is in the folder of subvolume. > > Step to reproduce. > 1.btrfs subvolume create xyz > 2.btrfs subvolume snapshot xyz xyz/xyz > 3.btrfs subvolume snapshot /xyz This last

Re: possible bug - wrong path in 'btrfs subvolume show' when snapshot is in path below subvolume.

2016-08-06 Thread Peter Holm
You are right. Typing error. Sorry. Here is from my bash_history. 1 btrfs su create is-this-a-bug *2 btrfs su snap is-this-a-bug is-this-a-bug *3 btrfs su snap is-this-a-bug /mnt/btrfs/sdc16-svid-5/ *2.When snapshot is created with the same name as subvolume, then it by default creates in the

Re: possible bug - wrong path in 'btrfs subvolume show' when snapshot is in path below subvolume.

2016-08-06 Thread Peter Holm
I accidentally posted this to Andrei Borzenkov I repost to the list with the first 3 lines added from what was earlier sent. Regarding to my manual for btrfs-subvolume dated 01/19/2016 it says. "If only is given, the subvolume will be named the basename of . " So 'btrfs su snap is a shortcut

Re: possible bug - wrong path in 'btrfs subvolume show' when snapshot is in path below subvolume.

2016-08-06 Thread Andrei Borzenkov
06.08.2016 11:00, Peter Holm пишет: > You are right. Typing error. Sorry. > Here is from my bash_history. > > 1 btrfs su create is-this-a-bug > *2 btrfs su snap is-this-a-bug is-this-a-bug > *3 btrfs su snap is-this-a-bug /mnt/btrfs/sdc16-svid-5/ > As I said, in my case it fails with "File

Re: possible bug - wrong path in 'btrfs subvolume show' when snapshot is in path below subvolume.

2016-08-04 Thread Peter Holm
writing error. replace "gives no path to" with "same path as" /Peter Holm 2016-08-05 1:32 GMT+02:00, Peter Holm : > 'btrfs subvolumee show' gives no path to btrfs system root (volid=5) > when snapshot is in the folder of subvolume. > > Step to reproduce. > 1.btrfs

possible bug - wrong path in 'btrfs subvolume show' when snapshot is in path below subvolume.

2016-08-04 Thread Peter Holm
'btrfs subvolumee show' gives no path to btrfs system root (volid=5) when snapshot is in the folder of subvolume. Step to reproduce. 1.btrfs subvolume create xyz 2.btrfs subvolume snapshot xyz xyz/xyz 3.btrfs subvolume snapshot /xyz 4.btrfs subvolumme show xyz output . Snapshot(s)

Re: subvolume show

2012-12-17 Thread Anand Jain
On 13/12/2012 02:22, Gene Czarcinski wrote: I was looking through some of the archives and notice a patch submitted to implement: btrfs subvolume show path-to-subvolume command. I also noticed that is does not appear to be in the git. This looks like a useful capability. I was trying to find out

subvolume show

2012-12-12 Thread Gene Czarcinski
I was looking through some of the archives and notice a patch submitted to implement: btrfs subvolume show path-to-subvolume command. I also noticed that is does not appear to be in the git. This looks like a useful capability. I was trying to find out what the UUID was for a newly

Re: subvolume show

2012-12-12 Thread Hugo Mills
On Wed, Dec 12, 2012 at 01:22:40PM -0500, Gene Czarcinski wrote: I was looking through some of the archives and notice a patch submitted to implement: btrfs subvolume show path-to-subvolume command. I also noticed that is does not appear to be in the git. This looks like