Lines Matching defs:attr
100 * @attr: Resulting attribute id (on success)
109 static int parse_attribute(const char *value, ATTR_TYPES *attr)
137 *attr = (ATTR_TYPES)cpu_to_le32((i + 1) * 16);
144 *attr = (ATTR_TYPES)cpu_to_le32(num);
181 ATTR_TYPES attr = AT_UNUSED;
186 opts.attr = const_cpu_to_le32(-1);
204 if (opts.attr != const_cpu_to_le32(-1)) {
207 } else if (parse_attribute(optarg, &attr) > 0) {
208 opts.attr = attr;
339 ntfs_attr *attr;
348 attr = ntfs_attr_open(inode, type, name, namelen);
349 if (!attr) {
356 if ((inode->mft_no < 2) && (attr->type == AT_DATA))
358 else if (attr->type == AT_INDEX_ALLOCATION)
367 bytes_read = ntfs_attr_mst_pread(attr, offset, 1, block_size, buffer);
371 bytes_read = ntfs_attr_pread(attr, offset, bufsize, buffer);
389 ntfs_attr_close(attr);
406 ATTR_TYPES attr;
448 attr = AT_DATA;
449 if (opts.attr != const_cpu_to_le32(-1))
450 attr = opts.attr;
452 result = cat(vol, inode, attr, opts.attr_name, opts.attr_name_len);