README: Add distro and btrfs testing info
cover README: Add distro and btrfs testing info
This patchset adds distro specific setup and btrfs testing info to the README.
Gabriel Niebler (2):
README: Add section to install required packages on (open)SUSE
README: Add tiny note concerning required scratch devs for btrfs
testing
README | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-)
Signature · 1 line
2.39.1
PATCH 1/2 README: Add section to install required packages on (open)SUSE
The README already lists how to install the required packages on other popular distributions. Since a lot of filesystem development happens on SUSE systems and both the commands as well as the list of packages are slightly different, it only makes sense to include these as well.
--- README | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
README +20 -0
@@ -77,6 +77,26 @@ RHEL or CentOS For OverlayFS build and install: - see https://github.com/hisilicon/overlayfs-progs +SUSE Linux Enterprise or openSUSE +--------------------------------- + +1. Install all necessary packages from standard repositories: + + $ sudo zypper install acct automake bc dbench duperemove dump fio gcc git \ + indent libacl-devel libaio-devel libattr-devel libcap libcap-devel \ + libtool liburing-devel libuuid-devel lvm2 make quota sqlite3 xfsprogs + +2. Install packages for the filesystem(s) being tested: + + For btrfs install: + $ sudo zypper install btrfsprogs libbtrfs-devel + + For XFS install: + $ sudo zypper install xfsdump xfsprogs-devel + + For OverlayFS build and install: + - see https://github.com/hisilicon/overlayfs-progs + Build and install test, libs and utils --------------------------------------
Signature · 1 line
2.39.1
Re: [PATCH 1/2] README: Add section to install required packages on (open)SUSE
Quoted 7 lines · Gabriel Niebler
The README already lists how to install the required packages on other popular distributions. Since a lot of filesystem development happens on SUSE systems and both the commands as well as the list of packages are slightly different, it only makes sense to include these as well.
Signed-off-by Gabriel Niebler <[email protected]>---
No objection from me.
Quoted 37 lines
README | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)README +20
-0@@ -77,6 +77,26 @@ RHEL or CentOS For OverlayFS build and install: - see https://github.com/hisilicon/overlayfs-progs +SUSE Linux Enterprise or openSUSE +--------------------------------- + +1. Install all necessary packages from standard repositories: + + $ sudo zypper install acct automake bc dbench duperemove dump fio gcc git \ + indent libacl-devel libaio-devel libattr-devel libcap libcap-devel \ + libtool liburing-devel libuuid-devel lvm2 make quota sqlite3 xfsprogs + +2. Install packages for the filesystem(s) being tested: + + For btrfs install: + $ sudo zypper install btrfsprogs libbtrfs-devel + + For XFS install: + $ sudo zypper install xfsdump xfsprogs-devel + + For OverlayFS build and install: + - see https://github.com/hisilicon/overlayfs-progs + Build and install test, libs and utils --------------------------------------Signature · 1 line
2.39.1
PATCH 2/2 README: Add tiny note concerning required scratch devs for btrfs testing
In reply to Gabriel Niebler--- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
README +1 -1
@@ -127,7 +127,7 @@ Setup Environment - device contents will be destroyed. 4. (optional) Create SCRATCH device pool. - - needed for BTRFS testing + - needed for BTRFS testing (some tests require up to 5 disks of 10GB each) - specifies 3 or more independent SCRATCH devices via the SCRATCH_DEV_POOL variable e.g SCRATCH_DEV_POOL="/dev/sda /dev/sdb /dev/sdc" - device contents will be destroyed.
Signature · 1 line
2.39.1
Re: [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
Quoted 10 lines · Gabriel Niebler
Signed-off-by Gabriel Niebler <[email protected]>--- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)README +0
-0
README Setup Environment · line 130
Quoted 5 lines
README +1
-1@@ -127,7 +127,7 @@ Setup Environment - device contents will be destroyed. 4. (optional) Create SCRATCH device pool. - - needed for BTRFS testing + - needed for BTRFS testing (some tests require up to 5 disks of 10GB each)
Not sure about this part, so btrfs recommend 5 disks of 10GB each in SCRATCH_DEV_POOL, to run all btrfs related tests? Does anyone know that? Or can you provide the subcase names which need "5 disks of 10GB each", to help to check and review?
P.S. I'm thinking about if this "(...)" should be moved to below item.
vvvvv
Quoted 6 lines
README +0
-0- specifies 3 or more independent SCRATCH devices via the SCRATCH_DEV_POOL variable e.g SCRATCH_DEV_POOL="/dev/sda /dev/sdb /dev/sdc" - device contents will be destroyed.Signature · 1 line
2.39.1
Re: [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
Am 06.02.23 um 15:52 schrieb Zorro Lang:
Quoted 13 lines · Gabriel Niebler
Quoted 12 lines
Signed-off-by Gabriel Niebler <[email protected]>--- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)README +0
-0@@ -127,7 +127,7 @@ Setup Environment - device contents will be destroyed.
Quoted 8 lines
README Setup Environment · line 130
Quoted 3 lines
README +1
-14. (optional) Create SCRATCH device pool. - - needed for BTRFS testing + - needed for BTRFS testing (some tests require up to 5 disks of 10GB each)Not sure about this part, so btrfs recommend 5 disks of 10GB each in
SCRATCH_DEV_POOL, to run all btrfs related tests? Does anyone know that? Or can you provide the subcase names which need "5 disks of 10GB each", to help to check and review?
Of course (and thanks for asking, as it turns out my recollection was slightly wrong on that one):
To begin with, btrfs/011[1] states the "5 disks" requirement in the lengthy comment at the top of the file:
"""
# The amount of tests done depends on the number of devices in the
# SCRATCH_DEV_POOL. For full test coverage, at least 5 devices should
# be available (e.g. 5 partitions). "" ... but it doesn't say anything about device size.
btrfs/027[2] however checks the presence of 5 devices in $SCRATCH_DEV_POOL directly in code and also runs a check to ensure that all of these devices are *of the same size*.
And then there are at least two tests that require $SCRATCH_DEV to be 10GB or more in size:
- btrfs/079[3], which writes a 10G file to $SCRATCH_MNT and
- btrfs/253[4], which directly creates a 10G FS on $SCRATCH_DEV.
*Taken together*, this means that for full btrfs test coverage, one needs a $SCRATCH_DEV_POOL with at least 5 devices of equal size in it and that size has to be at least 10GB.
But that makes the remark wrong, strictly speaking, as there's no single test that requires "at least 5 devices of 10GB each".
How about this: "(for full btrfs test coverage, use at least 5 devices of equal size and at least 10GB)"
Quoted 4 lines
P.S. I'm thinking about if this "(...)" should be moved to below item.
vvvvvQuoted 2 lines
README +0
-0- specifies 3 or more independent SCRATCH devices via the SCRATCH_DEV_POOL variable e.g SCRATCH_DEV_POOL="/dev/sda /dev/sdb /dev/sdc"
Fine by me! :-)
[1]: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/btrfs/011#n10
[2]: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/btrfs/027#n20
[3]: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/btrfs/079#n44
[4]: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/btrfs/253#n90
Re: [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
Quoted 47 lines · Gabriel Niebler
Am 06.02.23 um 15:52 schrieb Zorro Lang:
Quoted 6 lines · Gabriel Niebler
Quoted 5 lines
Signed-off-by Gabriel Niebler <[email protected]>--- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
README Setup Environment · line 129
Quoted 9 lines
README +1
-1@@ -127,7 +127,7 @@ Setup Environment - device contents will be destroyed. 4. (optional) Create SCRATCH device pool. - - needed for BTRFS testing + - needed for BTRFS testing (some tests require up to 5 disks of 10GB each)Not sure about this part, so btrfs recommend 5 disks of 10GB each in
SCRATCH_DEV_POOL, to run all btrfs related tests? Does anyone know that? Or can you provide the subcase names which need "5 disks of 10GB each", to help to check and review?Of course (and thanks for asking, as it turns out my recollection was slightly wrong on that one):
To begin with, btrfs/011[1] states the "5 disks" requirement in the lengthy comment at the top of the file:
"""
# The amount of tests done depends on the number of devices in the #SCRATCH_DEV_POOL. For full test coverage, at least 5 devices should# be available (e.g. 5 partitions). "" ... but it doesn't say anything about device size.btrfs/027[2] however checks the presence of 5 devices in $SCRATCH_DEV_POOL directly in code and also runs a check to ensure that all of these devices are *of the same size*.
And then there are at least two tests that require $SCRATCH_DEV to be 10GB or more in size:
- btrfs/079[3], which writes a 10G file to $SCRATCH_MNT and
- btrfs/253[4], which directly creates a 10G FS on $SCRATCH_DEV.*Taken together*, this means that for full btrfs test coverage, one needs a $SCRATCH_DEV_POOL with at least 5 devices of equal size in it and that size has to be at least 10GB.
Quoted 5 lines
But that makes the remark wrong, strictly speaking, as there's no single test that requires "at least 5 devices of 10GB each".
How about this: "(for full btrfs test coverage, use at least 5 devices of equal size and at least 10GB)"
Even for now 10GB is enough, but we can't always assue that. There's not a clear restriction about that. I think we can skip this sub-patch. At least we don't give others a recommendation which isn't assured by ourselves. So how about only merge the 1st patch.
Quoted 13 lines
Quoted 5 lines
P.S. I'm thinking about if this "(...)" should be moved to below item.
vvvvvQuoted 2 lines
README +0
-0- specifies 3 or more independent SCRATCH devices via the SCRATCH_DEV_POOL variable e.g SCRATCH_DEV_POOL="/dev/sda /dev/sdb /dev/sdc"Fine by me! :-)
[1]: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/btrfs/011#n10
[2]: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/btrfs/027#n20
[3]: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/btrfs/079#n44
[4]: https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/tree/tests/btrfs/253#n90
Re: [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
Am 18.02.23 um 07:26 schrieb Zorro Lang:
Quoted 51 lines · Gabriel Niebler
Quoted 50 lines
Am 06.02.23 um 15:52 schrieb Zorro Lang:
Quoted 6 lines · Gabriel Niebler
Quoted 5 lines
Signed-off-by Gabriel Niebler <[email protected]>--- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
README Setup Environment · line 129
Quoted 9 lines
README +1
-1@@ -127,7 +127,7 @@ Setup Environment - device contents will be destroyed. 4. (optional) Create SCRATCH device pool. - - needed for BTRFS testing + - needed for BTRFS testing (some tests require up to 5 disks of 10GB each)Not sure about this part, so btrfs recommend 5 disks of 10GB each in
SCRATCH_DEV_POOL, to run all btrfs related tests? Does anyone know that? Or can you provide the subcase names which need "5 disks of 10GB each", to help to check and review?Of course (and thanks for asking, as it turns out my recollection was slightly wrong on that one):
To begin with, btrfs/011[1] states the "5 disks" requirement in the lengthy comment at the top of the file:
"""
# The amount of tests done depends on the number of devices in the #SCRATCH_DEV_POOL. For full test coverage, at least 5 devices should# be available (e.g. 5 partitions). "" ... but it doesn't say anything about device size.btrfs/027[2] however checks the presence of 5 devices in $SCRATCH_DEV_POOL directly in code and also runs a check to ensure that all of these devices are *of the same size*.
And then there are at least two tests that require $SCRATCH_DEV to be 10GB or more in size:
- btrfs/079[3], which writes a 10G file to $SCRATCH_MNT and
- btrfs/253[4], which directly creates a 10G FS on $SCRATCH_DEV.*Taken together*, this means that for full btrfs test coverage, one needs a $SCRATCH_DEV_POOL with at least 5 devices of equal size in it and that size has to be at least 10GB.
But that makes the remark wrong, strictly speaking, as there's no single test that requires "at least 5 devices of 10GB each".
Quoted 7 lines
Quoted 2 lines
How about this: "(for full btrfs test coverage, use at least 5 devices of equal size and at least 10GB)"
Even for now 10GB is enough, but we can't always assue that. There's not a clear restriction about that. I think we can skip this sub-patch. At least we don't give others a recommendation which isn't assured by ourselves. So how about only merge the 1st patch.
Fine by me. Users will figure it out when running the tests and reading the skip reasons.