Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btrfs-progs v5.4.1+ [TEST/mkfs] 020-basic-checksums-mount fails on ppc32, Big Endian #192

Closed
ernsteiswuerfel opened this issue Jul 14, 2019 · 28 comments
Labels
bug
Milestone

Comments

@ernsteiswuerfel
Copy link

@ernsteiswuerfel ernsteiswuerfel commented Jul 14, 2019

Did run the btrfs-progs v5.2.0 tests on my PowerMac G4 DP, these were the failing ones:

    [TEST/mkfs]   017-small-backing-size-thin-provision-device
failed: dmsetup create btrfs-progs-thin-pool --table 0 2048 thin-pool /dev/mapper/btrfs-progs-thin-meta /dev/mapper/btrfs-progs-thin-data 1024 200
test failed for case 017-small-backing-size-thin-provision-device

    [TEST/misc]   004-shrink-fs
failed: /root/build/btrfs-progs-v5.2/btrfs balance start -mconvert=single -sconvert=single -f /root/build/btrfs-progs-v5.2/tests//mnt
test failed for case 004-shrink-fs
    [TEST/misc]   005-convert-progress-thread-crash
failed: /root/build/btrfs-progs-v5.2/btrfs-convert /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 005-convert-progress-thread-crash
    [TEST/misc]   007-subvolume-sync
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 007-subvolume-sync
    [TEST/misc]   008-leaf-crossing-stripes
failed: mkfs.ext4 -F /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 008-leaf-crossing-stripes
    [TEST/misc]   009-subvolume-sync-must-wait
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 009-subvolume-sync-must-wait
    [TEST/misc]   010-convert-delete-ext2-subvol
failed: /root/build/btrfs-progs-v5.2/btrfs-convert /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 010-convert-delete-ext2-subvol
    [TEST/misc]   013-subvolume-sync-crash
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 013-subvolume-sync-crash
    [TEST/misc]   014-filesystem-label
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f -L BTRFS-TEST-LABEL /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 014-filesystem-label
    [TEST/misc]   016-send-clone-src
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 016-send-clone-src
    [TEST/misc]   017-recv-stream-malformatted
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 017-recv-stream-malformatted
    [TEST/misc]   018-recv-end-of-stream
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 018-recv-end-of-stream
    [TEST/misc]   019-receive-clones-on-mounted-subvol
Failed prerequisites: /root/build/btrfs-progs-v5.2/fssum
test failed for case 019-receive-clones-on-mounted-subvol
    [TEST/misc]   020-fix-superblock-corruption
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 020-fix-superblock-corruption
    [TEST/misc]   022-filesystem-du-on-empty-subvol
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 022-filesystem-du-on-empty-subvol
    [TEST/misc]   024-inspect-internal-rootid
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 024-inspect-internal-rootid
    [TEST/misc]   026-image-non-printable-chars
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 026-image-non-printable-chars
    [TEST/misc]   027-subvol-list-deleted-toplevel
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 027-subvol-list-deleted-toplevel
    [TEST/misc]   028-superblock-recover
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 028-superblock-recover
    [TEST/misc]   029-send-p-different-mountpoints
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 029-send-p-different-mountpoints
    [TEST/misc]   031-qgroup-parent-child-relation
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 031-qgroup-parent-child-relation
    [TEST/misc]   033-filename-length-limit
failed: /root/build/btrfs-progs-v5.2/mkfs.btrfs -f /root/build/btrfs-progs-v5.2/tests//test.img
test failed for case 033-filename-length-limit

One time during testing the kernel had a btrfs hickup (klick) but I was not able to reproduce yet.

@kdave kdave added the bug label Jul 23, 2019
@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Oct 15, 2019

Did a re-test with btrfs-progs v5.2.2 and kernel 5.4-rc3.

The situation sure hase improved a lot! Of the 22 test failures originally reported here only 4 remain:

    [TEST/mkfs]   005-long-device-name-for-ssd
failed: dmsetup create btrfs-test-with-very-long-name-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA --table 0 1048576 linear /dev/loop0 0
test failed for case 005-long-device-name-for-ssd
    [TEST/mkfs]   017-small-backing-size-thin-provision-device
Failed system wide prerequisities: dmsetup
test failed for case 017-small-backing-size-thin-provision-device
    [TEST/mkfs]   018-multidevice-overflow
failed: truncate -s 6E /root/build/btrfs-progs/tests//mnt/img1
test failed for case 018-multidevice-overflow

    [TEST/misc]   019-receive-clones-on-mounted-subvol
Failed prerequisites: /root/build/btrfs-progs/fssum
test failed for case 019-receive-clones-on-mounted-subvol

Some tests were skipped as I did not build btrfs as a module. For some tests I seem to be missing the correct prerequisites (dmsetup, ffsum?)

@ernsteiswuerfel ernsteiswuerfel changed the title btrfs-progs v5.2.0: [TEST/mkfs] 017-small-backing-size-thin-provision-device + several [TEST/misc] fail on ppc32, Big Endian btrfs-progs v5.2.2: [TEST/mkfs] 005-long-device-name-for-ssd, 018-multidevice-overflow on ppc32, Big Endian Oct 15, 2019
kdave added a commit that referenced this issue Oct 23, 2019
This test uses tool dmsetup so add the global prereq.

Issue: #192
Signed-off-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Oct 25, 2019
This test uses tool dmsetup so add the global prereq.

Issue: #192
Signed-off-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Nov 1, 2019
This test uses tool dmsetup so add the global prereq.

