diff options
author | Su Yue <suy.fnst@cn.fujitsu.com> | 2017-08-28 15:08:09 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-16 20:33:00 +0200 |
commit | 3efc459166ad8d104912ec06c4ec9e0db6b7ef79 (patch) | |
tree | b41c3099ccdd1b1aae298c1841ceb008ed283aff /convert | |
parent | 564901eac7a43e85c01e5da90dbd7af6507cc724 (diff) |
btrfs-progs: check: adjustments for further repair
For code reuse, btrfs_insert_dir_item() now calls
inserts_with_overflow() even if the dir_item existed.
Add a parameter @ignore_existed to btrfs_add_link().
If @ignore_existed is not zero, btrfs_add_link() continues to do link.
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert')
-rw-r--r-- | convert/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/convert/main.c b/convert/main.c index 882daf7c..67616c4b 100644 --- a/convert/main.c +++ b/convert/main.c @@ -768,7 +768,7 @@ static int create_image(struct btrfs_root *root, if (ret < 0) goto out; ret = btrfs_add_link(trans, root, ino, BTRFS_FIRST_FREE_OBJECTID, name, - strlen(name), BTRFS_FT_REG_FILE, NULL, 1); + strlen(name), BTRFS_FT_REG_FILE, NULL, 1, 0); if (ret < 0) goto out; |