Lines Matching defs:rec
352 static int calc_attr_length(ATTR_RECORD *rec, int runlength)
356 if (!rec)
358 if (!rec->non_resident)
361 size = le16_to_cpu(rec->mapping_pairs_offset) + runlength + 7;
478 ATTR_RECORD *rec;
486 rec = find_first_attribute(AT_ATTRIBUTE_LIST, ino->mrec);
487 if (rec) {
492 rec = find_first_attribute(AT_FILE_NAME, ino->mrec);
493 if (!rec) {
498 name = (FILE_NAME_ATTR*) ((u8*)rec + le16_to_cpu(rec->value_offset));
667 static s64 move_datarun(ntfs_volume *vol, ntfs_inode *ino, ATTR_RECORD *rec,
687 from = ntfs_mapping_pairs_decompress(vol, rec, NULL);
714 need_from = calc_attr_length(rec, need_from);
715 need_to = calc_attr_length(rec, need_to);
720 if (resize_nonres_attr(ino->mrec, rec, need_to) < 0) {
733 memset(((u8*)rec) + le16_to_cpu(rec->mapping_pairs_offset), 0, need_to - le16_to_cpu(rec->mapping_pairs_offset));
736 ntfs_mapping_pairs_build(vol, ((u8*)rec) + le16_to_cpu(rec->mapping_pairs_offset),
759 static s64 move_attribute(ntfs_volume *vol, ntfs_inode *ino, ATTR_RECORD *rec,
771 runs = ntfs_mapping_pairs_decompress(vol, rec, NULL);
785 res = move_datarun(vol, ino, rec, runs+i, loc, flags);
809 ATTR_RECORD *rec;
834 while ((rec = find_attribute(AT_UNUSED, ctx))) {
835 utils_attr_get_name(vol, rec, buffer, MAX_PATH);
836 ntfs_log_info("\tAttribute 0x%02x %s is ", le32_to_cpu(rec->type), buffer);
838 if (rec->non_resident) {
841 res = move_attribute(vol, ino, rec, loc, flags);