mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-10 18:16:10 +00:00
The upcoming acl support wants to be able to get and set xattrs from callers who already have cluster locks and transactions. We refactor the existing xattr get and set calls into locked and unlocked variants. It's mostly boring code motion with the unfortunate situation that the caller needs to acquire the totl cluster lock before holding a transaction before calling into the xattr code. We push the parsing of the tags to the caller of the locked get and set so that they can know to acquire the right lock. (The acl callers will never be setting scoutfs. prefixed xattrs so they will never have tags.) Signed-off-by: Zach Brown <zab@versity.com>