]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay/060: Use falloc to make sure a meta copy file got copied up
authorVivek Goyal <vgoyal@redhat.com>
Mon, 4 Feb 2019 18:34:54 +0000 (13:34 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Feb 2019 09:12:03 +0000 (17:12 +0800)
commit3e3fa955fb2e18f3c91a216f987c682189d3ce35
tree38e620d71fecfc556478af25bf54951fc562e22d
parent6d17c9076fe9d97d2411e5909e6b255e5e721fc3
overlay/060: Use falloc to make sure a meta copy file got copied up

Overlayfs might copy up data of file on first write of file (and
not necessarily upon open of file). So call falloc file opened
with O_RDWR and after that data must have been copied up.

[Eryu: add _require_xfs_io_command "falloc" to make sure underlying
fs have fallocate(2) support]

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/overlay/060