Displaying 4 results from an estimated 4 matches for "dev_bytenr".
2011 Aug 06
0
help recover from unmountable btrfs
...uot;found %X\n", (unsigned long long)buf->start,
*((int *)result), *((char *)buf->data));
+ if (csum_size == 4) {
+ fprintf(stderr, "dd if=(fd %i) bs=1c skip=%llu count=4 | od -t x1:\n%02x %02x %02x %02x\n",
+ buf->fd,
+ (unsigned long long)buf->dev_bytenr,
+ (__u8)buf->data[0],
+ (__u8)buf->data[1],
+ (__u8)buf->data[2],
+ (__u8)buf->data[3]);
+ fprintf(stderr, "printf \"\\x%02x\\x%02x\\x%02x\\x%02x\" | dd of=(fd %i) bs=1c seek=%llu conv=notrunc count=4\n",
+ (__u8)result[0],
+ (__u8)...
2011 Apr 07
0
[PATCH] btrfs-progs: cast u64 to long long to avoid printf warnings
...op_id,
full_path);
free(full_path);
return 0;
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index a109c6a..9e9806d 100644
--- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -65,8 +65,8 @@ struct extent_buffer *debug_read_block(struct btrfs_root *root, u64 bytenr,
eb->dev_bytenr = multi->stripes[0].physical;
fprintf(info_file, "mirror %d logical %Lu physical %Lu "
- "device %s\n", mirror_num, bytenr, eb->dev_bytenr,
- device->name);
+ "device %s\n", mirror_num, (unsigned long long)bytenr,
+ (unsigned long long)eb->dev_...
2010 Jun 05
0
PULL: Properly cast and avoid compiler warnings, fixes build on alpha and ia64.
...free(full_path);
return 0;
}
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index a109c6a..1487bc2 100644
- --- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -65,8 +65,9 @@ struct extent_buffer *debug_read_block(struct
btrfs_root *root, u64 bytenr,
eb->dev_bytenr = multi->stripes[0].physical;
fprintf(info_file, "mirror %d logical %Lu physical %Lu "
- - "device %s\n", mirror_num, bytenr, eb->dev_bytenr,
- - device->name);
+ "device %s\n",...
2012 Mar 20
13
[PATCH 0 of 3 v2] PV-GRUB: add support for ext4 and btrfs
Hi,
The following patches add support for ext4 and btrfs to
PV-GRUB. These patches are taken nearly verbatim from those provided
by Fedora and Gentoo.
We''ve been using these patches for the PV-GRUB images available in EC2
for some time now with no problems.
Changes from v1:
- Makefile has been changed to check the exit code from patch
- The btrfs patch has been rebased to apply