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
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
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
--
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
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
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
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
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
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