fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] README: Add distro and btrfs testing info
@ 2023-01-31 12:38 Gabriel Niebler
  2023-01-31 12:38 ` [PATCH 1/2] README: Add section to install required packages on (open)SUSE Gabriel Niebler
  2023-01-31 12:38 ` [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing Gabriel Niebler
  0 siblings, 2 replies; 8+ messages in thread
From: Gabriel Niebler @ 2023-01-31 12:38 UTC (permalink / raw)
  To: fstests; +Cc: Gabriel Niebler

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

-- 
2.39.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] README: Add section to install required packages on (open)SUSE
  2023-01-31 12:38 [PATCH 0/2] README: Add distro and btrfs testing info Gabriel Niebler
@ 2023-01-31 12:38 ` Gabriel Niebler
  2023-02-06 14:45   ` Zorro Lang
  2023-01-31 12:38 ` [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing Gabriel Niebler
  1 sibling, 1 reply; 8+ messages in thread
From: Gabriel Niebler @ 2023-01-31 12:38 UTC (permalink / raw)
  To: fstests; +Cc: 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 <gniebler@suse.com>
---
 README | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/README b/README
index 4c4f22f8..008d3875 100644
--- a/README
+++ b/README
@@ -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
 --------------------------------------
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
  2023-01-31 12:38 [PATCH 0/2] README: Add distro and btrfs testing info Gabriel Niebler
  2023-01-31 12:38 ` [PATCH 1/2] README: Add section to install required packages on (open)SUSE Gabriel Niebler
@ 2023-01-31 12:38 ` Gabriel Niebler
  2023-02-06 14:52   ` Zorro Lang
  1 sibling, 1 reply; 8+ messages in thread
From: Gabriel Niebler @ 2023-01-31 12:38 UTC (permalink / raw)
  To: fstests; +Cc: Gabriel Niebler

Signed-off-by: Gabriel Niebler <gniebler@suse.com>
---
 README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README b/README
index 008d3875..574cdd34 100644
--- a/README
+++ b/README
@@ -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.
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] README: Add section to install required packages on (open)SUSE
  2023-01-31 12:38 ` [PATCH 1/2] README: Add section to install required packages on (open)SUSE Gabriel Niebler
@ 2023-02-06 14:45   ` Zorro Lang
  0 siblings, 0 replies; 8+ messages in thread
From: Zorro Lang @ 2023-02-06 14:45 UTC (permalink / raw)
  To: Gabriel Niebler; +Cc: fstests

On Tue, Jan 31, 2023 at 01:38:38PM +0100, Gabriel Niebler wrote:
> 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 <gniebler@suse.com>
> ---

No objection from me.

Reviewed-by: Zorro Lang <zlang@redhat.com>

>  README | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> diff --git a/README b/README
> index 4c4f22f8..008d3875 100644
> --- a/README
> +++ b/README
> @@ -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
>  --------------------------------------
>  
> -- 
> 2.39.1
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
  2023-01-31 12:38 ` [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing Gabriel Niebler
@ 2023-02-06 14:52   ` Zorro Lang
  2023-02-06 16:29     ` Gabriel Niebler
  0 siblings, 1 reply; 8+ messages in thread
From: Zorro Lang @ 2023-02-06 14:52 UTC (permalink / raw)
  To: Gabriel Niebler; +Cc: fstests

On Tue, Jan 31, 2023 at 01:38:39PM +0100, Gabriel Niebler wrote:
> Signed-off-by: Gabriel Niebler <gniebler@suse.com>
> ---
>  README | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/README b/README
> index 008d3875..574cdd34 100644
> --- a/README
> +++ b/README
> @@ -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
>      - 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.
> -- 
> 2.39.1
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
  2023-02-06 14:52   ` Zorro Lang
@ 2023-02-06 16:29     ` Gabriel Niebler
  2023-02-18  6:26       ` Zorro Lang
  0 siblings, 1 reply; 8+ messages in thread
From: Gabriel Niebler @ 2023-02-06 16:29 UTC (permalink / raw)
  To: Zorro Lang; +Cc: fstests

Am 06.02.23 um 15:52 schrieb Zorro Lang:
> On Tue, Jan 31, 2023 at 01:38:39PM +0100, Gabriel Niebler wrote:
>> Signed-off-by: Gabriel Niebler <gniebler@suse.com>
>> ---
>>   README | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/README b/README
>> index 008d3875..574cdd34 100644
>> --- a/README
>> +++ b/README
>> @@ -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".

How about this: "(for full btrfs test coverage, use at least 5 devices 
of equal size and at least 10GB)"

> P.S. I'm thinking about if this "(...)" should be moved to below item.
>                                                          vvvvv
>>       - 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
  2023-02-06 16:29     ` Gabriel Niebler
@ 2023-02-18  6:26       ` Zorro Lang
  2023-02-22 17:24         ` Gabriel Niebler
  0 siblings, 1 reply; 8+ messages in thread
From: Zorro Lang @ 2023-02-18  6:26 UTC (permalink / raw)
  To: Gabriel Niebler; +Cc: fstests

On Mon, Feb 06, 2023 at 05:29:14PM +0100, Gabriel Niebler wrote:
> Am 06.02.23 um 15:52 schrieb Zorro Lang:
> > On Tue, Jan 31, 2023 at 01:38:39PM +0100, Gabriel Niebler wrote:
> > > Signed-off-by: Gabriel Niebler <gniebler@suse.com>
> > > ---
> > >   README | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/README b/README
> > > index 008d3875..574cdd34 100644
> > > --- a/README
> > > +++ b/README
> > > @@ -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".
> 
> 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.

> 
> > P.S. I'm thinking about if this "(...)" should be moved to below item.
> >                                                          vvvvv
> > >       - 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
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing
  2023-02-18  6:26       ` Zorro Lang
@ 2023-02-22 17:24         ` Gabriel Niebler
  0 siblings, 0 replies; 8+ messages in thread
From: Gabriel Niebler @ 2023-02-22 17:24 UTC (permalink / raw)
  To: Zorro Lang; +Cc: fstests

Am 18.02.23 um 07:26 schrieb Zorro Lang:
> On Mon, Feb 06, 2023 at 05:29:14PM +0100, Gabriel Niebler wrote:
>> Am 06.02.23 um 15:52 schrieb Zorro Lang:
>>> On Tue, Jan 31, 2023 at 01:38:39PM +0100, Gabriel Niebler wrote:
>>>> Signed-off-by: Gabriel Niebler <gniebler@suse.com>
>>>> ---
>>>>    README | 2 +-
>>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/README b/README
>>>> index 008d3875..574cdd34 100644
>>>> --- a/README
>>>> +++ b/README
>>>> @@ -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".
>>
>> 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-22 17:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 12:38 [PATCH 0/2] README: Add distro and btrfs testing info Gabriel Niebler
2023-01-31 12:38 ` [PATCH 1/2] README: Add section to install required packages on (open)SUSE Gabriel Niebler
2023-02-06 14:45   ` Zorro Lang
2023-01-31 12:38 ` [PATCH 2/2] README: Add tiny note concerning required scratch devs for btrfs testing Gabriel Niebler
2023-02-06 14:52   ` Zorro Lang
2023-02-06 16:29     ` Gabriel Niebler
2023-02-18  6:26       ` Zorro Lang
2023-02-22 17:24         ` Gabriel Niebler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).