+47
−17
Loading
The current code for handling short writes in localio just truncates the I/O and then sets an error. While that is close to how the ordinary NFS code behaves, it does mean there is a chance the data that got written is lost because it isn't persisted. To fix this, change localio so that the upper layers can direct the behaviour to persist any unstable data by rewriting it, and then continuing writing until an ENOSPC is hit. Fixes: 70ba381e ("nfs: add LOCALIO support") Signed-off-by:Trond Myklebust <trond.myklebust@hammerspace.com> Reviewed-by:
Mike Snitzer <snitzer@kernel.org> Signed-off-by:
Anna Schumaker <anna.schumaker@oracle.com>