Lines Matching refs:name

14 static int hfsplus_removexattr(struct inode *inode, const char *name);
24 static int strcmp_xattr_finder_info(const char *name)
26 if (name) {
27 return strncmp(name, HFSPLUS_XATTR_FINDER_INFO_NAME,
33 static int strcmp_xattr_acl(const char *name)
35 if (name) {
36 return strncmp(name, HFSPLUS_XATTR_ACL_NAME,
42 static bool is_known_namespace(const char *name)
44 if (strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) &&
45 strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) &&
46 strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) &&
47 strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN))
258 int __hfsplus_setxattr(struct inode *inode, const char *name,
276 return hfsplus_removexattr(inode, name);
290 if (!strcmp_xattr_finder_info(name)) {
337 if (hfsplus_attr_exists(inode, name)) {
343 err = hfsplus_delete_attr(inode, name);
346 err = hfsplus_create_attr(inode, name, value, size);
355 err = hfsplus_create_attr(inode, name, value, size);
366 if (!strcmp_xattr_acl(name))
377 if (!strcmp_xattr_acl(name))
422 int hfsplus_setxattr(struct inode *inode, const char *name,
434 strcpy(xattr_name + prefixlen, name);
490 ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
505 if (!strcmp_xattr_finder_info(name))
523 res = hfsplus_find_attr(inode->i_sb, inode->i_ino, name, &fd);
576 ssize_t hfsplus_getxattr(struct inode *inode, const char *name,
589 strcpy(xattr_name + prefixlen, name);
768 static int hfsplus_removexattr(struct inode *inode, const char *name)
780 if (!strcmp_xattr_finder_info(name))
795 err = hfsplus_delete_attr(inode, name);
799 is_xattr_acl_deleted = !strcmp_xattr_acl(name);
842 const char *name, void *buffer, size_t size)
848 if (is_known_namespace(name))
854 * creates), so we pass the name through unmodified (after
857 return __hfsplus_getxattr(inode, name, buffer, size);
862 const char *name, const void *buffer,
869 if (is_known_namespace(name))
875 * creates), so we pass the name through unmodified (after
878 return __hfsplus_setxattr(inode, name, buffer, size, flags);