Lines Matching defs:attribute
68 char *attr_name; /* Write to attribute with this name. */
75 ATTR_TYPES attribute; /* Write to this attribute. */
126 " -a, --attribute NUM Write to this attribute\n"
131 " -N, --attr-name NAME Write to attribute with this name\n"
154 { "attribute", required_argument, NULL, 'a' },
181 opts.attribute = AT_DATA;
202 if (opts.attribute != AT_DATA) {
204 "attribute.\n");
211 ntfs_log_error("Couldn't parse attribute.\n");
214 opts.attribute = (ATTR_TYPES)cpu_to_le32(attr);
231 "attribute name.\n");
296 && (opts.attr_name || (opts.attribute != AT_DATA))) {
298 " with unname data attribute.\n");
605 * Update the sizes of an attribute
623 /* Feed the sizes into the attribute */
631 /* Copy the unnamed data attribute sizes to inode */
632 if ((opts.attribute == AT_DATA) && !na->name_len) {
645 * Assign a runlist to an attribute and store
679 if (ntfs_attr_lookup(opts.attribute, na->name,
1054 ntfs_log_perror("ERROR: Failed to parse attribute name '%s'",
1059 na = ntfs_attr_open(out, opts.attribute, attr_name, attr_name_len);
1062 ntfs_log_perror("ERROR: Couldn't open attribute");
1065 /* Requested attribute isn't present, add it. */
1066 if (ntfs_attr_add(out, opts.attribute, attr_name,
1068 ntfs_log_perror("ERROR: Couldn't add attribute");
1071 na = ntfs_attr_open(out, opts.attribute, attr_name,
1075 "attribute");
1083 " of a compressed attribute\n");
1089 "ERROR: Couldn't truncate existing attribute");
1097 * attribute has to be made non-resident.
1102 "ERROR: Couldn't resize attribute");
1108 "ERROR: Couldn't preallocate attribute");
1114 "ERROR: Couldn't resize attribute");