search for: ext2_root

Displaying 4 results from an estimated 4 matches for "ext2_root".

2008 Jan 07
1
[PATCH]Add rollback support for the converter
...@ int main(int argc, char *argv[]) u64 super_bytenr; ext2_filsys ext2_fs; struct btrfs_root *root; - struct btrfs_root *snap_root; - - if (argc != 2) { - fprintf(stderr, "usage: %s device\n", argv[0]); - exit(1); - } - ret = open_ext2fs(argv[1], &ext2_fs); + struct btrfs_root *ext2_root; + + ret = open_ext2fs(devname, &ext2_fs); if (ret) { - fprintf(stderr, "failed to open the Ext2fs\n"); + fprintf(stderr, "unable to open the Ext2fs\n"); goto fail; } blocksize = ext2_fs->blocksize; @@ -1204,7 +1261,7 @@ int main(int argc, char *argv[]) } i...
2010 Jun 05
0
PULL: Properly cast and avoid compiler warnings, fixes build on alpha and ia64.
...ret = ioctl(fd, command, &objectid); } else ret = ioctl(fd, command, &args); diff --git a/convert.c b/convert.c index d037c98..cf656a0 100644 - --- a/convert.c +++ b/convert.c @@ -2572,7 +2572,7 @@ int do_rollback(const char *devname, int force) ext2_root = btrfs_read_fs_root(root->fs_info, &key); if (!ext2_root || IS_ERR(ext2_root)) { fprintf(stderr, "unable to open subvol %llu\n", - - key.objectid); + (unsigned long long) key.objectid); goto fail;...
2011 Apr 27
2
btrfs-convert crashes
...d out> fd = 6 ret =<value optimized out> blocksize = 4096 blocks = {9258, 9259, 9260, 9261, 9284, 9285, 9286} total_bytes =<value optimized out> super_bytenr = 37920768 ext2_fs = 0x622010 root = 0x633920 ext2_root =<value optimized out> #12 0x0000000000418333 in main (argc=<value optimized out>, argv=<value optimized out>) at convert.c:2867 ret =<value optimized out> packing = 1 noxattr = 0 datacsum = 1 rollback = 0 file = 0x7fffff...
2009 Jan 21
0
[PATCH] Progs: update convert for uninitialized block groups
...t); - if (num_refs > 0 && pass++ < 4) + if (num_refs > 0 && pass++ < 16) goto again; ret = (num_refs > 0) ? -1 : 0; @@ -2537,6 +2559,7 @@ int do_rollback(const char *devname, int { int fd; int ret; + int i; struct btrfs_root *root; struct btrfs_root *ext2_root; struct btrfs_root *chunk_root; @@ -2654,6 +2677,10 @@ int do_rollback(const char *devname, int struct btrfs_file_extent_item); if (btrfs_file_extent_type(leaf, fi) != BTRFS_FILE_EXTENT_REG) break; + if (btrfs_file_extent_compression(leaf, fi) || + btrfs_file_extent_encrypti...