Issue: #192
Signed-off-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Nov 18, 2019
This test uses tool dmsetup so add the global prereq.

Issue: #192
Signed-off-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Dec 15, 2019

Re-test with btrfs-progs v5.4 and kernel 5.5-rc1:

failed: dmsetup create btrfs-progs-thin-pool --table 0 2048 thin-pool /dev/mapper/btrfs-progs-thin-meta /dev/mapper/btrfs-progs-thin-data 1024 200
test failed for case 017-small-backing-size-thin-provision-device

[  761.770107] device-mapper: table: 254:2: thin-pool: unknown target type
[  761.780461] device-mapper: ioctl: error adding target to table

    [TEST/mkfs]   018-multidevice-overflow
failed: truncate -s 6E /root/build/btrfs-progs/tests//mnt/img1
test failed for case 018-multidevice-overflow
    [TEST/mkfs]   019-basic-checksums-mkfs
failed: /root/build/btrfs-progs/btrfs check /root/build/btrfs-progs/tests//test.img
test failed for case 019-basic-checksums-mkfs
    [TEST/mkfs]   020-basic-checksums-mount
failed: /root/build/btrfs-progs/btrfs check /root/build/btrfs-progs/tests//test.img
test failed for case 020-basic-checksums-mount


    [TEST/misc]   038-backup-root-corruption
failed: /root/build/btrfs-progs/mkfs.btrfs -f /root/build/btrfs-progs/tests//test.img
test failed for case 038-backup-root-corruption
@ernsteiswuerfel ernsteiswuerfel changed the title btrfs-progs v5.2.2: [TEST/mkfs] 005-long-device-name-for-ssd, 018-multidevice-overflow on ppc32, Big Endian btrfs-progs v5.4 [TEST/mkfs] 017-small-backing-size-thin-provision-device, 018-multidevice-overflow, 019-basic-checksums-mkfs, 020-basic-checksums-mount, [TEST/misc] 038-backup-root-corruptionon ppc32, Big Endian Dec 15, 2019
@marcosps
Copy link
Contributor

@marcosps marcosps commented Dec 16, 2019

@ernsteiswuerfel this happens when your kernel does not have the DM_THIN_PROVISIONING configured. I have a patch read to be submited this error and skip the test. Hopefully I can submit this week.

marcosps added a commit to marcosps/btrfs-progs that referenced this issue Dec 17, 2019
This test can fail due to the lack of kernel support of dm-thin. dmsetup
always returns 1 to signify a problem, so we need to check the output of
the command to distinguish the lack of dm-thin support or a different
error, from the execution without problem, which does not print anything
to the stdout.

Issue: kdave#192

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
marcosps added a commit to marcosps/btrfs-progs that referenced this issue Dec 17, 2019
If dm-thin is not supported, let's skip the test altogether instead of
throwing an error.

Issue: kdave#192

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
marcosps added a commit to marcosps/btrfs-progs that referenced this issue Dec 17, 2019
If dm-thin is not supported, let's skip the test altogether instead of
throwing an error.

Issue: kdave#192

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
@marcosps
Copy link
Contributor

@marcosps marcosps commented Dec 17, 2019

Patches posted in ML: https://lore.kernel.org/linux-btrfs/

marcosps added a commit to marcosps/btrfs-progs that referenced this issue Dec 17, 2019
If dm-thin or dm-linear are not supported, let's skip the test altogether
instead of throwing an error.

Issue: kdave#192

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
marcosps added a commit to marcosps/btrfs-progs that referenced this issue Dec 18, 2019
If dm-thin or dm-linear are not supported, let's skip the test altogether
instead of throwing an error.

Issue: kdave#192

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Dec 18, 2019

@ernsteiswuerfel this happens when your kernel does not have the DM_THIN_PROVISIONING configured. I have a patch read to be submited this error and skip the test. Hopefully I can submit this week.

Ah yes, didn't know that. Thanks, also for the patches! With DM_THIN_PROVISIONING enabled the test passes.

@ernsteiswuerfel ernsteiswuerfel changed the title btrfs-progs v5.4 [TEST/mkfs] 017-small-backing-size-thin-provision-device, 018-multidevice-overflow, 019-basic-checksums-mkfs, 020-basic-checksums-mount, [TEST/misc] 038-backup-root-corruptionon ppc32, Big Endian btrfs-progs v5.4 [TEST/mkfs] 018-multidevice-overflow, 019-basic-checksums-mkfs, 020-basic-checksums-mount, [TEST/misc] 038-backup-root-corruptionon ppc32, Big Endian Dec 18, 2019
@marcosps
Copy link
Contributor

@marcosps marcosps commented Feb 10, 2020

@ernsteiswuerfel it's odd that 018-multidevice-overflow fails. Can you please check which is the problem by looking at tests/mkfs-tests-results.txt ? You can paste the portion related to 018-multidevice test here. Thanks!

@marcosps
Copy link
Contributor

@marcosps marcosps commented Feb 10, 2020

@ernsteiswuerfel about 019 and 020, I sent a patch to the ML to run the tests only on supported csum. I don't know if this is your problem, but it may help :)

@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Feb 11, 2020

@marcosps Re-tested with kernel 5.5.3 and btrfs-progs from git-devel which already incorporates the patch you mentioned.

=== START TEST /root/build/btrfs-progs/tests//mkfs-tests/018-multidevice-overflow
$TEST_DEV not given, using /root/build/btrfs-progs/tests//test.img as fallback
====== RUN CHECK /root/build/btrfs-progs/mkfs.btrfs -f /root/build/btrfs-progs/tests//test.img
btrfs-progs v5.4 
See http://btrfs.wiki.kernel.org for more information.

