Lines Matching defs:rec

763  * @rec:	the mft record of the possible parent
765 * Check that @rec is the parent of the file represented by @name.
766 * If @rec is a directory, but it is created after @name, then we
767 * can't determine whether @rec is really @name's parent.
769 * Return: @rec's filename, either same name space as @name or lowest space.
772 static FILE_NAME_ATTR* verify_parent(struct filename* name, MFT_RECORD* rec)
779 if (!name || !rec)
782 if (!(rec->flags & MFT_RECORD_IS_DIRECTORY)) {
786 ctx = ntfs_attr_get_search_ctx(NULL, rec);
832 MFT_RECORD* rec;
839 rec = calloc(1, vol->mft_record_size);
840 if (!rec) {
853 vol->mft_record_size, rec) < 1) {
856 } else if ((filename_attr = verify_parent(name, rec))) {
872 if (rec) {
873 free(rec);
900 ATTR_RECORD *rec;
914 while ((rec = find_attribute(AT_FILE_NAME, ctx))) {
916 attr = (FILE_NAME_ATTR *)((char *)rec +
917 le16_to_cpu(rec->u.res.value_offset));
987 ATTR_RECORD *rec;
999 while ((rec = find_attribute(AT_DATA, ctx))) {
1008 data->resident = !rec->non_resident;
1009 data->compressed = (rec->flags & ATTR_IS_COMPRESSED) ? 1 : 0;
1010 data->encrypted = (rec->flags & ATTR_IS_ENCRYPTED) ? 1 : 0;
1012 if (rec->name_length) {
1013 data->uname = (ntfschar *)((char *)rec +
1014 le16_to_cpu(rec->name_offset));
1015 data->uname_len = rec->name_length;
1025 data->size_data = le32_to_cpu(rec->u.res.value_length);
1026 data->data = (char*)rec +
1027 le16_to_cpu(rec->u.res.value_offset);
1029 data->size_alloc = sle64_to_cpu(rec->u.nonres.allocated_size);
1030 data->size_data = sle64_to_cpu(rec->u.nonres.data_size);
1031 data->size_init = sle64_to_cpu(rec->u.nonres.initialized_size);
1032 data->size_vcn = sle64_to_cpu(rec->u.nonres.highest_vcn) + 1;
1035 data->runlist = ntfs_mapping_pairs_decompress(vol, rec, NULL);