search for: datacsum

Displaying 5 results from an estimated 5 matches for "datacsum".

Did you mean: data_num
2011 Apr 27
2
btrfs-convert crashes
...terate2 () from /lib/x86_64-linux-gnu/libext2fs.so.2 No symbol table info available. #7 0x00007ffff7bbdfb8 in ext2fs_dir_iterate2 () from /lib/x86_64-linux-gnu/libext2fs.so.2 No symbol table info available. #8 0x000000000041689d in create_dir_entries (devname=0x7fffffffe897 "/dev/sdc1", datacsum=1, packing=1, noxattr=0) at convert.c:322 err =<value optimized out> data = {trans = 0xc9ef10, root = 0x633920, inode = 0x7fffffffe1c0, objectid = 37359706, index_cnt = 150, parent = 37359705, errcode = 0} ret =<value optimized out> #9 copy_single_inode (devn...
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...abel; - - /* Close the FS */ - int (*close)(struct convert_fs *fs); - /* Mark free extents as dirty */ - int (*cache_free_extents)(struct convert_fs *fs, - struct extent_io_tree *tree); - /* Copy everything over */ - int (*copy_inodes)(struct convert_fs *fs, struct btrfs_root *root, - int datacsum, int packing, int noxattr); - - void *privdata; -}; - -#define INO_OFFSET (BTRFS_FIRST_FREE_OBJECTID - EXT2_ROOT_INO) #define STRIPE_LEN (64 * 1024) #define ORIG_IMAGE_SUBVOL_OBJECTID BTRFS_FIRST_FREE_OBJECTID -/* - * Open Ext2fs in readonly mode, read block allocation bitmap and - * inode bitm...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...t, 0); @@ -602,7 +609,8 @@ static int copy_inode_item(struct btrfs_ */ static int copy_single_inode(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid, - ext2_filsys ext2_fs, ext2_ino_t ext2_ino) + ext2_filsys ext2_fs, ext2_ino_t ext2_ino, + int datacsum) { int ret; errcode_t err; @@ -621,20 +629,24 @@ static int copy_single_inode(struct btrf } copy_inode_item(&btrfs_inode, &ext2_inode); - - ret = 0; + if (!datacsum && S_ISREG(ext2_inode.i_mode)) { + u32 flags = btrfs_stack_inode_flags(&btrfs_inode) | + BTRFS_IN...
2013 Feb 23
4
Changing node & leaf size on live partition.
Hi, Question is pretty simple: "How to change node size and leaf size on previously created partition?" Now, I know what most people will say: "you should''ve be smarter while typing mkfs.btrfs". Well, I''m intending to convert in place ext4 partition but there seems to be no option for leaf and node size in this tool. If it''s not possible I guess
2009 Jan 21
0
[PATCH] Progs: update convert for uninitialized block groups
...id || key.type != BTRFS_EXTENT_DATA_KEY) @@ -2048,7 +2070,7 @@ static int relocate_one_reference(struct if (data.num_blocks > 0) { ret = record_file_blocks(trans, root, objectid, &inode, data.first_block, data.disk_block, - data.num_blocks, 0); + data.num_blocks, datacsum); if (ret) goto fail; } @@ -2218,7 +2240,7 @@ next: ret = btrfs_commit_transaction(trans, cur_root); BUG_ON(ret); - if (num_refs > 0 && pass++ < 4) + if (num_refs > 0 && pass++ < 16) goto again; ret = (num_refs > 0) ? -1 : 0; @@ -2537,6 +2559,7 @...