Searched refs:mrec (Results 1 - 17 of 17) sorted by relevance

/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dmft.h65 MFT_RECORD **mrec, ATTR_RECORD **attr);
121 MFT_RECORD *mrec);
131 extern int ntfs_mft_usn_dec(MFT_RECORD *mrec);
H A Dmft.c321 * @mrec: address of pointer in which to return the mft record
330 * *@mrec is then set to point to the buffer.
333 * mft record, i.e. *@attr is a pointer into *@mrec.
343 * Note: Caller has to free *@mrec when finished.
349 MFT_RECORD **mrec, ATTR_RECORD **attr)
353 if (!vol || !mrec) {
355 ntfs_log_perror("%s: mrec=%p", __FUNCTION__, mrec);
359 m = *mrec;
378 *mrec
348 ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD **mrec, ATTR_RECORD **attr) argument
401 ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD *mrec) argument
2039 ntfs_mft_usn_dec(MFT_RECORD *mrec) argument
[all...]
H A Dattrib.c422 if (!ni || !ni->vol || !ni->mrec) {
1060 (char*)ctx->mrec + vol->mft_record_size) {
1977 (char*)ctx->mrec + vol->mft_record_size) {
1984 ctx->mrec)) {
2069 ctx->mrec)) {
2077 ctx->mrec);
2082 if (na->ni->mrec->flags & MFT_RECORD_IS_DIRECTORY
2364 ctx->mrec);
2571 if (na->ni->mrec->flags & MFT_RECORD_IS_DIRECTORY
2768 * mft record specified by @ctx->mrec, beginnin
3746 ntfs_attr_init_search_ctx(ntfs_attr_search_ctx *ctx, ntfs_inode *ni, MFT_RECORD *mrec) argument
3804 ntfs_attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec) argument
[all...]
H A Dinode.c129 free(ni->mrec);
145 * volume @vol, and attach it to the ntfs_inode structure (->mrec). The
174 if (ntfs_file_record_read(vol, mref, &ni->mrec, NULL))
176 if (!(ni->mrec->flags & MFT_RECORD_IN_USE)) {
187 if (!ni->mrec->base_mft_record)
519 && !(ni->mrec->flags & MFT_RECORD_IS_4)))) {
572 * volume @base_ni->vol, and attach it to the ntfs_inode structure (->mrec).
646 ni->mrec->sequence_number)) {
660 if (ntfs_file_record_read(base_ni->vol, le64_to_cpu(mref), &ni->mrec, NULL))
885 if (ni->mrec
[all...]
H A Ddir.c269 if (!dir_ni || !dir_ni->mrec || !uname || uname_len <= 0) {
307 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie +
879 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
1126 if (!(dir_ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) {
1159 le16_to_cpu(dir_ni->mrec->sequence_number)),
1232 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie +
1699 le16_to_cpu(dir_ni->mrec->sequence_number));
1715 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
1730 le16_to_cpu(ni->mrec->sequence_number)))) {
1737 ni->mrec
[all...]
H A Dvolume.c271 vol->mft_ni->mrec = mb;
999 MFT_RECORD *mrec, *mrec2; local
1012 mrec = (MFT_RECORD*)(m + i * vol->mft_record_size);
1013 if (mrec->flags & MFT_RECORD_IN_USE) {
1014 if (ntfs_is_baad_record(mrec->magic)) {
1020 if (!ntfs_is_mft_record(mrec->magic)) {
1040 record_size = ntfs_mft_record_get_data_size(mrec);
1043 || memcmp(mrec, mrec2, record_size)) {
1168 if ((char*)vinf + le32_to_cpu(a->value_length) > (char*)ctx->mrec +
1169 le32_to_cpu(ctx->mrec
[all...]
H A Dreparse.c260 && (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
264 && ((ni->mrec->flags & MFT_RECORD_IS_DIRECTORY ? isdir : !isdir)
366 && (ni->mrec->flags ^ curni->mrec->flags)
498 if (!(ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
803 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
948 seqn = ni->mrec->sequence_number;
994 seqn = na->ni->mrec->sequence_number;
H A Dinode.h108 MFT_RECORD *mrec; /* The actual mft record of the inode. */ member in struct:_ntfs_inode
H A Dattrib.h70 * @mrec: buffer containing mft record to search
71 * @attr: attribute record in @mrec where to begin/continue search
75 * attribute search functions. Initialize @mrec to point to the mft record to
76 * search, and @attr to point to the first attribute within @mrec (not necessary
87 MFT_RECORD *mrec; member in struct:_ntfs_attr_search_ctx
99 MFT_RECORD *mrec);
H A Dsecurity.c1699 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
1782 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
2107 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
2207 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
2261 if (ni->mrec->flags
2339 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
2484 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
2757 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) != const_cpu_to_le16(0);
2906 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) != const_cpu_to_le16(0);
3115 isdir = (ni->mrec
[all...]
H A Dattrlist.c126 mref = MK_LE_MREF(ni->mft_no, le16_to_cpu(ni->mrec->sequence_number));
H A Defs.c288 if (!(ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) {
H A Dobject_id.c149 seqn = ni->mrec->sequence_number;
H A Dindex.c1274 if (ntfs_resident_attr_value_resize(ctx->mrec, ctx->attr,
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dutils.c885 file = inode->mrec;
892 rec = find_first_attribute(AT_FILE_NAME, inode->mrec);
1045 MFT_RECORD *mrec; local
1049 mrec = (MFT_RECORD*)NULL;
1051 (MFT_REF) ctx->mft_num, &mrec, NULL);
1052 if (r || !mrec || !mrec->base_mft_record)
1058 mrec->base_mft_record);
1064 free (mrec);
1068 attr10 = find_first_attribute(AT_STANDARD_INFORMATION, ctx->inode->mrec);
[all...]
H A Dmkntfs.c855 * mft record specified by @ctx->mrec, beginning at @ctx->attr, for an
875 * mft record @ctx->mrec.
888 * @ctx->mrec belongs. This is so we can get at the ntfs volume and hence at
932 if (p2n(a) < p2n(ctx->mrec) || (char*)a > (char*)ctx->mrec +
933 le32_to_cpu(ctx->mrec->bytes_allocated))
1075 * @ctx->mrec, and @ctx->al_entry is the attribute list entry for this
1104 if (!ctx || !ctx->mrec || !ctx->attr) {
/haiku/src/add-ons/kernel/file_systems/ntfs/
H A Dlowntfs.c128 stbuf->st_nlink = le16_to_cpu(ni->mrec->link_count);
132 if ((ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
168 le16_to_cpu(ni->mrec->link_count);
836 if (e && (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) {
973 isdir = ni->mrec->flags & MFT_RECORD_IS_DIRECTORY;

Completed in 262 milliseconds