/osnet-11/usr/src/lib/libntfs/common/include/ntfs/ |
H A D | mft.h | 55 MFT_RECORD **mrec, ATTR_RECORD **attr); 106 MFT_RECORD *mrec); 114 extern int ntfs_mft_usn_dec(MFT_RECORD *mrec);
|
H A D | inode.h | 107 MFT_RECORD *mrec; /* The actual mft record of the inode. */ member in struct:_ntfs_inode
|
H A D | attrib.h | 59 * @mrec: buffer containing mft record to search 60 * @attr: attribute record in @mrec where to begin/continue search 64 * attribute search functions. Initialize @mrec to point to the mft record to 65 * search, and @attr to point to the first attribute within @mrec (not necessary 76 MFT_RECORD *mrec; member in struct:_ntfs_attr_search_ctx 88 MFT_RECORD *mrec);
|
/osnet-11/usr/src/lib/libntfs/common/libntfs/ |
H A D | mft.c | 203 * @mrec: address of pointer in which to return the mft record 212 * *@mrec is then set to point to the buffer. 215 * mft record, i.e. *@attr is a pointer into *@mrec. 225 * Note: Caller has to free *@mrec when finished. 231 MFT_RECORD **mrec, ATTR_RECORD **attr) 237 if (!vol || !mrec) { 241 m = *mrec; 258 *mrec = m; 266 if (m != *mrec) 276 * @mrec 230 ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD **mrec, ATTR_RECORD **attr) argument 285 ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD *mrec) argument 1566 ntfs_mft_usn_dec(MFT_RECORD *mrec) argument [all...] |
H A D | attrib.c | 363 if (!ni || !ni->vol || !ni->mrec) { 921 (char*)ctx->mrec + vol->mft_record_size) { 1102 (char*)ctx->mrec + vol->mft_record_size) { 1108 ctx->mrec)) { 1147 ctx->mrec)) { 1155 ctx->mrec); 1451 ctx->mrec); 1613 * mft record specified by @ctx->mrec, beginning at @ctx->attr, for an 1633 * mft record @ctx->mrec. 1646 * @ctx->mrec belong 2318 ntfs_attr_init_search_ctx(ntfs_attr_search_ctx *ctx, ntfs_inode *ni, MFT_RECORD *mrec) argument 2377 ntfs_attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec) argument [all...] |
H A D | dir.c | 120 if (!dir_ni || !dir_ni->mrec || !uname || uname_len <= 0) { 157 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie + 738 if (!(dir_ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) { 772 le16_to_cpu(dir_ni->mrec->sequence_number)), 849 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie + 1308 le16_to_cpu(dir_ni->mrec->sequence_number)); 1328 le16_to_cpu(ni->mrec->sequence_number)))) { 1334 ni->mrec->link_count = cpu_to_le16(1); 1336 ni->mrec->flags |= MFT_RECORD_IS_DIRECTORY; 1462 if (ni->nr_references > 1 && le16_to_cpu(ni->mrec [all...] |
H A D | inode.c | 99 free(ni->mrec); 125 * volume @vol, and attach it to the ntfs_inode structure (->mrec). The 168 if (ntfs_file_record_read(vol, mref, &ni->mrec, NULL)) 170 if (!(ni->mrec->flags & MFT_RECORD_IN_USE)) { 385 * volume @base_ni->vol, and attach it to the ntfs_inode structure (->mrec). 423 ni->mrec->sequence_number)) { 438 if (ntfs_file_record_read(base_ni->vol, le64_to_cpu(mref), &ni->mrec, 689 if ((ni->mrec->flags & MFT_RECORD_IN_USE) && ni->nr_extents != -1 && 702 if ((ni->mrec->flags & MFT_RECORD_IN_USE) && ni->nr_extents != -1 && 744 if ((ni->mrec [all...] |
H A D | volume.c | 197 vol->mft_ni->mrec = mb; 945 MFT_RECORD *mrec, *mrec2; local 958 mrec = (MFT_RECORD*)(m + i * vol->mft_record_size); 959 if (mrec->flags & MFT_RECORD_IN_USE) { 960 if (ntfs_is_baad_record(mrec->magic)) { 967 if (!ntfs_is_mft_record(mrec->magic)) { 990 if (memcmp(mrec, mrec2, ntfs_mft_record_get_data_size(mrec))) { 1112 if ((char*)vinf + le32_to_cpu(a->u.res.value_length) > (char*)ctx->mrec + 1113 le32_to_cpu(ctx->mrec [all...] |
H A D | attrlist.c | 125 mref = MK_LE_MREF(ni->mft_no, le16_to_cpu(ni->mrec->sequence_number));
|
H A D | index.c | 1167 if (ntfs_resident_attr_value_resize(ctx->mrec, ctx->attr,
|
/osnet-11/usr/src/cmd/ntfsprogs/ |
H A D | ntfslabel.c | 333 if (resize_resident_attribute_value(ctx->mrec, a, label_len)) { 340 u32 biu = le32_to_cpu(ctx->mrec->bytes_in_use); 341 if (biu + asize > le32_to_cpu(ctx->mrec->bytes_allocated)) { 347 memmove((u8*)a + asize, a, biu - ((u8*)a - (u8*)ctx->mrec)); 348 ctx->mrec->bytes_in_use = cpu_to_le32(biu + asize); 355 a->instance = ctx->mrec->next_attr_instance; 356 ctx->mrec->next_attr_instance = cpu_to_le16((le16_to_cpu( 357 ctx->mrec->next_attr_instance) + 1) & 0xffff);
|
H A D | ntfsfix.c | 351 MFT_RECORD *mrec, *mrec2; local 366 mrec = (MFT_RECORD*)(m + i * vol->mft_record_size); 367 if (mrec->flags & MFT_RECORD_IN_USE) { 368 if (ntfs_is_baad_record(mrec->magic)) { 376 if (!ntfs_is_mft_record(mrec->magic)) { 400 if (!(mrec->flags & MFT_RECORD_IN_USE) && 401 !ntfs_is_mft_record(mrec->magic)) 404 if (memcmp(mrec, mrec2, ntfs_mft_record_get_data_size(mrec))) { 413 use_mirr ? mrec2 : mrec); [all...] |
H A D | ntfsinfo.c | 1738 static void ntfs_dump_usa_lsn(const char *indent, MFT_RECORD *mrec) argument 1741 (unsigned)le16_to_cpu(mrec->usa_ofs), 1742 (unsigned)le16_to_cpu(mrec->usa_ofs)); 1744 (unsigned)le16_to_cpu(mrec->usa_count), 1745 (unsigned)le16_to_cpu(mrec->usa_count)); 1747 (unsigned)le16_to_cpup((u16 *)((u8 *)mrec + 1748 le16_to_cpu(mrec->usa_ofs))), 1749 (unsigned)le16_to_cpup((u16 *)((u8 *)mrec + 1750 le16_to_cpu(mrec->usa_ofs)))); 1752 (unsigned long long)sle64_to_cpu(mrec 2079 MFT_RECORD *mrec = inode->mrec; local [all...] |
H A D | ntfsresize.c | 187 MFT_RECORD *mrec; /* mft record */ member in struct:__anon68 842 static ntfs_attr_search_ctx *attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec) argument 846 if ((ret = ntfs_attr_get_search_ctx(ni, mrec)) == NULL) 1031 if (ni->mrec->base_mft_record) 1103 if (ni->mrec->base_mft_record) 1179 le32_to_cpu(ctx->mrec->bytes_in_use)); 1185 le32_to_cpu(ctx->mrec->bytes_in_use)); 1187 le32_to_cpu(ctx->mrec->bytes_allocated)); 1189 remains_size = le32_to_cpu(ctx->mrec->bytes_in_use); 1190 remains_size -= (next_attr - (char *)ctx->mrec); [all...] |
H A D | utils.c | 800 file = inode->mrec; 806 file = inode->mrec; 808 rec = find_first_attribute(AT_FILE_NAME, inode->mrec); 966 attr10 = find_first_attribute(AT_STANDARD_INFORMATION, ctx->inode->mrec); 967 attr20 = find_first_attribute(AT_ATTRIBUTE_LIST, ctx->inode->mrec); 968 attr80 = find_first_attribute(AT_DATA, ctx->inode->mrec); 1016 ctx->inode->mrec = ntfs_malloc(ctx->vol->mft_record_size); 1017 if (!ctx->inode->mrec) { 1030 if (ntfs_attr_pread(mft, ctx->vol->mft_record_size * ctx->mft_num, ctx->vol->mft_record_size, ctx->inode->mrec) < ctx->vol->mft_record_size) {
|
H A D | ntfscp.c | 418 if (!(dir_ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) { 449 if ((out->mrec->flags & MFT_RECORD_IS_DIRECTORY) && !opts.inode) {
|
H A D | ntfsclone.c | 1171 MFT_RECORD *m = ni->mrec; 1185 MFT_RECORD *m = ni->mrec; 1197 if (ntfs_mft_usn_dec(ni->mrec)) 1200 if (ntfs_mft_record_write(volume, ni->mft_no, ni->mrec)) 1247 err = ntfs_file_record_read(volume, mref, &ni->mrec, NULL); 1253 deleted_inode = !(ni->mrec->flags & MFT_RECORD_IN_USE); 1265 free(ni->mrec); 1282 if (ni->mrec->base_mft_record)
|
H A D | ntfscat.c | 321 attr90 = find_first_attribute(AT_INDEX_ROOT, inode->mrec);
|
H A D | ntfsls.c | 676 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
|
H A D | mkntfs.c | 840 * mft record specified by @ctx->mrec, beginning at @ctx->attr, for an 860 * mft record @ctx->mrec. 873 * @ctx->mrec belongs. This is so we can get at the ntfs volume and hence at 917 if (p2n(a) < p2n(ctx->mrec) || (char*)a > (char*)ctx->mrec + 918 le32_to_cpu(ctx->mrec->bytes_allocated)) 1060 * @ctx->mrec, and @ctx->al_entry is the attribute list entry for this 1089 if (!ctx || !ctx->mrec || !ctx->attr) {
|
H A D | ntfscmp.c | 365 if ((*ni)->mrec->base_mft_record) {
|