Label:              (null)
UUID:               cf48c3e0-722b-4c72-a5a8-2d46612f80db
Node size:          16384
Sector size:        4096
Filesystem size:    2.00GiB
Block group profiles:
  Data:             single            8.00MiB
  Metadata:         DUP             102.38MiB
  System:           DUP               8.00MiB
SSD detected:       no
Incompat features:  extref, skinny-metadata
Checksum:           crc32c
Number of devices:  1
Devices:
   ID        SIZE  PATH
    1     2.00GiB  /root/build/btrfs-progs/tests//test.img

====== RUN CHECK mount -t btrfs -o loop /root/build/btrfs-progs/tests//test.img /root/build/btrfs-progs/tests//mnt
====== RUN CHECK truncate -s 6E /root/build/btrfs-progs/tests//mnt/img1
truncate: failed to truncate '/root/build/btrfs-progs/tests//mnt/img1' at 6917529027641081856 bytes: File too large
failed: truncate -s 6E /root/build/btrfs-progs/tests//mnt/img1
test failed for case 018-multidevice-overflow
@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Feb 11, 2020

019 passes now, thanks! 020 still fails.

====== RUN CHECK mount -t btrfs -o loop /root/build/btrfs-progs/tests//test.img /root/build/btrfs-progs/tests//mnt
mount: /root/build/btrfs-progs/tests/mnt: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
failed: mount -t btrfs -o loop /root/build/btrfs-progs/tests//test.img /root/build/btrfs-progs/tests//mnt
test failed for case 020-basic-checksums-mount
@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Feb 12, 2020

[TEST/misc] 038-backup-root-corruptionon passes now, but [TEST/misc] 034-metadata-uuid fails.

====== RUN CHECK mount /dev/loop2 /root/build/btrfs-progs/tests//mnt
mount: /root/build/btrfs-progs/tests/mnt: wrong fs type, bad option, bad superblock on /dev/loop2, missing codepage or helper program, or other error.
failed: mount /dev/loop2 /root/build/btrfs-progs/tests//mnt
test failed for case 034-metadata-uuid

[...]
[ 2963.015469] BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 1 transid 6 /dev/loop2 scanned by systemd-udevd (12082)
[ 2963.131179] BTRFS info (device loop2): found metadata UUID change in progress flag, clearing
[ 2963.138319] BTRFS info (device loop2): disk space caching is enabled
[ 2963.145408] BTRFS info (device loop2): has skinny extents
[ 2963.152342] BTRFS info (device loop2): flagging fs with big metadata feature
[ 2963.168704] BTRFS error (device loop2): devid 2 uuid cde07de6-db7e-4b34-909e-d3db6e7c0b06 is missing
[ 2963.176140] BTRFS error (device loop2): failed to read the system array: -2
[ 2963.238305] BTRFS error (device loop2): open_ctree failed
[ 2963.252785] BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 2 transid 5 /dev/loop3 scanned by systemd-udevd (12093)

Will update bug title accordingly.

@ernsteiswuerfel ernsteiswuerfel changed the title btrfs-progs v5.4 [TEST/mkfs] 018-multidevice-overflow, 019-basic-checksums-mkfs, 020-basic-checksums-mount, [TEST/misc] 038-backup-root-corruptionon ppc32, Big Endian btrfs-progs v5.4.1+ [TEST/mkfs] 018-multidevice-overflow, 020-basic-checksums-mount, [TEST/misc] 034-metadata-uuid ppc32, Big Endian Feb 12, 2020
@marcosps
Copy link
Contributor

@marcosps marcosps commented Feb 12, 2020

@ernsteiswuerfel can you please retest 019 and 020 again using the latest devel? Today a new patch was merged that could skip these tests when csum hashes are not enabled.

About 018 I need to look at this more closely. What we do is create a btrfs on loop device, and then create a huge file, and btrfs can create a 6E filesize, but I don't know how this does not work for you.

I will try to get a PPC machine and test it tomorrow.

Also, can you post the output of the test 034 that is currently failing as well? Thanks!

@marcosps
Copy link
Contributor

@marcosps marcosps commented Feb 12, 2020

Well, I don't have a ppc32 at hand. In this case, can you please return output of the following commads:

uname -m
lscpu
getconf LONG_BIT

I suspect that a 32bit system can only address a couple TB filesizes, and in this case we should skip this test. Thanks for your help!

@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Feb 12, 2020

Also, can you post the output of the test 034 that is currently failing as well? Thanks!

Already did that in the posting above, code section.

git-devel btrfs-progs tested by me was also latest (73b4b17).

@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Feb 12, 2020

Well, I don't have a ppc32 at hand.

What a pity I sold a PowerBook G4 of mine some time ago and can't make you an offer now. ;)
Here's the data you asked:

 # uname -m
ppc
 # lscpu
Architecture:        ppc
CPU op-mode(s):      32-bit
Byte Order:          Big Endian
CPU(s):              2
On-line CPU(s) list: 0,1
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           2
Model:               3.3 (pvr 8001 0303)
Model name:          7455, altivec supported
BogoMIPS:            83.78
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            2048K
 # getconf LONG_BIT
32

I suspect that a 32bit system can only address a couple TB filesizes, and in this case we should skip this test. Thanks for your help!

Hmm, don't know that. If so, x86, arm, sparc32 and other 32bit arches around should fail this test as well I guess?

