diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-11-20 09:52:48 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-20 09:52:48 -0500 |
commit | aa62e84c84436593edb56c9b9c61fa701c69f80e (patch) | |
tree | 41d06e2caee4af7a1d8933d9481f80c95a84acf0 /file-item.c | |
parent | 49bc666d5fcedc7221eeeef0499e21a45c3ca4ad (diff) |
Btrfs image tool
This patch adds btrfs image tool. The image tool is
a debugging tool that creates/restores btrfs metadump
image.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'file-item.c')
-rw-r--r-- | file-item.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/file-item.c b/file-item.c index 4cbc2a57..e5f5dea5 100644 --- a/file-item.c +++ b/file-item.c @@ -140,8 +140,7 @@ int btrfs_insert_inline_extent(struct btrfs_trans_handle *trans, (unsigned long long)objectid); goto fail; } - found_size = btrfs_file_extent_inline_len(leaf, - btrfs_item_nr(leaf, path->slots[0])); + found_size = btrfs_file_extent_inline_len(leaf, ei); found_end = key.offset + found_size; if (found_end < offset + size) { |