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:
Ned Bass 2013-12-06 15:56:22 -08:00 committed by Brian Behlendorf
parent 472e7c6085
commit b6e335bfc4
1 changed files with 0 additions and 4 deletions

View File

@ -446,10 +446,6 @@ zpl_xattr_set_sa(struct inode *ip, const char *name, const void *value,
if (error == -ENOENT) if (error == -ENOENT)
error = zpl_xattr_set_dir(ip, name, NULL, 0, flags, cr); error = zpl_xattr_set_dir(ip, name, NULL, 0, flags, cr);
} else { } 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 */ /* Limited to 32k to keep nvpair memory allocations small */
if (size > DXATTR_MAX_ENTRY_SIZE) if (size > DXATTR_MAX_ENTRY_SIZE)
return (-EFBIG); return (-EFBIG);