And thank 'yer all for your work on btrfs! I really do like it's compression features, especially on slower machines with limited disk space.

marcosps added a commit to marcosps/btrfs-progs that referenced this issue Feb 15, 2020
This test uses truncate utility to create a 6E file but this fails
currently fails for PPC32[1], but it will also fail to other 32bit
platforms, so skip this test in these platforms.

[1]: kdave#192

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
@marcosps
Copy link
Contributor

@marcosps marcosps commented Feb 15, 2020

What a pity I sold a PowerBook G4 of mine some time ago and can't make you an offer now. ;)
:P

Here's the data you asked:

 # uname -m
ppc
 # lscpu
Architecture:        ppc
CPU op-mode(s):      32-bit
Byte Order:          Big Endian
CPU(s):              2
On-line CPU(s) list: 0,1
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           2
Model:               3.3 (pvr 8001 0303)
Model name:          7455, altivec supported
BogoMIPS:            83.78
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            2048K
 # getconf LONG_BIT
32

Well, I sent a patch to skip this test in 32bit machines, or at least receive suggestion of how to avoid such situation.

Hmm, don't know that. If so, x86, arm, sparc32 and other 32bit arches around should fail this test as well I guess?
I guess so.

And thank 'yer all for your work on btrfs! I really do like it's compression features, especially on slower machines with limited disk space.

Thanks :D
I would like to have more people running tests, and improving our test scripts would make it more pleasant for people to help us ot ensure that btrfs if a nice piece of software :)

marcosps added a commit to marcosps/btrfs-progs that referenced this issue Feb 28, 2020
The truncate command can fail in some platform like PPC32[1] because it
can't create files up to 6E in size. Skip the test if this was the
problem why truncate failed.

[1]: kdave#192

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
@marcosps
Copy link
Contributor

@marcosps marcosps commented Feb 28, 2020

@ernsteiswuerfel can you please test btrfs-progs from the following branch? https://github.com/marcosps/btrfs-progs/commits/mpdesouza_tests_ok

This branch has fixes that should be merged soon into btrfs-progs, and they are intended to fix your issues like 018 and 034. 020 seems to be fixed as well.

Thanks for you help in testing these fixes!

@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Feb 28, 2020

I tested your branch on kernel 5.6-rc3 and 034 is fixed, thanks! However 018 and 020 still fail:

[...]
    [TEST/mkfs]   018-multidevice-overflow
Truncate command failed: 1
test failed for case 018-multidevice-overflow
make: *** [Makefile:405: test-mkfs] Fehler 1

[...]
[ 1680.749458] buffer_io_error: 776 callbacks suppressed
[ 1680.749475] Buffer I/O error on dev dm-3, logical block 256, lost async page write
[ 1680.769820] Buffer I/O error on dev dm-3, logical block 257, lost async page write
[ 1680.780013] Buffer I/O error on dev dm-3, logical block 258, lost async page write
[ 1680.790237] Buffer I/O error on dev dm-3, logical block 259, lost async page write
[ 1680.799958] Buffer I/O error on dev dm-3, logical block 260, lost async page write
[ 1680.809572] Buffer I/O error on dev dm-3, logical block 261, lost async page write
[ 1680.819133] Buffer I/O error on dev dm-3, logical block 262, lost async page write
[ 1680.828574] Buffer I/O error on dev dm-3, logical block 263, lost async page write
[ 1680.837957] Buffer I/O error on dev dm-3, logical block 264, lost async page write
[ 1680.847097] Buffer I/O error on dev dm-3, logical block 265, lost async page write
[ 1682.155379] BTRFS: device fsid 57e5fd27-b15b-497f-8e2f-32c0ee41701e devid 1 transid 5 /dev/loop0 scanned by mount (23545)

# TEST=020\* ./mkfs-tests.sh 
    [TEST/mkfs]   020-basic-checksums-mount
failed: mount -t btrfs -o loop /root/build/btrfs-progs/tests//test.img /root/build/btrfs-progs/tests//mnt
test failed for case 020-basic-checksums-mount

[...]
[ 1798.119645] BTRFS: device fsid ac4ffda2-4b23-4d6d-bd00-e7e3e18deac0 devid 1 transid 5 /dev/loop0 scanned by mount (23774)
[ 1798.264297] BTRFS error (device loop0): superblock checksum mismatch
[ 1798.280910] BTRFS error (device loop0): open_ctree failed

All other tests pass.

@ernsteiswuerfel ernsteiswuerfel changed the title btrfs-progs v5.4.1+ [TEST/mkfs] 018-multidevice-overflow, 020-basic-checksums-mount, [TEST/misc] 034-metadata-uuid ppc32, Big Endian btrfs-progs v5.4.1+ [TEST/mkfs] 018-multidevice-overflow, 020-basic-checksums-mount fail on ppc32, Big Endian Feb 28, 2020
@marcosps
Copy link
Contributor

@marcosps marcosps commented Feb 28, 2020

@ernsteiswuerfel that's odd. Can you add the results of both tests like you did in #192 (comment)?

That would help to understand what's going on.

Two other suggestions:

  • Can you paste here the output of "cat /sys/fs/btrfs/features/supported_checksums"?
  • Can you delete tests/test.img and tests/mnt/img* and rerun the test to check if something changes? I had some tests failing some time ago and removing these files helped to make the tests to pass...

Thanks for you help!

@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Feb 28, 2020

018-multidevice-overflow

