Re: [PATCH v3 2/3] btrfs: Allow rmdir(2) to delete a subvolume

2018-04-10 Thread Misono Tomohiro
On 2018/04/06 23:46, David Sterba wrote: > On Fri, Mar 30, 2018 at 03:16:47PM +0900, Misono Tomohiro wrote: >> This patch changes the behavior of rmdir(2) to allow it to delete >> an empty subvolume by default, unless it is not a default subvolume >> and send is not in progress. >> >> New function

Re: [PATCH v3 2/3] btrfs: Allow rmdir(2) to delete a subvolume

2018-04-06 Thread David Sterba
On Fri, Mar 30, 2018 at 03:16:47PM +0900, Misono Tomohiro wrote: > This patch changes the behavior of rmdir(2) to allow it to delete > an empty subvolume by default, unless it is not a default subvolume > and send is not in progress. > > New function btrfs_delete_subvolume() is almost equal to the

[PATCH v3 2/3] btrfs: Allow rmdir(2) to delete a subvolume

2018-03-29 Thread Misono Tomohiro
This patch changes the behavior of rmdir(2) to allow it to delete an empty subvolume by default, unless it is not a default subvolume and send is not in progress. New function btrfs_delete_subvolume() is almost equal to the second half of btrfs_ioctl_snap_destroy(). This function requires inode_lo