diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-08-15 17:11:20 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 08:15:55 -0400 |
commit | dd5f9615fc5c5e8d3751aab3a17b92768fb1ce70 (patch) | |
tree | 9b7ad64c2761200e7713ee55e5d667e1b57d0e6b /fs/btrfs/ctree.h | |
parent | f7a81ea4cc6bdb51d8267d2f3ff485f0b4070074 (diff) | |
download | op-kernel-dev-dd5f9615fc5c5e8d3751aab3a17b92768fb1ce70.zip op-kernel-dev-dd5f9615fc5c5e8d3751aab3a17b92768fb1ce70.tar.gz |
Btrfs: maintain subvolume items in the UUID tree
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 subvolume. The latter is also done when read-only snapshots
are created which inherit all the send/receive information from the
parent subvolume.
User mode programs use the BTRFS_IOC_TREE_SEARCH ioctl to search and
read in the UUID tree.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index c03e61e..bdc8498 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3724,6 +3724,7 @@ extern const struct dentry_operations btrfs_dentry_operations; long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); void btrfs_update_iflags(struct inode *inode); void btrfs_inherit_iflags(struct inode *inode, struct inode *dir); +int btrfs_is_empty_uuid(u8 *uuid); int btrfs_defrag_file(struct inode *inode, struct file *file, struct btrfs_ioctl_defrag_range_args *range, u64 newer_than, unsigned long max_pages); |