NFS: Cache inconsistencies are present after using copy_file_range()

Solution Verified - Updated -

Issue

  • The local cache state of a file is inconsistent with the NFS server after using copy_file_range()
  • The NFS client is doing a partial read of a file from a NFS server instead of reading to the end of the file.
  • Clearing the page cache, # echo 1 > /proc/sys/vm/drop_caches, causes the NFS client force a read from the NFS server.

Environment

  • Red Hat Enterprise Linux 8
  • NFS

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content