• Home
  • Raw
  • Download

Lines Matching refs:value

20 	int (*validate)(const char *value, size_t len);
21 int (*apply)(struct inode *inode, const char *value, size_t len);
58 int btrfs_validate_prop(const char *name, const char *value, size_t value_len) in btrfs_validate_prop() argument
72 return handler->validate(value, value_len); in btrfs_validate_prop()
76 const char *name, const char *value, size_t value_len, in btrfs_set_prop() argument
98 ret = btrfs_setxattr(trans, inode, handler->xattr_name, value, in btrfs_set_prop()
102 ret = handler->apply(inode, value, value_len); in btrfs_set_prop()
227 const char *value, in inode_prop_iterator() argument
234 ret = handler->apply(inode, value, len); in inode_prop_iterator()
255 static int prop_compression_validate(const char *value, size_t len) in prop_compression_validate() argument
257 if (!value) in prop_compression_validate()
260 if (btrfs_compress_is_valid_type(value, len)) in prop_compression_validate()
266 static int prop_compression_apply(struct inode *inode, const char *value, in prop_compression_apply() argument
280 if (!strncmp("lzo", value, 3)) { in prop_compression_apply()
283 } else if (!strncmp("zlib", value, 4)) { in prop_compression_apply()
285 } else if (!strncmp("zstd", value, 4)) { in prop_compression_apply()
339 const char *value; in inherit_props() local
345 value = h->extract(parent); in inherit_props()
346 if (!value) in inherit_props()
353 ret = h->validate(value, strlen(value)); in inherit_props()
372 ret = btrfs_setxattr(trans, inode, h->xattr_name, value, in inherit_props()
373 strlen(value), 0); in inherit_props()
375 ret = h->apply(inode, value, strlen(value)); in inherit_props()