Whamcloud - gitweb
LU-14043 lfs: use buffered IO in mirror extend 75/40275/4
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 16 Oct 2020 18:37:36 +0000 (13:37 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 9 Dec 2020 07:48:16 +0000 (07:48 +0000)
commit11a81df15825123ed743e2f142cdd72ba9a43e1e
tree58c7fd7f779002052bec054653f2dc0c116414a2
parent3e5c6620fd0b0511498d14d38e8610d08f6da7b3
LU-14043 lfs: use buffered IO in mirror extend

In lfs_mirror_extend() use buffered IO to read from the source
file. Mirror resync will continue to use direct IO on the source.
Call posix_fadvise() at the end of mirroring to discard cached data
from the old and new mirrors.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I7703ae9e30cf30a7e6fbf274114d5986a80d4d3a
Reviewed-on: https://review.whamcloud.com/40275
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Patrick Farrell <farr0186@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lfs.c