=== START TEST /root/build/btrfs-progs/tests//mkfs-tests/018-multidevice-overflow
$TEST_DEV not given, using /root/build/btrfs-progs/tests//test.img as fallback
====== RUN CHECK /root/build/btrfs-progs/mkfs.btrfs -f /root/build/btrfs-progs/tests//test.img
btrfs-progs v5.4.1 
See http://btrfs.wiki.kernel.org for more information.

Label:              (null)
UUID:               1d80120b-a07e-44ad-aa85-bf1d0139e024
Node size:          16384
Sector size:        4096
Filesystem size:    2.00GiB
Block group profiles:
  Data:             single            8.00MiB
  Metadata:         DUP             102.38MiB
  System:           DUP               8.00MiB
SSD detected:       no
Incompat features:  extref, skinny-metadata
Checksum:           crc32c
Number of devices:  1
Devices:
   ID        SIZE  PATH
    1     2.00GiB  /root/build/btrfs-progs/tests//test.img

====== RUN CHECK mount -t btrfs -o loop /root/build/btrfs-progs/tests//test.img /root/build/btrfs-progs/tests//mnt
====== RUN MAYFAIL truncate -s 6E /root/build/btrfs-progs/tests//mnt/img1
truncate: failed to truncate '/root/build/btrfs-progs/tests//mnt/img1' at 6917529027641081856 bytes: File too large
failed (ignored, ret=1): truncate -s 6E /root/build/btrfs-progs/tests//mnt/img1
Truncate command failed: 1
test failed for case 018-multidevice-overflow

020-basic-checksums-mount

=== START TEST /root/build/btrfs-progs/tests//mkfs-tests/020-basic-checksums-mount
$TEST_DEV not given, using /root/build/btrfs-progs/tests//test.img as fallback
====== RUN CHECK /root/build/btrfs-progs/mkfs.btrfs -f --csum crc32c /root/build/btrfs-progs/tests//test.img
btrfs-progs v5.4.1 
See http://btrfs.wiki.kernel.org for more information.

Label:              (null)
UUID:               befb469f-e612-4c1b-a318-654c5fb2f6c2
Node size:          16384
Sector size:        4096
Filesystem size:    2.00GiB
Block group profiles:
  Data:             single            8.00MiB
  Metadata:         DUP             102.38MiB
  System:           DUP               8.00MiB
SSD detected:       no
Incompat features:  extref, skinny-metadata
Checksum:           crc32c
Number of devices:  1
Devices:
   ID        SIZE  PATH
    1     2.00GiB  /root/build/btrfs-progs/tests//test.img

====== RUN CHECK /root/build/btrfs-progs/btrfs inspect-internal dump-super /root/build/btrfs-progs/tests//test.img
superblock: bytenr=65536, device=/root/build/btrfs-progs/tests//test.img
---------------------------------------------------------
csum_type		0 (crc32c)
csum_size		4
csum			0x0d08ff07 [match]
bytenr			65536
flags			0x1
			( WRITTEN )
magic			_BHRfS_M [match]
fsid			befb469f-e612-4c1b-a318-654c5fb2f6c2
metadata_uuid		befb469f-e612-4c1b-a318-654c5fb2f6c2
label			
generation		5
root			30556160
sys_array_size		129
chunk_root_generation	5
root_level		0
chunk_root		22036480
chunk_root_level	0
log_root		0
log_root_transid	0
log_root_level		0
total_bytes		2147483648
bytes_used		131072
sectorsize		4096
nodesize		16384
leafsize (deprecated)	16384
stripesize		4096
root_dir		6
num_devices		1
compat_flags		0x0
compat_ro_flags		0x0
incompat_flags		0x141
			( MIXED_BACKREF |
			  EXTENDED_IREF |
			  SKINNY_METADATA )
cache_generation	18446744073709551615
uuid_tree_generation	0
dev_item.uuid		70813f3f-b983-46a0-9009-bc550c0f926a
dev_item.fsid		befb469f-e612-4c1b-a318-654c5fb2f6c2 [match]
dev_item.type		0
dev_item.total_bytes	2147483648
dev_item.bytes_used	239861760
dev_item.io_align	4096
dev_item.io_width	4096
dev_item.sector_size	4096
dev_item.devid		1
dev_item.dev_group	0
dev_item.seek_speed	0
dev_item.bandwidth	0
dev_item.generation	0

====== RUN CHECK /root/build/btrfs-progs/btrfs check /root/build/btrfs-progs/tests//test.img
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
Opening filesystem to check...
Checking filesystem on /root/build/btrfs-progs/tests//test.img
UUID: befb469f-e612-4c1b-a318-654c5fb2f6c2
found 131072 bytes used, no error found
total csum bytes: 0
total tree bytes: 131072
total fs tree bytes: 32768
total extent tree bytes: 16384
btree space waste bytes: 125199
file data blocks allocated: 0
 referenced 0
====== RUN CHECK mount -t btrfs -o loop /root/build/btrfs-progs/tests//test.img /root/build/btrfs-progs/tests//mnt
====== RUN CHECK /root/build/btrfs-progs/btrfs filesystem df /root/build/btrfs-progs/tests//mnt
Data, single: total=8.00MiB, used=0.00B
System, DUP: total=8.00MiB, used=16.00KiB
Metadata, DUP: total=102.38MiB, used=112.00KiB
GlobalReserve, single: total=3.25MiB, used=0.00B
====== RUN CHECK /root/build/btrfs-progs/btrfs filesystem usage /root/build/btrfs-progs/tests//mnt
Overall:
    Device size:		   2.00GiB
    Device allocated:		 228.75MiB
    Device unallocated:		   1.78GiB
    Device missing:		     0.00B
    Used:			 256.00KiB
    Free (estimated):		   1.78GiB	(min: 917.62MiB)
    Data ratio:			      1.00
    Metadata ratio:		      2.00
    Global reserve:		   3.25MiB	(used: 0.00B)

