]> granicus.if.org Git - zfs/commitdiff
Revert "Use directory xattrs for symlinks"
authorNed Bass <bass6@llnl.gov>
Fri, 6 Dec 2013 23:56:22 +0000 (15:56 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Dec 2013 17:48:30 +0000 (09:48 -0800)
This reverts commit 6a7c0ccca44ad02c476a111d8f7911fc8b12fff7.

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

module/zfs/zpl_xattr.c

index 63dca3ae7521a2bd8af36c437a8b343949196f69..8ee3d2fb5dc7d92c4af2103c6de498883c6d3502 100644 (file)
@@ -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);