Lines Matching refs:attr
98 * @attr: attribute record to add to attribute list
107 int ntfs_attrlist_entry_add(ntfs_inode *ni, ATTR_RECORD *attr)
116 ntfs_log_trace("Entering for inode 0x%llx, attr 0x%x.\n",
118 (unsigned) le32_to_cpu(attr->type));
120 if (!ni || !attr) {
139 attr->name_length + 7) & ~7;
150 if (!ntfs_attr_lookup(attr->type, (attr->name_length) ? (ntfschar*)
151 ((u8*)attr + le16_to_cpu(attr->name_offset)) :
152 AT_UNNAMED, attr->name_length, CASE_SENSITIVE,
153 (attr->non_resident) ? sle64_to_cpu(attr->lowest_vcn) :
154 0, (attr->non_resident) ? NULL : ((u8*)attr +
155 le16_to_cpu(attr->value_offset)), (attr->non_resident) ?
156 0 : le32_to_cpu(attr->value_length), ctx)) {
158 if (ctx->al_entry->lowest_vcn == attr->lowest_vcn) {
189 ale->type = attr->type;
191 ale->name_length = attr->name_length;
193 if (attr->non_resident)
194 ale->lowest_vcn = attr->lowest_vcn;
198 ale->instance = attr->instance;
199 memcpy(ale->name, (u8 *)attr + le16_to_cpu(attr->name_offset),
200 attr->name_length * sizeof(ntfschar));
265 ntfs_log_trace("Entering for inode 0x%llx, attr 0x%x, lowest_vcn %lld.\n",