path: root/file-item.c
diff options
authorZhong, Xin <>2011-06-21 09:45:59 +0800
committerChris Mason <>2011-10-25 09:19:00 -0400
commitbd7d6d45d4305eaf8efa25bf0fd44fb39d3c22e3 (patch)
tree4c5d91ae10554683c483e9ce44976564ac6545c0 /file-item.c
parent0dbd99fb3e117cd5f87eda492b6b4fab1b5bea23 (diff)
btrfs-progs: Improvement for making btrfs image from source directory.
* Initialize ret in btrfs_csum_file_block * Do not abort when xattr is not supported in the source directory * Remove size limitation of 256M * Alloc data chunk in a smaller size (8M) to make btrfs image smaller * Let user specify the btrfs image name Depends on below patch from samsung guys: Signed-off-by: Zhong, Xin <>
Diffstat (limited to 'file-item.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/file-item.c b/file-item.c
index 47f6ad21..c746b44b 100644
--- a/file-item.c
+++ b/file-item.c
@@ -193,7 +193,7 @@ int btrfs_csum_file_block(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 alloc_end,
u64 bytenr, char *data, size_t len)
- int ret;
+ int ret = 0;
struct btrfs_key file_key;
struct btrfs_key found_key;
u64 next_offset = (u64)-1;