mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 19:50:25 +03:00
6939941 problem with moving files in zfs
References: illumos/illumos-gate@d39ee142a9 Ported-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1775 Porting notes: 1. This commit was so old that only two lines applied to the modern code base.
This commit is contained in:
parent
2696dfafd9
commit
c0ebc844c7
@ -3174,7 +3174,7 @@ zfs_rename(struct inode *sdip, char *snm, struct inode *tdip, char *tnm,
|
|||||||
ZFS_VERIFY_ZP(sdzp);
|
ZFS_VERIFY_ZP(sdzp);
|
||||||
zilog = zsb->z_log;
|
zilog = zsb->z_log;
|
||||||
|
|
||||||
if (tdip->i_sb != sdip->i_sb) {
|
if (tdip->i_sb != sdip->i_sb || zfsctl_is_node(tdip)) {
|
||||||
ZFS_EXIT(zsb);
|
ZFS_EXIT(zsb);
|
||||||
return (SET_ERROR(EXDEV));
|
return (SET_ERROR(EXDEV));
|
||||||
}
|
}
|
||||||
@ -3716,7 +3716,7 @@ zfs_link(struct inode *tdip, struct inode *sip, char *name, cred_t *cr)
|
|||||||
return (SET_ERROR(EPERM));
|
return (SET_ERROR(EPERM));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sip->i_sb != tdip->i_sb) {
|
if (sip->i_sb != tdip->i_sb || zfsctl_is_node(sip)) {
|
||||||
ZFS_EXIT(zsb);
|
ZFS_EXIT(zsb);
|
||||||
return (SET_ERROR(EXDEV));
|
return (SET_ERROR(EXDEV));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user