[Ocfs2-devel] [PATCH 02/25] vfs: vfs_clone_file_prep_inodes should return EINVAL for a clone from beyond EOF
    Christoph Hellwig 
    hch at infradead.org
       
    Thu Oct 11 06:40:29 PDT 2018
    
    
  
On Wed, Oct 10, 2018 at 09:12:30PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong at oracle.com>
> 
> vfs_clone_file_prep_inodes cannot return 0 if it is asked to remap from
> a zero byte file because that's what btrfs does.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong at oracle.com>
> ---
Maybe it would be a good time to switch btrfs to use
vfs_clone_file_prep_inodes so that we don't have any discrepancies?
Otherwise looks good:
Reviewed-by: Christoph Hellwig <hch at lst.de>
    
    
More information about the Ocfs2-devel
mailing list