Lines Matching refs:attr
472 return ctx->attr;
508 ntfs_log_debug("find_first_attribute: found attr of type 0x%02x.\n", le32_to_cpu(type));
510 ntfs_log_debug("find_first_attribute: didn't find attr of type 0x%02x.\n", le32_to_cpu(type));
534 FILE_NAME_ATTR *attr;
563 attr = (FILE_NAME_ATTR *) ((char *) rec + le16_to_cpu(rec->value_offset));
565 if (attr->file_name_type > name_space) { //XXX find the ...
569 name_space = attr->file_name_type;
570 parent = le64_to_cpu(attr->parent_directory);
577 if (ntfs_ucstombs(attr->file_name, attr->file_name_length,
644 int utils_attr_get_name(ntfs_volume *vol, ATTR_RECORD *attr, char *buffer, int bufsize)
650 // flags: attr, name, or both
651 if (!attr || !buffer) {
656 attrdef = ntfs_attr_find_in_attrdef(vol, attr->type);
668 ntfs_log_error("Unknown attribute type 0x%02x\n", le32_to_cpu(attr->type));
677 if (!attr->name_length) {
685 namelen = attr->name_length;
686 if (ntfs_ucstombs((ntfschar *)((char *)attr
687 + le16_to_cpu(attr->name_offset)),
732 ntfs_attr *attr;
743 attr = ntfs_attr_open(vol->lcnbmp_ni, AT_DATA, AT_UNNAMED, 0);
744 if (!attr) {
753 if (ntfs_attr_pread(attr, (bmplcn >> 3), sizeof(buffer),
756 ntfs_attr_close(attr);
761 ntfs_attr_close(attr);
860 FILE_NAME_ATTR *attr;
889 attr = (FILE_NAME_ATTR *)((char *)rec + le16_to_cpu(rec->value_offset));
891 num = MREF_LE(attr->parent_directory);