Re: [PATCH 4/5] Btrfs: maintain subvolume items in the UUID tree

2013-04-29 Thread David Sterba
On Fri, Apr 19, 2013 at 05:41:05PM +0200, Stefan Behrens wrote: > --- a/fs/btrfs/ioctl.c > +++ b/fs/btrfs/ioctl.c > @@ -57,6 +57,8 @@ > #include "send.h" > #include "dev-replace.h" > > +static char empty_uuid[BTRFS_UUID_SIZE] = {0}; + const > @@ -567,9 +573,10 @@ static int create_snapshot(st

[PATCH 4/5] Btrfs: maintain subvolume items in the UUID tree

2013-04-19 Thread Stefan Behrens
When a new subvolume or snapshot is created, a new UUID item is added to the UUID tree. Such items are removed when the subvolume is deleted. The ioctl to set the received subvolume UUID is also touched and will now also add this received UUID into the UUID tree together with the ID of the subvolum