mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Revert "Use directory xattrs for symlinks"
This reverts commit 6a7c0ccca4
.
A proper fix for Issue #1648 was landed under Issue #1890, so this is no
longer needed.
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1648
This commit is contained in:
parent
472e7c6085
commit
b6e335bfc4
@ -446,10 +446,6 @@ zpl_xattr_set_sa(struct inode *ip, const char *name, const void *value,
|
||||
if (error == -ENOENT)
|
||||
error = zpl_xattr_set_dir(ip, name, NULL, 0, flags, cr);
|
||||
} else {
|
||||
/* Do not allow SA xattrs in symlinks (issue #1648) */
|
||||
if (S_ISLNK(ip->i_mode))
|
||||
return (-EMLINK);
|
||||
|
||||
/* Limited to 32k to keep nvpair memory allocations small */
|
||||
if (size > DXATTR_MAX_ENTRY_SIZE)
|
||||
return (-EFBIG);
|
||||
|
Loading…
Reference in New Issue
Block a user