[PATCH v3 0/3] Add support for export testsuits

2018-02-03 Thread Gu Jinxiang
Achieved: 1. export testsuite by: $ make testsuite files list in testsuites-list will be added into tarball btrfs-progs-tests.tar.gz. 2. after decompress btrfs-progs-tests.tar.gz, run test by: $ TEST=`MASK` ./tests/mkfs-tests.sh and, without MASK also be ok. replenish: $ tar -xzvf ./btrfs-progs

[PATCH v3 2/3] btrfs-progs: Add EXEC represent path of executable file

2018-02-03 Thread Gu Jinxiang
Use EXEC instead of TOP to represent the path of excutable file. EXEC is set to TOP by default, but when there is no excutable file in TOP, use the path where btrfs is install as EXEC. Signed-off-by: Gu Jinxiang --- tests/cli-tests.sh | 5 ++ tests/cli-tests/001-

[PATCH v3 1/3] btrfs-progs: Add make testsuite command for export tests

2018-02-03 Thread Gu Jinxiang
Export the testsuite files to a separate tar. Since fsck tests depend on btrfs-corrupt-block, and misc tests depends on both btrfs-corrupt-block and fssum, so set it as prerequisites for package commad. Because, althougth fssum can be generated by source that are all in tests directory, and has no

[PATCH v3 3/3] btrfs-progs: Add readme for export testsuits

2018-02-03 Thread Gu Jinxiang
Add the readme of command for export testsuits. And add the excute method of exported testsuits. Signed-off-by: Gu Jinxiang --- tests/README.md | 13 + 1 file changed, 13 insertions(+) diff --git a/tests/README.md b/tests/README.md index 04d2ce2a..23f35cfc 100644 --- a/tests/README.

Re: [PATCH 1/2] libcrc32c: Add crc32c_impl function

2018-02-03 Thread Herbert Xu
On Fri, Feb 02, 2018 at 06:29:42PM +0100, David Sterba wrote: > Adding linux-cry...@vger.kernel.org to CC > > Link to the 2/2 patch https://patchwork.kernel.org/patch/10149203/ > > On Mon, Jan 08, 2018 at 11:45:04AM +0200, Nikolay Borisov wrote: > > This function returns a string with the current

RE: [RFC PATCH v2 2/4] btrfs-progs: Add EXEC represent path of executable file

2018-02-03 Thread Gu, Jinxiang
> -Original Message- > From: David Sterba [mailto:dste...@suse.cz] > Sent: Saturday, February 03, 2018 2:08 AM > To: Gu, Jinxiang/顾 金香 > Cc: linux-btrfs@vger.kernel.org; dste...@suse.cz; quwenruo.bt...@gmx.com > Subject: Re: [RFC PATCH v2 2/4] btrfs-progs: Add EXEC represent path of > e

RE: [RFC PATCH v2 0/4] Add support for export testsuits

2018-02-03 Thread Gu, Jinxiang
> -Original Message- > From: linux-btrfs-ow...@vger.kernel.org > [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of David Sterba > Sent: Saturday, February 03, 2018 2:47 AM > To: Gu, Jinxiang/顾 金香 > Cc: linux-btrfs@vger.kernel.org; dste...@suse.cz; quwenruo.bt...@gmx.com > Subject:

RE: [RFC PATCH v2 3/4] btrfs-progs: Modify rootdir files when use mkfs.btrfs

2018-02-03 Thread Gu, Jinxiang
> -Original Message- > From: David Sterba [mailto:dste...@suse.cz] > Sent: Saturday, February 03, 2018 2:11 AM > To: Gu, Jinxiang/顾 金香 > Cc: linux-btrfs@vger.kernel.org; dste...@suse.cz; quwenruo.bt...@gmx.com > Subject: Re: [RFC PATCH v2 3/4] btrfs-progs: Modify rootdir files when use