Re: user snapshots

2017-08-25 Thread Austin S. Hemmelgarn
On 2017-08-23 17:13, Ulli Horlacher wrote: On Wed 2017-08-23 (12:42), Peter Grandi wrote: So, still: What is the problem with user_subvol_rm_allowed? As usual, it is complicated: mostly that while subvol creation is very cheap, subvol deletion can be very expensive. But then so can be creating

Re: user snapshots

2017-08-23 Thread Ulli Horlacher
On Wed 2017-08-23 (12:42), Peter Grandi wrote: > > So, still: What is the problem with user_subvol_rm_allowed? > > As usual, it is complicated: mostly that while subvol creation > is very cheap, subvol deletion can be very expensive. But then > so can be creating many snapshots, as in this: But i

Re: user snapshots

2017-08-23 Thread Peter Grandi
> So, still: What is the problem with user_subvol_rm_allowed? As usual, it is complicated: mostly that while subvol creation is very cheap, subvol deletion can be very expensive. But then so can be creating many snapshots, as in this: https://www.spinics.net/lists/linux-btrfs/msg62760.html Als

Re: user snapshots

2017-08-23 Thread Ulli Horlacher
On Wed 2017-08-23 (10:16), Dmitrii Tcvetkov wrote: > > >Also in https://btrfs.wiki.kernel.org/index.php/Mount_options > > >"user_subvol_rm_allowed (...) Use with caution." > > > > > >Why? What is the problem? > > > > Because with the mount option any user can delete any subvolume, > > including

Re: user snapshots

2017-08-23 Thread Dmitrii Tcvetkov
> >Also in https://btrfs.wiki.kernel.org/index.php/Mount_options > >"user_subvol_rm_allowed (...) Use with caution." > > > >Why? What is the problem? > > Because with the mount option any user can delete any subvolume, > including root one (subvol_id=5) Apologies, it works somewhat different: f

Re: user snapshots

2017-08-22 Thread Dmitrii Tcvetkov
>Also in https://btrfs.wiki.kernel.org/index.php/Mount_options >"user_subvol_rm_allowed (...) Use with caution." > >Why? What is the problem? Because with the mount option any user can delete any subvolume, including root one (subvol_id=5) -- To unsubscribe from this list: send the line "unsubs

user snapshots

2017-08-22 Thread Ulli Horlacher
On Tue 2017-08-22 (19:36), Peter Grandi wrote: > For somewhat good reasons subvolumes including snapshots cannot be > deleted by users though unless mount option 'user_subvol_rm_allowed' is > used. Also in https://btrfs.wiki.kernel.org/index.php/Mount_options "user_subvol_rm_allowed (...) Use wit