Displaying 3 results from an estimated 3 matches for "do_rollback".
Did you mean:
do_callback
2009 Jan 21
0
[PATCH] Progs: update convert for uninitialized block groups
...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 @@ 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) != B...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...rfs_inode,
- bytenr, bytenr, num_bytes, 1);
+ bytenr, bytenr, num_bytes, 0);
if (ret)
goto fail;
last_byte = bytenr + num_bytes;
@@ -958,6 +980,14 @@ again:
goto fail;
}
+ /*
+ * otime isn't used currently, so we can store some data in it.
+ * These data are used by do_rollback to check whether the image
+ * file have been modified.
+ */
+ btrfs_set_stack_timespec_sec(&btrfs_inode.otime, trans->transid);
+ btrfs_set_stack_timespec_nsec(&btrfs_inode.otime,
+ total_bytes / sectorsize);
ret = btrfs_insert_inode(trans, root, objectid, &btrfs_inode)...
2010 Jun 05
0
PULL: Properly cast and avoid compiler warnings, fixes build on alpha and ia64.
...%llu\n", (long long unsigned int)
objectid);
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 lon...