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

/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dmft.h65 MFT_RECORD **mrec, ATTR_RECORD **attr);
121 MFT_RECORD *mrec);
129 extern int ntfs_mft_usn_dec(MFT_RECORD *mrec);
H A Dmft.c252 * @mrec: address of pointer in which to return the mft record
261 * *@mrec is then set to point to the buffer.
264 * mft record, i.e. *@attr is a pointer into *@mrec.
274 * Note: Caller has to free *@mrec when finished.
280 MFT_RECORD **mrec, ATTR_RECORD **attr)
284 if (!vol || !mrec) {
286 ntfs_log_perror("%s: mrec=%p", __FUNCTION__, mrec);
290 m = *mrec;
309 *mrec
279 ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD **mrec, ATTR_RECORD **attr) argument
332 ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD *mrec) argument
1892 ntfs_mft_usn_dec(MFT_RECORD *mrec) argument
[all...]
H A Dattrib.c410 if (!ni || !ni->vol || !ni->mrec) {
983 (char*)ctx->mrec + vol->mft_record_size) {
1892 (char*)ctx->mrec + vol->mft_record_size) {
1899 ctx->mrec)) {
1974 ctx->mrec)) {
1982 ctx->mrec);
1987 if (na->ni->mrec->flags & MFT_RECORD_IS_DIRECTORY
2276 ctx->mrec);
2451 if (na->ni->mrec->flags & MFT_RECORD_IS_DIRECTORY
2648 * mft record specified by @ctx->mrec, beginnin
3384 ntfs_attr_init_search_ctx(ntfs_attr_search_ctx *ctx, ntfs_inode *ni, MFT_RECORD *mrec) argument
3442 ntfs_attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec) argument
[all...]
H A Dinode.c131 free(ni->mrec);
147 * volume @vol, and attach it to the ntfs_inode structure (->mrec). The
176 if (ntfs_file_record_read(vol, mref, &ni->mrec, NULL))
178 if (!(ni->mrec->flags & MFT_RECORD_IN_USE)) {
189 if (!ni->mrec->base_mft_record)
515 && !(ni->mrec->flags & MFT_RECORD_IS_4)))) {
562 * volume @base_ni->vol, and attach it to the ntfs_inode structure (->mrec).
636 ni->mrec->sequence_number)) {
650 if (ntfs_file_record_read(base_ni->vol, le64_to_cpu(mref), &ni->mrec, NULL))
875 if (ni->mrec
[all...]
H A Dvolume.c253 vol->mft_ni->mrec = mb;
919 MFT_RECORD *mrec, *mrec2; local
932 mrec = (MFT_RECORD*)(m + i * vol->mft_record_size);
933 if (mrec->flags & MFT_RECORD_IN_USE) {
934 if (ntfs_is_baad_recordp(mrec)) {
940 if (!ntfs_is_mft_recordp(mrec)) {
960 if (memcmp(mrec, mrec2, ntfs_mft_record_get_data_size(mrec))) {
1085 if ((char*)vinf + le32_to_cpu(a->value_length) > (char*)ctx->mrec +
1086 le32_to_cpu(ctx->mrec
[all...]
H A Ddir.c265 if (!dir_ni || !dir_ni->mrec || !uname || uname_len <= 0) {
302 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie +
1050 if (!(dir_ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) {
1083 le16_to_cpu(dir_ni->mrec->sequence_number)),
1156 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie +
1593 le16_to_cpu(dir_ni->mrec->sequence_number));
1608 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
1623 le16_to_cpu(ni->mrec->sequence_number)))) {
1629 ni->mrec->link_count = cpu_to_le16(1);
1631 ni->mrec
[all...]
H A Dreparse.c254 && (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
257 && (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY ? isdir : !isdir))
339 if ((ni->mrec->flags ^ curni->mrec->flags)
431 if (!(ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
712 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
842 seqn = ni->mrec->sequence_number;
889 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.h69 * @mrec: buffer containing mft record to search
70 * @attr: attribute record in @mrec where to begin/continue search
74 * attribute search functions. Initialize @mrec to point to the mft record to
75 * search, and @attr to point to the first attribute within @mrec (not necessary
86 MFT_RECORD *mrec; member in struct:_ntfs_attr_search_ctx
98 MFT_RECORD *mrec);
H A Dsecurity.c1552 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
1635 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
1940 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
2040 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
2094 if (ni->mrec->flags
2172 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
2311 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
2567 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) != const_cpu_to_le16(0);
2716 isdir = (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) != const_cpu_to_le16(0);
2918 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.c293 if (!(ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) {
H A Dobject_id.c149 seqn = ni->mrec->sequence_number;
H A Dindex.c1171 if (ntfs_resident_attr_value_resize(ctx->mrec, ctx->attr,
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/
H A Dvolume_util.c182 if (resize_resident_attribute_value(ctx->mrec, a, label_len)) {
189 u32 biu = le32_to_cpu(ctx->mrec->bytes_in_use);
190 if (biu + asize > le32_to_cpu(ctx->mrec->bytes_allocated)) {
196 memmove((u8*)a + asize, a, biu - ((u8*)a - (u8*)ctx->mrec));
197 ctx->mrec->bytes_in_use = cpu_to_le32(biu + asize);
204 a->instance = ctx->mrec->next_attr_instance;
205 ctx->mrec->next_attr_instance = cpu_to_le16((le16_to_cpu(
206 ctx->mrec->next_attr_instance) + 1) & 0xffff);
H A Dfs_func.c77 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
690 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
791 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
812 stbuf->st_nlink = le16_to_cpu(ni->mrec->link_count);
893 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
1084 if (!(dir_ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) {
1147 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)
1203 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
1289 if (ni->mrec->flags & MFT_RECORD_IS_DIRECTORY) {
1619 if (!(dir_ni->mrec
[all...]
H A Dntfsdir.c130 if (!(ni->mrec->flags & MFT_RECORD_IS_DIRECTORY)) {
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dutils.c869 file = inode->mrec;
876 rec = find_first_attribute(AT_FILE_NAME, inode->mrec);
1034 attr10 = find_first_attribute(AT_STANDARD_INFORMATION, ctx->inode->mrec);
1035 attr20 = find_first_attribute(AT_ATTRIBUTE_LIST, ctx->inode->mrec);
1036 attr80 = find_first_attribute(AT_DATA, ctx->inode->mrec);
1084 ctx->inode->mrec = ntfs_malloc(ctx->vol->mft_record_size);
1085 if (!ctx->inode->mrec) {
1098 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 Dmkntfs.c795 * mft record specified by @ctx->mrec, beginning at @ctx->attr, for an
815 * mft record @ctx->mrec.
828 * @ctx->mrec belongs. This is so we can get at the ntfs volume and hence at
872 if (p2n(a) < p2n(ctx->mrec) || (char*)a > (char*)ctx->mrec +
873 le32_to_cpu(ctx->mrec->bytes_allocated))
1015 * @ctx->mrec, and @ctx->al_entry is the attribute list entry for this
1044 if (!ctx || !ctx->mrec || !ctx->attr) {

Completed in 265 milliseconds