HomeFreeBSD

ZTS: Test for clone, mmap and write for block cloning

Description

ZTS: Test for clone, mmap and write for block cloning

For block cloning, if we mmap the cloned file and write from the
map into the file, it triggers a panic in dbuf_redirty() on Linux.

The same scenario causes data corruption on FreeBSD. Both these
issues are fixed under PR#15656 and PR#15665.

It would be good to add a test for this scenario in ZTS. The test
program and issue was produced by @robn.

Reviewed-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #15717

Details

Provenance
Umer Saleem <usaleem@ixsystems.com>Authored on Jan 16 2024, 9:15 PM
GitHub <noreply@github.com>Committed on Jan 16 2024, 9:15 PM
Parents
rGa1771d243a57: Fix "out of memory" error
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG995734ed12de: ZTS: Test for clone, mmap and write for block cloning (authored by Umer Saleem <usaleem@ixsystems.com>).Jan 16 2024, 9:15 PM