Data,single: Size:8.00MiB, Used:0.00B (0.00%)
   /dev/loop1	   8.00MiB

Metadata,DUP: Size:102.38MiB, Used:112.00KiB (0.11%)
   /dev/loop1	 204.75MiB

System,DUP: Size:8.00MiB, Used:16.00KiB (0.20%)
   /dev/loop1	  16.00MiB

Unallocated:
   /dev/loop1	   1.78GiB
====== RUN CHECK /root/build/btrfs-progs/btrfs device usage /root/build/btrfs-progs/tests//mnt
/dev/loop1, ID: 1
   Device size:             2.00GiB
   Device slack:              0.00B
   Data,single:             8.00MiB
   Metadata,DUP:          204.75MiB
   System,DUP:             16.00MiB
   Unallocated:             1.78GiB

====== RUN CHECK umount /root/build/btrfs-progs/tests//test.img
====== RUN CHECK /root/build/btrfs-progs/mkfs.btrfs -f --csum xxhash64 /root/build/btrfs-progs/tests//test.img
btrfs-progs v5.4.1 
See http://btrfs.wiki.kernel.org for more information.

Label:              (null)
UUID:               d4dcb3e5-4d77-43a7-ae0e-c608400cb14b
Node size:          16384
Sector size:        4096
Filesystem size:    2.00GiB
Block group profiles:
  Data:             single            8.00MiB
  Metadata:         DUP             102.38MiB
  System:           DUP               8.00MiB
SSD detected:       no
Incompat features:  extref, skinny-metadata
Checksum:           xxhash64
Number of devices:  1
Devices:
   ID        SIZE  PATH
    1     2.00GiB  /root/build/btrfs-progs/tests//test.img

====== RUN CHECK /root/build/btrfs-progs/btrfs inspect-internal dump-super /root/build/btrfs-progs/tests//test.img
superblock: bytenr=65536, device=/root/build/btrfs-progs/tests//test.img
---------------------------------------------------------
csum_type		1 (xxhash64)
csum_size		8
csum			0x52ba7364a0291668 [match]
bytenr			65536
flags			0x1
			( WRITTEN )
magic			_BHRfS_M [match]
fsid			d4dcb3e5-4d77-43a7-ae0e-c608400cb14b
metadata_uuid		d4dcb3e5-4d77-43a7-ae0e-c608400cb14b
label			
generation		5
root			30556160
sys_array_size		129
chunk_root_generation	5
root_level		0
chunk_root		22036480
chunk_root_level	0
log_root		0
log_root_transid	0
log_root_level		0
total_bytes		2147483648
bytes_used		131072
sectorsize		4096
nodesize		16384
leafsize (deprecated)	16384
stripesize		4096
root_dir		6
num_devices		1
compat_flags		0x0
compat_ro_flags		0x0
incompat_flags		0x141
			( MIXED_BACKREF |
			  EXTENDED_IREF |
			  SKINNY_METADATA )
cache_generation	18446744073709551615
uuid_tree_generation	0
dev_item.uuid		b74e4617-4fbb-4078-811d-6eb893a26d94
dev_item.fsid		d4dcb3e5-4d77-43a7-ae0e-c608400cb14b [match]
dev_item.type		0
dev_item.total_bytes	2147483648
dev_item.bytes_used	239861760
dev_item.io_align	4096
dev_item.io_width	4096
dev_item.sector_size	4096
dev_item.devid		1
dev_item.dev_group	0
dev_item.seek_speed	0
dev_item.bandwidth	0
dev_item.generation	0

====== RUN CHECK /root/build/btrfs-progs/btrfs check /root/build/btrfs-progs/tests//test.img
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
Opening filesystem to check...
Checking filesystem on /root/build/btrfs-progs/tests//test.img
UUID: d4dcb3e5-4d77-43a7-ae0e-c608400cb14b
found 131072 bytes used, no error found
total csum bytes: 0
total tree bytes: 131072
total fs tree bytes: 32768
total extent tree bytes: 16384
btree space waste bytes: 125199
file data blocks allocated: 0
 referenced 0
====== RUN CHECK mount -t btrfs -o loop /root/build/btrfs-progs/tests//test.img /root/build/btrfs-progs/tests//mnt
mount: /root/build/btrfs-progs/tests/mnt: wrong fs type, bad option, bad superblock on /dev/loop1, missing codepage or helper program, or other error.
failed: mount -t btrfs -o loop /root/build/btrfs-progs/tests//test.img /root/build/btrfs-progs/tests//mnt
test failed for case 020-basic-checksums-mount
 # cat /sys/fs/btrfs/features/supported_checksums
crc32c xxhash64 sha256 blake2b

 # grep -i crc32c .config
CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32C_VPMSUM is not set
CONFIG_LIBCRC32C=y
 # grep -i xxhash .config
CONFIG_CRYPTO_XXHASH=y
CONFIG_XXHASH=y
 # grep -i sha256 .config
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_LIB_SHA256=y
 # grep -i blake2b .config
CONFIG_CRYPTO_BLAKE2B=y

Deleting tests/test.img and tests/mnt/img* had no effect on the tests.

marcosps added a commit to marcosps/btrfs-progs that referenced this issue Feb 29, 2020
The truncate command can fail in some platform like PPC32[1] because it
can't create files up to 6E in size. Skip the test if this was the
problem why truncate failed.

