/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | runlist.c | 174 if ((dst->vcn + dst->length) != src->vcn) 259 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; 263 dst[marker].vcn = dst[marker-1].vcn + dst[marker-1].length; 306 disc = (src[0].vcn > 0); 316 disc = (src[0].vcn > dst[loc - 1].vcn + merged_length); 346 dst[marker].vcn 786 VCN vcn; /* Current vcn. */ local 1054 ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn) argument 1900 test_rl_pure_src(BOOL contig, BOOL multi, int vcn, int len) argument 1941 test_rl_pure_test(int test, BOOL contig, BOOL multi, int vcn, int len, runlist_element *file, int size) argument [all...] |
H A D | debug.c | 67 (long long)rl[i].vcn, lcn_str[idx], 72 (long long)rl[i].vcn, (long long)rl[i].lcn,
|
H A D | compress.c | 659 cb_clusters -= rl->length - (cb_start_vcn - rl->vcn); 665 cb_start_vcn = rl->vcn; 666 rl = ntfs_attr_find_vcn(na, rl->vcn); 673 if (rl->vcn < cb_start_vcn) 713 VCN start_vcn, vcn, end_vcn; local 789 * The first vcn in the first compression block (cb) which we need to 796 * The first vcn in the cb after the last cb which we need to 801 /* Number of compression blocks (cbs) in the wanted vcn range. */ 808 vcn = start_vcn; 812 rl = ntfs_attr_find_vcn(na, vcn); [all...] |
H A D | runlist.h | 36 * struct _runlist_element - in memory vcn to lcn mapping array element. 37 * @vcn: starting vcn of the current array element 41 * The last vcn (in fact the last vcn + 1) is reached when length == 0. 43 * When lcn == -1 this means that the count vcns starting at vcn are not 46 struct _runlist_element {/* In memory vcn to lcn mapping structure element. */ 47 VCN vcn; /* vcn = Starting virtual cluster number. */ member in struct:_runlist_element 55 extern LCN ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn); [all...] |
H A D | index.c | 73 static s64 ntfs_ib_vcn_to_pos(ntfs_index_context *icx, VCN vcn) argument 75 return vcn << icx->vcn_size_bits; 85 s64 ret, vcn = sle64_to_cpu(ib->index_block_vcn); local 87 ntfs_log_trace("vcn: %lld\n", (long long)vcn); 89 ret = ntfs_attr_mst_pwrite(icx->ia_na, ntfs_ib_vcn_to_pos(icx, vcn), 93 (long long)vcn, (unsigned long long)icx->ni->mft_no); 200 * Get the subnode vcn to which the index entry refers. 339 static void ntfs_ie_set_vcn(INDEX_ENTRY *ie, VCN vcn) argument 341 *ntfs_ie_get_vcn_addr(ie) = cpu_to_sle64(vcn); 460 ntfs_index_block_inconsistent(const INDEX_BLOCK *ib, u32 block_size, u64 inum, VCN vcn) argument 575 ntfs_ie_lookup(const void *key, const int key_len, ntfs_index_context *icx, INDEX_HEADER *ih, VCN *vcn, INDEX_ENTRY **ie_out) argument 688 ntfs_ib_read(ntfs_index_context *icx, VCN vcn, INDEX_BLOCK *dst) argument 771 VCN old_vcn, vcn; local 966 ntfs_ibm_vcn_to_pos(ntfs_index_context *icx, VCN vcn) argument 997 ntfs_ibm_modify(ntfs_index_context *icx, VCN vcn, int set) argument 1045 ntfs_ibm_set(ntfs_index_context *icx, VCN vcn) argument 1050 ntfs_ibm_clear(ntfs_index_context *icx, VCN vcn) argument 1059 s64 vcn, byte, size; local 1801 VCN vcn; local 2041 s64 vcn; local 2081 s64 vcn; local [all...] |
H A D | lcnalloc.c | 198 * @start_vcn: vcn to use for the first allocated cluster 258 ntfs_log_perror("%s: vcn: %lld, count: %lld, lcn: %lld", 268 rl[0].vcn = start_vcn; 394 rl[rlpos].vcn = rl[rlpos - 1].vcn + 397 rl[rlpos].vcn = start_vcn; 408 (long long)rl[rlpos - 1].vcn, 534 rl[rlpos].vcn = rl[rlpos - 1].vcn + rl[rlpos - 1].length; 560 rl[rlpos].vcn [all...] |
H A D | attrib.c | 605 * @vcn: map runlist part containing this vcn 607 * Map the part of a runlist containing the @vcn of the ntfs attribute @na. 611 int ntfs_attr_map_runlist(ntfs_attr *na, VCN vcn) argument 616 ntfs_log_trace("Entering for inode 0x%llx, attr 0x%x, vcn 0x%llx.\n", 617 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type), (long long)vcn); 619 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn); 629 vcn, NULL, 0, ctx)) { 655 static int ntfs_attr_map_partial_runlist(ntfs_attr *na, VCN vcn) argument 674 /* Get the last vcn i 878 ntfs_attr_vcn_to_lcn(ntfs_attr *na, const VCN vcn) argument 928 ntfs_attr_find_vcn(ntfs_attr *na, const VCN vcn) argument [all...] |
H A D | index.h | 143 u64 inum, VCN vcn);
|
H A D | attrib.h | 313 extern int ntfs_attr_map_runlist(ntfs_attr *na, VCN vcn); 316 extern LCN ntfs_attr_vcn_to_lcn(ntfs_attr *na, const VCN vcn); 317 extern runlist_element *ntfs_attr_find_vcn(ntfs_attr *na, const VCN vcn);
|
H A D | mft.c | 746 rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE); 778 mftbmp_na->name_len, 0, rl[1].vcn, NULL, 0, ctx)) { 826 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 1); 858 mftbmp_na->name_len, 0, rl[1].vcn, NULL, 0, ctx)) { 872 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 2); 1082 old_last_vcn = rl[1].vcn; 1127 rl[1].vcn, NULL, 0, ctx)) { 1176 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 1); 1213 rl[1].vcn, NULL, 0, ctx)) {
|
H A D | dir.c | 252 VCN vcn; local 386 /* Determine the size of a vcn in the directory index. */ 393 /* Get the starting vcn of the index_block holding the child node. */ 394 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); 398 /* Read the index block starting at vcn. */ 399 br = ntfs_attr_mst_pread(ia_na, vcn << index_vcn_size_bits, 1, 404 ntfs_log_perror("Failed to read vcn 0x%llx from inode %lld", 405 (unsigned long long)vcn, 411 ia_na->ni->mft_no, vcn)) { 487 vcn [all...] |
H A D | inode.c | 619 && ((rl->vcn + rl->length) <= extent_vcn))
|
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/ |
H A D | mkntfs.c | 772 VCN vcn = 0LL; local 801 vcn++; 803 rl[rlpos].vcn = vcn++; 813 rl[rlpos].vcn = vcn; 831 rl[rlpos].vcn = vcn; 1037 * @lowest_vcn: lowest vcn to find (optional, non-resident attributes only) 1209 /* Get the highest vcn [all...] |