Re: [BTRFS-PROGS][PATCH] Add two new commands: 'btrfs insp physical-find' and 'btrfs insp physical-dump'

2016-07-24 Thread Qu Wenruo
Hi Goffredo, At 07/24/2016 07:03 PM, Goffredo Baroncelli wrote: Hi all, the following patches add two new commands: 1) btrfs inspect-internal physical-find 2) btrfs inspect-internal physical-dump The aim of these two new commands is to locate (1) and dump (2) the stripe elements stored on the

Re: A lot warnings in dmesg while running thunderbird

2016-07-24 Thread Dave Chinner
On Fri, Jul 08, 2016 at 12:02:35PM -0400, Chris Mason wrote: > Can you please run the attached test program: > > gcc -o short-write short-write.c -lpthread > ./short-write some-new-file-on-btrfs Hi Chris, this seems like a useful thing to be testing on a regular basis - can you turn this into an

[PATCH 4/5] Add man page for command btrfs insp physical-find

2016-07-24 Thread Goffredo Baroncelli
From: Goffredo Baroncelli Signed-off-by: Goffredo Baroncelli --- Documentation/btrfs-inspect-internal.asciidoc | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/btrfs-inspect-internal.asciidoc b/Documentation/btrfs-inspect-internal.asciidoc index 74f6dea..35e2237 100644 --

[PATCH 2/5] New btrfs command: "btrfs inspect physical-find"

2016-07-24 Thread Goffredo Baroncelli
From: Goffredo Baroncelli The aim of this new command is to show the physical placement on the disk of a file. Currently it handles all the profiles (single, dup, raid1/10/5/6). The syntax is simple: where: is the file to inspect is the offset of the file to inspect (default 0) Below som

[PATCH 1/5] Add some helper functions

2016-07-24 Thread Goffredo Baroncelli
From: Goffredo Baroncelli Add the following functions: - int is_btrfs_fs(const char *path) -> returns 0 if path is a btrfs filesystem - void check_root_or_exit() -> checks if the user has the root capability or it exits writing an error message - void check_btrfs_or

[PATCH 3/5] new command btrfs inspect physical-dump

2016-07-24 Thread Goffredo Baroncelli
From: Goffredo Baroncelli The aim of this command, is to dump the disk content of a file bypassing the btrfs filesystem. This could help to test the btrfs filesystem. The dump size is a page (4k) (even if the file is shorter). It is possible to set an offset for the file portion to read, but even

[PATCH 5/5] Add new command to man pages: btrfs insp physical-dump

2016-07-24 Thread Goffredo Baroncelli
From: Goffredo Baroncelli Signed-off-by: Goffredo Baroncelli --- Documentation/btrfs-inspect-internal.asciidoc | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/btrfs-inspect-internal.asciidoc b/Documentation/btrfs-inspect-internal.asciidoc index 35e2237..0497d08 1

[BTRFS-PROGS][PATCH] Add two new commands: 'btrfs insp physical-find' and 'btrfs insp physical-dump'

2016-07-24 Thread Goffredo Baroncelli
Hi all, the following patches add two new commands: 1) btrfs inspect-internal physical-find 2) btrfs inspect-internal physical-dump The aim of these two new commands is to locate (1) and dump (2) the stripe elements stored on the disks. I developed these two new command to simplify the debuggin

Re[2]: Chances to recover with bad partition table?

2016-07-24 Thread Hendrik Friedel
Hello Chris, thanks for your help. I did run Testdisk before and it found one partition on the drive. But there should be at least one before that one, that was not found. However, I followed your instructions and it matches to the find of testdisk: - 1f510040 5f 42 48 52 66 53