[1]: kdave#192

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
@marcosps
Copy link
Contributor

@marcosps marcosps commented Feb 29, 2020

@ernsteiswuerfel I guess I found the issue with truncate: it always returns 1. So I needed to compare the output of the command to skip the test or return an error. A new version was pushed to the same branch (if you wanna try... :D )

Now I'm checking the 020, as this seems more tricky... Let me try to reproduce locally or using a PPC64 that I can access...

@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Mar 1, 2020

@ernsteiswuerfel I guess I found the issue with truncate: it always returns 1. So I needed to compare the output of the command to skip the test or return an error. A new version was pushed to the same branch (if you wanna try... :D )

Ok, now it skips the test.

# TEST=018\* ./mkfs-tests.sh 
    [TEST/mkfs]   018-multidevice-overflow
    [NOTRUN] Current kernel could not create a 6E file
@ernsteiswuerfel ernsteiswuerfel changed the title btrfs-progs v5.4.1+ [TEST/mkfs] 018-multidevice-overflow, 020-basic-checksums-mount fail on ppc32, Big Endian btrfs-progs v5.4.1+ [TEST/mkfs] 020-basic-checksums-mount fails on ppc32, Big Endian Mar 1, 2020
@marcosps
Copy link
Contributor

@marcosps marcosps commented Mar 1, 2020

@ernsteiswuerfel great! Just one more issue to tackle. I hope these patches can be merged into devel/master soon.

As a matter os test, can you disable xxhash64 and check if the other csum algos work? Thanks a lot!

It would make easier to us to test (and to find a proper machine to test on...)

kdave added a commit that referenced this issue Mar 2, 2020
The truncate command can fail in some platforms like PPC32 because it
can't create files up to 6EiB in size. Skip the test if this was the
problem why truncate failed.

Issue: #192
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Mar 3, 2020
As seem in issue #192, this test can fail from time to time. The
issue happens when a mount is issued before the new device is processed
by systemd-udevd, as we can see by the og bellow:

  [ 2346.028809] BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 1 transid 6 /dev/loop10 scanned by systemd-udevd (3418)
  [ 2346.265401] BTRFS info (device loop10): found metadata UUID change in progress flag, clearing
  [ 2346.272474] BTRFS info (device loop10): disk space caching is enabled
  [ 2346.277472] BTRFS info (device loop10): has skinny extents
  [ 2346.281840] BTRFS info (device loop10): flagging fs with big metadata feature
  [ 2346.308428] BTRFS error (device loop10): devid 2 uuid cde07de6-db7e-4b34-909e-d3db6e7c0b06 is missing
  [ 2346.315363] BTRFS error (device loop10): failed to read the system array: -2
  [ 2346.329887] BTRFS error (device loop10): open_ctree failed

  failed: mount /dev/loop10 /home/marcos/git/suse/btrfs-progs/tests//mnt
  test failed for case 034-metadata-uuid
  make: *** [Makefile:401: test-misc] Error 1

  [ 2346.666865] BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 2 transid 5 /dev/loop11 scanned by systemd-udevd (3422)
  [ 2346.853233] BTRFS: device fsid 1c2debeb-e829-4d6b-84df-aa7c5d246fd5 devid 1 transid 7 /dev/loop6 scanned by systemd-udevd (3418)

A few moments after the test failed systemd-udevd processed the new
device (registered the new device under btrfs). This can be tested by
executing a mount after the test failed, resulting in a successful
mount:

  $ mount /dev/loop10 /mnt
  [ 2398.955254] BTRFS info (device loop10): found metadata UUID change in progress flag, clearing
  [ 2398.959416] BTRFS info (device loop10): disk space caching is enabled
  [ 2398.962483] BTRFS info (device loop10): has skinny extents
  [ 2398.965070] BTRFS info (device loop10): flagging fs with big metadata feature
  [ 2399.012617] BTRFS info (device loop10): enabling ssd optimizations
  [ 2399.022375] BTRFS info (device loop10): checking UUID tree

This problem can be avoided is we execute "udevadm settle" before the
mount is executed.

Issue: #192
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Mar 3, 2020
The truncate command can fail in some platforms like PPC32 because it
can't create files up to 6EiB in size. Skip the test if this was the
problem why truncate failed.

Issue: #192
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Mar 3, 2020
As seem in issue #192, this test can fail from time to time. The
issue happens when a mount is issued before the new device is processed
by systemd-udevd, as we can see by the og bellow:

  [ 2346.028809] BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 1 transid 6 /dev/loop10 scanned by systemd-udevd (3418)
  [ 2346.265401] BTRFS info (device loop10): found metadata UUID change in progress flag, clearing
  [ 2346.272474] BTRFS info (device loop10): disk space caching is enabled
  [ 2346.277472] BTRFS info (device loop10): has skinny extents
  [ 2346.281840] BTRFS info (device loop10): flagging fs with big metadata feature
  [ 2346.308428] BTRFS error (device loop10): devid 2 uuid cde07de6-db7e-4b34-909e-d3db6e7c0b06 is missing
  [ 2346.315363] BTRFS error (device loop10): failed to read the system array: -2
  [ 2346.329887] BTRFS error (device loop10): open_ctree failed

  failed: mount /dev/loop10 /home/marcos/git/suse/btrfs-progs/tests//mnt
  test failed for case 034-metadata-uuid
  make: *** [Makefile:401: test-misc] Error 1

  [ 2346.666865] BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 2 transid 5 /dev/loop11 scanned by systemd-udevd (3422)
  [ 2346.853233] BTRFS: device fsid 1c2debeb-e829-4d6b-84df-aa7c5d246fd5 devid 1 transid 7 /dev/loop6 scanned by systemd-udevd (3418)

