From 4e64e05c6b8d9a1ed30bb6eda30ef8e93c6af260 Mon Sep 17 00:00:00 2001 From: Donggeun Kim Date: Thu, 8 Jul 2010 09:17:59 +0000 Subject: btrfs-progs: Add new feature to mkfs.btrfs to make file system image file from source directory Changes from V1 to V2: - support extended attributes - move btrfs_alloc_data_chunk function to volumes.c - fix an execution error when additional useless parameters are specified - fix traverse_directory function so that the insertion functions for the common items are invoked in a single point The extended attributes is implemented through llistxattr and getxattr function calls. Thanks Signed-off-by: Donggeun Kim Signed-off-by: Kyungmin Park Signed-off-by: Chris Mason --- volumes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'volumes.h') diff --git a/volumes.h b/volumes.h index bb787517..93b0e48f 100644 --- a/volumes.h +++ b/volumes.h @@ -107,6 +107,9 @@ int btrfs_read_chunk_tree(struct btrfs_root *root); int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, struct btrfs_root *extent_root, u64 *start, u64 *num_bytes, u64 type); +int btrfs_alloc_data_chunk(struct btrfs_trans_handle *trans, + struct btrfs_root *extent_root, u64 *start, + u64 num_bytes, u64 type); int btrfs_read_super_device(struct btrfs_root *root, struct extent_buffer *buf); int btrfs_add_device(struct btrfs_trans_handle *trans, struct btrfs_root *root, -- cgit v1.2.3