[Ocfs2-devel] [PATCH 25/28] xfs: support returning partial	reflink results
    Dave Chinner 
    david at fromorbit.com
       
    Sun Oct 21 19:14:39 PDT 2018
    
    
  
On Sun, Oct 21, 2018 at 09:17:57AM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong at oracle.com>
> 
> Back when the XFS reflink code only supported clone_file_range, we were
> only able to return zero or negative error codes to userspace.  However,
> now that copy_file_range (which returns bytes copied) can use XFS'
> clone_file_range, we have the opportunity to return partial results.
> For example, if userspace sends a 1GB clone request and we run out of
> space halfway through, we at least can tell userspace that we completed
> 512M of that request like a regular write.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong at oracle.com>
Looks ok to me. remap_file_range() still returns the full length,
so there's no change of behaviour there.
Reviewed-by: Dave Chinner <dchinner at redhat.com>
-- 
Dave Chinner
david at fromorbit.com
    
    
More information about the Ocfs2-devel
mailing list