Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263979
b: refs/heads/master
c: 0e7b824
h: refs/heads/master
i:
  263977: 437d1dc
  263975: 801de5a
v: v3
  • Loading branch information
Li Zefan authored and Chris Mason committed Sep 18, 2011
1 parent 4665f50 commit cad5c0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71ef07861080418d125dcf454af41baafa409a2c
refs/heads/master: 0e7b824c4ef9f5bcf5e48cdce164a7b349dde969
5 changes: 5 additions & 0 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2185,6 +2185,11 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
if (!(src_file->f_mode & FMODE_READ))
goto out_fput;

/* don't make the dst file partly checksummed */
if ((BTRFS_I(src)->flags & BTRFS_INODE_NODATASUM) !=
(BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM))
goto out_fput;

ret = -EISDIR;
if (S_ISDIR(src->i_mode) || S_ISDIR(inode->i_mode))
goto out_fput;
Expand Down

0 comments on commit cad5c0a

Please sign in to comment.