Re: [PATCH 9/9] btrfs-progs: modify: Introduce option to specify the pattern to fill mirror

2017-05-06 Thread Lakshmipathi.G
okay, but I'm not sure whether it can be useful here other than the sample cli usage. The reason, this tool relies heavily on Python/C layer[1]. The framework works like this: C-api(fs-progs) <--> Python/C api <--> Python program. C-api is typical fs library (like libext2fs/libbtrfs) and

Re: [PATCH 9/9] btrfs-progs: modify: Introduce option to specify the pattern to fill mirror

2017-05-04 Thread David Sterba
On Sun, Apr 23, 2017 at 01:12:42PM +0530, Lakshmipathi.G wrote: > Thanks for the example and details. I understood some and need to > re-read couple of more times to understand the remaining. > > btw, I created a corruption framework(with previous org), the sample > usage and example is below. It

Re: [PATCH 9/9] btrfs-progs: modify: Introduce option to specify the pattern to fill mirror

2017-04-23 Thread Lakshmipathi.G
Thanks for the example and details. I understood some and need to re-read couple of more times to understand the remaining. btw, I created a corruption framework(with previous org), the sample usage and example is below. It looks similar to Btrfs corruption tool. thanks. -- corrupt.py --help

Re: [PATCH 9/9] btrfs-progs: modify: Introduce option to specify the pattern to fill mirror

2017-04-18 Thread Lakshmipathi.G
Nice. With this new option, it should be possible to achieve something like RAID56 corruption test-script say, https://patchwork.kernel.org/patch/9583455/ right? Cheers, Lakshmipathi.G FOSS Programmer. http://www.giis.co.in http://www.webminal.org On Mon, Apr 17, 2017 at 8:56 AM, Qu Wenruo

[PATCH 9/9] btrfs-progs: modify: Introduce option to specify the pattern to fill mirror

2017-04-16 Thread Qu Wenruo
Introduce a new option, --pattern, to specify the pattern to fill mirror. Signed-off-by: Qu Wenruo --- Documentation/btrfs-modify.asciidoc | 5 + modify/mirror.c | 11 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git