Use directory xattrs for symlinks
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 22 Aug 2013 20:06:33 +0000 (13:06 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 22 Aug 2013 20:30:44 +0000 (13:30 -0700)
commit6a7c0ccca44ad02c476a111d8f7911fc8b12fff7
treef63832fc8a8c4378f8be7919f206df6ddafc65e9
parentc273d60d80958dea8edc3c6f5702c9c81ffbd8ea
Use directory xattrs for symlinks

There is currently a subtle bug in the SA implementation which
can crop up which prevents us from safely using multiple variable
length SAs in one object.

Fortunately, the only existing use case for this are symlinks with
SA based xattrs.  Therefore, until the root cause in the SA code
can be identified and fixed we prevent adding SA xattrs to symlinks.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1468
module/zfs/zpl_xattr.c