A few moments after the test failed systemd-udevd processed the new
device (registered the new device under btrfs). This can be tested by
executing a mount after the test failed, resulting in a successful
mount:

  $ mount /dev/loop10 /mnt
  [ 2398.955254] BTRFS info (device loop10): found metadata UUID change in progress flag, clearing
  [ 2398.959416] BTRFS info (device loop10): disk space caching is enabled
  [ 2398.962483] BTRFS info (device loop10): has skinny extents
  [ 2398.965070] BTRFS info (device loop10): flagging fs with big metadata feature
  [ 2399.012617] BTRFS info (device loop10): enabling ssd optimizations
  [ 2399.022375] BTRFS info (device loop10): checking UUID tree

This problem can be avoided is we execute "udevadm settle" before the
mount is executed.

Issue: #192
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Mar 3, 2020
The truncate command can fail in some platforms like PPC32 because it
can't create files up to 6EiB in size. Skip the test if this was the
problem why truncate failed.

Issue: #192
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Mar 4, 2020
As seem in issue #192, this test can fail from time to time. The
issue happens when a mount is issued before the new device is processed
by systemd-udevd, as we can see by the og bellow:

  [ 2346.028809] BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 1 transid 6 /dev/loop10 scanned by systemd-udevd (3418)
  [ 2346.265401] BTRFS info (device loop10): found metadata UUID change in progress flag, clearing
  [ 2346.272474] BTRFS info (device loop10): disk space caching is enabled
  [ 2346.277472] BTRFS info (device loop10): has skinny extents
  [ 2346.281840] BTRFS info (device loop10): flagging fs with big metadata feature
  [ 2346.308428] BTRFS error (device loop10): devid 2 uuid cde07de6-db7e-4b34-909e-d3db6e7c0b06 is missing
  [ 2346.315363] BTRFS error (device loop10): failed to read the system array: -2
  [ 2346.329887] BTRFS error (device loop10): open_ctree failed

  failed: mount /dev/loop10 /home/marcos/git/suse/btrfs-progs/tests//mnt
  test failed for case 034-metadata-uuid
  make: *** [Makefile:401: test-misc] Error 1

  [ 2346.666865] BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 2 transid 5 /dev/loop11 scanned by systemd-udevd (3422)
  [ 2346.853233] BTRFS: device fsid 1c2debeb-e829-4d6b-84df-aa7c5d246fd5 devid 1 transid 7 /dev/loop6 scanned by systemd-udevd (3418)

A few moments after the test failed systemd-udevd processed the new
device (registered the new device under btrfs). This can be tested by
executing a mount after the test failed, resulting in a successful
mount:

  $ mount /dev/loop10 /mnt
  [ 2398.955254] BTRFS info (device loop10): found metadata UUID change in progress flag, clearing
  [ 2398.959416] BTRFS info (device loop10): disk space caching is enabled
  [ 2398.962483] BTRFS info (device loop10): has skinny extents
  [ 2398.965070] BTRFS info (device loop10): flagging fs with big metadata feature
  [ 2399.012617] BTRFS info (device loop10): enabling ssd optimizations
  [ 2399.022375] BTRFS info (device loop10): checking UUID tree

This problem can be avoided is we execute "udevadm settle" before the
mount is executed.

Issue: #192
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Mar 4, 2020
The truncate command can fail in some platforms like PPC32 because it
can't create files up to 6EiB in size. Skip the test if this was the
problem why truncate failed.

Issue: #192
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Mar 4, 2020
If dm-thin or dm-linear are not supported, let's skip the test
altogether instead of throwing an error.

Issue: #192
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
@kdave kdave added this to the v5.5 milestone Mar 4, 2020
@kdave
Copy link
Owner

@kdave kdave commented Mar 4, 2020

I've merged Marcos' patches to devel. There were several problems reported in this issue so I'm not sure if all have been fixed.

@marcosps
Copy link
Contributor

@marcosps marcosps commented Mar 4, 2020

@kdave truncate needs to be reworked, as you asked, and there is still the problem with xxhash running on PPC32, that still needs to be found...

kdave added a commit that referenced this issue Mar 5, 2020
If dm-thin or dm-linear are not supported, let's skip the test
altogether instead of throwing an error.

Issue: #192
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Mar 6, 2020
If dm-thin or dm-linear are not supported, let's skip the test
altogether instead of throwing an error.

Issue: #192
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Mar 12, 2020

@marcosps Probably the test itself is ok, but xxhash has a flaw on ppc/ppc64.
See: https://bugzilla.kernel.org/show_bug.cgi?id=206835

@marcosps
Copy link
Contributor

@marcosps marcosps commented Mar 16, 2020

@ernsteiswuerfel can you confirm the patch provided by David solves the issue? Thanks!

@ernsteiswuerfel
Copy link
Author

@ernsteiswuerfel ernsteiswuerfel commented Mar 16, 2020

Yes! Just re-tested with latest git-devel.

As this was the last testsuite error left on my ppc32 machine I hereby declare this bug as closed. Millions of G3, G4 and not to forget 604 users will be happy. ;)

kdave added a commit that referenced this issue Mar 20, 2020
If dm-thin or dm-linear are not supported, let's skip the test
altogether instead of throwing an error.

Issue: #192
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.