HomeFreeBSD

Fix cloning into mmaped and cached file.

Description

Fix cloning into mmaped and cached file.

If the destination file is mmaped and the mmaped region was already
read, so it is cached, we need to update mmaped pages after successful
clone using update_pages().

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Pointed out by: Ka Ho Ng <khng@freebsd.org>
Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Closes #15772

Details

Provenance
pjdAuthored on Jan 17 2024, 4:51 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 19 2024, 8:28 PM
Parents
rGd2f7b2e55767: ZTS: Test for clone, mmap and write for block cloning
Branches
Unknown
Tags
Unknown