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))
257 int __hfsplus_setxattr(struct inode *inode, const char *name,
275 return hfsplus_removexattr(inode, name);
289 if (!strcmp_xattr_finder_info(name)) {
336 if (hfsplus_attr_exists(inode, name)) {
342 err = hfsplus_delete_attr(inode, name);
345 err = hfsplus_create_attr(inode, name, value, size);
354 err = hfsplus_create_attr(inode, name, value, size);
365 if (!strcmp_xattr_acl(name))
376 if (!strcmp_xattr_acl(name))
421 int hfsplus_setxattr(struct inode *inode, const char *name,
433 strcpy(xattr_name + prefixlen, name);
489 ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
504 if (!strcmp_xattr_finder_info(name))
522 res = hfsplus_find_attr(inode->i_sb, inode->i_ino, name, &fd);
575 ssize_t hfsplus_getxattr(struct inode *inode, const char *name,
588 strcpy(xattr_name + prefixlen, name);
767 static int hfsplus_removexattr(struct inode *inode, const char *name)
779 if (!strcmp_xattr_finder_info(name))
794 err = hfsplus_delete_attr(inode, name);
798 is_xattr_acl_deleted = !strcmp_xattr_acl(name);
841 const char *name, void *buffer, size_t size)
847 if (is_known_namespace(name))
853 * creates), so we pass the name through unmodified (after
856 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);