Searched refs:vcn (Results 1 - 12 of 12) sorted by relevance

/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Drunlist.c174 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
1037 ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn) argument
1883 test_rl_pure_src(BOOL contig, BOOL multi, int vcn, int len) argument
1924 test_rl_pure_test(int test, BOOL contig, BOOL multi, int vcn, int len, runlist_element *file, int size) argument
[all...]
H A Ddebug.c67 (long long)rl[i].vcn, lcn_str[idx],
72 (long long)rl[i].vcn, (long long)rl[i].lcn,
H A Dcompress.c513 cb_clusters -= rl->length - (cb_start_vcn - rl->vcn);
519 cb_start_vcn = rl->vcn;
520 rl = ntfs_attr_find_vcn(na, rl->vcn);
527 if (rl->vcn < cb_start_vcn)
567 VCN start_vcn, vcn, end_vcn; local
637 * The first vcn in the first compression block (cb) which we need to
644 * The first vcn in the cb after the last cb which we need to
649 /* Number of compression blocks (cbs) in the wanted vcn range. */
656 vcn = start_vcn;
660 rl = ntfs_attr_find_vcn(na, vcn);
[all...]
H A Drunlist.h36 * 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 Dindex.c73 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_le64(vcn);
391 ntfs_ia_check(ntfs_index_context *icx, INDEX_BLOCK *ib, VCN vcn) argument
484 ntfs_ie_lookup(const void *key, const int key_len, ntfs_index_context *icx, INDEX_HEADER *ih, VCN *vcn, INDEX_ENTRY **ie_out) argument
591 ntfs_ib_read(ntfs_index_context *icx, VCN vcn, INDEX_BLOCK *dst) argument
671 VCN old_vcn, vcn; local
863 ntfs_ibm_vcn_to_pos(ntfs_index_context *icx, VCN vcn) argument
894 ntfs_ibm_modify(ntfs_index_context *icx, VCN vcn, int set) argument
942 ntfs_ibm_set(ntfs_index_context *icx, VCN vcn) argument
947 ntfs_ibm_clear(ntfs_index_context *icx, VCN vcn) argument
956 s64 vcn, byte, size; local
1686 VCN vcn; local
1932 s64 vcn; local
1972 s64 vcn; local
[all...]
H A Dlcnalloc.c198 * @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;
392 rl[rlpos].vcn = rl[rlpos - 1].vcn +
395 rl[rlpos].vcn = start_vcn;
406 (long long)rl[rlpos - 1].vcn,
532 rl[rlpos].vcn = rl[rlpos - 1].vcn + rl[rlpos - 1].length;
558 rl[rlpos].vcn
[all...]
H A Dattrib.c551 * @vcn: map runlist part containing this vcn
553 * Map the part of a runlist containing the @vcn of the ntfs attribute @na.
557 int ntfs_attr_map_runlist(ntfs_attr *na, VCN vcn) argument
562 ntfs_log_trace("Entering for inode 0x%llx, attr 0x%x, vcn 0x%llx.\n",
563 (unsigned long long)na->ni->mft_no, na->type, (long long)vcn);
565 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
575 vcn, NULL, 0, ctx)) {
601 static int ntfs_attr_map_partial_runlist(ntfs_attr *na, VCN vcn) argument
613 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
801 ntfs_attr_vcn_to_lcn(ntfs_attr *na, const VCN vcn) argument
851 ntfs_attr_find_vcn(ntfs_attr *na, const VCN vcn) argument
[all...]
H A Dattrib.h307 extern int ntfs_attr_map_runlist(ntfs_attr *na, VCN vcn);
310 extern LCN ntfs_attr_vcn_to_lcn(ntfs_attr *na, const VCN vcn);
311 extern runlist_element *ntfs_attr_find_vcn(ntfs_attr *na, const VCN vcn);
H A Dmft.c677 rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE);
709 mftbmp_na->name_len, 0, rl[1].vcn, NULL, 0, ctx)) {
757 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 1);
789 mftbmp_na->name_len, 0, rl[1].vcn, NULL, 0, ctx)) {
803 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 2);
1013 old_last_vcn = rl[1].vcn;
1058 rl[1].vcn, NULL, 0, ctx)) {
1107 a->highest_vcn = cpu_to_sle64(rl[1].vcn - 1);
1144 rl[1].vcn, NULL, 0, ctx)) {
H A Ddir.c248 VCN vcn; local
379 /* Determine the size of a vcn in the directory index. */
386 /* Get the starting vcn of the index_block holding the child node. */
387 vcn = sle64_to_cpup((u8*)ie + le16_to_cpu(ie->length) - 8);
391 /* Read the index block starting at vcn. */
392 br = ntfs_attr_mst_pread(ia_na, vcn << index_vcn_size_bits, 1,
397 ntfs_log_perror("Failed to read vcn 0x%llx",
398 (unsigned long long)vcn);
402 if (sle64_to_cpu(ia->index_block_vcn) != vcn) {
406 (long long)vcn);
[all...]
H A Dinode.c609 && ((rl->vcn + rl->length) <= extent_vcn))
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dmkntfs.c712 VCN vcn = 0LL; local
741 vcn++;
743 rl[rlpos].vcn = vcn++;
753 rl[rlpos].vcn = vcn;
771 rl[rlpos].vcn = vcn;
977 * @lowest_vcn: lowest vcn to find (optional, non-resident attributes only)
1149 /* Get the highest vcn
[all...]

Completed in 90 milliseconds