Searched defs:vcn (Results 1 - 11 of 11) sorted by relevance

/osnet-11/usr/src/lib/libntfs/common/include/ntfs/
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
52 extern LCN ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn);
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/fs/
H A Dntfscomp.c291 grub_uint32_t len, struct grub_ntfs_rlst *ctx, grub_uint32_t vcn)
304 if ((vcn > ctx->target_vcn) &&
306 (ctx, NULL, ((vcn - ctx->target_vcn) * ctx->comp.spc) / GRUB_NTFS_COM_SEC)))
290 ntfscomp(struct grub_ntfs_attr *at, char *dest, grub_uint32_t ofs, grub_uint32_t len, struct grub_ntfs_rlst *ctx, grub_uint32_t vcn) argument
H A Dntfs.c385 grub_disk_addr_t vcn; local
443 vcn = ctx->target_vcn = (ofs >> GRUB_NTFS_COM_LOG_LEN) * (GRUB_NTFS_COM_SEC / ctx->comp.spc);
447 vcn = ctx->target_vcn = grub_divmod64 (ofs >> GRUB_NTFS_BLK_SHR, ctx->comp.spc, 0);
491 vcn) :
513 grub_disk_addr_t vcn; local
515 vcn = grub_divmod64 (ofs, at->mft->data->spc << GRUB_NTFS_BLK_SHR, 0);
521 if (u32at (pa, 8) > vcn)
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dcompress.c274 cb_clusters -= rl->length - (cb_start_vcn - rl->vcn);
280 cb_start_vcn = rl->vcn;
281 rl = ntfs_attr_find_vcn(na, rl->vcn);
288 if (rl->vcn < cb_start_vcn)
328 VCN start_vcn, vcn, end_vcn; local
394 * The first vcn in the first compression block (cb) which we need to
401 * The first vcn in the cb after the last cb which we need to
406 /* Number of compression blocks (cbs) in the wanted vcn range. */
413 vcn = start_vcn;
417 rl = ntfs_attr_find_vcn(na, vcn);
[all...]
H A Ddir.c106 VCN vcn; local
271 /* Determine the size of a vcn in the directory index. */
280 /* Get the starting vcn of the index_block holding the child node. */
281 vcn = sle64_to_cpup((u8*)ie + le16_to_cpu(ie->length) - 8);
285 /* Read the index block starting at vcn. */
286 br = ntfs_attr_mst_pread(ia_na, vcn << index_vcn_size_bits, 1,
291 ntfs_log_perror("Failed to read vcn 0x%llx",
292 (unsigned long long)vcn);
296 if (sle64_to_cpu(ia->index_block_vcn) != vcn) {
300 (long long)vcn);
[all...]
H A Dindex.c72 static s64 ntfs_ib_vcn_to_pos(ntfs_index_context *icx, VCN vcn) argument
74 return vcn << icx->vcn_size_bits;
82 static int ntfs_ib_write(ntfs_index_context *icx, VCN vcn, void *buf) argument
86 ntfs_log_trace("vcn: %lld\n", vcn);
88 ret = ntfs_attr_mst_pwrite(icx->ia_na, ntfs_ib_vcn_to_pos(icx, vcn),
92 "%llu", (long long)vcn,
203 * Get the subnode vcn to which the index entry refers.
346 static void ntfs_ie_set_vcn(INDEX_ENTRY *ie, VCN vcn) argument
348 *ntfs_ie_get_vcn_addr(ie) = cpu_to_sle64(vcn);
398 ntfs_ia_check(ntfs_index_context *icx, INDEX_BLOCK *ib, VCN vcn) argument
480 ntfs_ie_lookup(const void *key, const int key_len, ntfs_index_context *icx, INDEX_HEADER *ih, VCN *vcn, INDEX_ENTRY **ie_out) argument
580 ntfs_ib_read(ntfs_index_context *icx, VCN vcn, INDEX_BLOCK *dst) argument
661 VCN old_vcn, vcn; local
860 ntfs_ibm_vcn_to_pos(ntfs_index_context *icx, VCN vcn) argument
890 ntfs_ibm_modify(ntfs_index_context *icx, VCN vcn, int set) argument
938 ntfs_ibm_set(ntfs_index_context *icx, VCN vcn) argument
943 ntfs_ibm_clear(ntfs_index_context *icx, VCN vcn) argument
952 s64 vcn, byte, size; local
1663 VCN vcn; local
[all...]
H A Drunlist.c137 if ((dst->vcn + dst->length) != src->vcn)
223 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn;
227 dst[marker].vcn = dst[marker-1].vcn + dst[marker-1].length;
270 disc = (src[0].vcn > 0);
280 disc = (src[0].vcn > dst[loc - 1].vcn + merged_length);
310 dst[marker].vcn
736 VCN vcn; /* Current vcn. */ local
976 ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn) argument
1867 test_rl_pure_src(BOOL contig, BOOL multi, int vcn, int len) argument
1908 test_rl_pure_test(int test, BOOL contig, BOOL multi, int vcn, int len, runlist_element *file, int size) argument
[all...]
H A Dattrib.c491 * @vcn: map runlist part containing this vcn
493 * Map the part of a runlist containing the @vcn of the ntfs attribute @na.
497 int ntfs_attr_map_runlist(ntfs_attr *na, VCN vcn) argument
502 ntfs_log_trace("Entering for inode 0x%llx, attr 0x%x, vcn 0x%llx.\n",
503 (unsigned long long)na->ni->mft_no, na->type, (long long)vcn);
505 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
515 vcn, NULL, 0, ctx)) {
534 * @from_vcn: map runlist part starting this vcn
535 * @to_vcn: map runlist part ending this vcn
739 ntfs_attr_vcn_to_lcn(ntfs_attr *na, const VCN vcn) argument
789 ntfs_attr_find_vcn(ntfs_attr *na, const VCN vcn) argument
[all...]
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dntfsclone.c507 s64 s = (s64)16384 - rl->vcn * vol->cluster_size;
988 s64 offset = 0, lcn, vcn; local
992 vcn = offset / image->ni->vol->cluster_size;
993 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
H A Dmkntfs.c757 VCN vcn = 0LL; local
786 vcn++;
788 rl[rlpos].vcn = vcn++;
798 rl[rlpos].vcn = vcn;
816 rl[rlpos].vcn = vcn;
1022 * @lowest_vcn: lowest vcn to find (optional, non-resident attributes only)
1194 /* Get the highest vcn
[all...]
H A Dntfsresize.c602 static void rl_set(runlist *rl, VCN vcn, LCN lcn, s64 len) argument
604 rl->vcn = vcn;
621 ntfs_log_verbose(" %8lld %8lld (0x%08llx) %lld\n", (long long)r->vcn,
680 if (atype != AT_DATA || rl->vcn)
703 if (rl[1].length != 0 || rl->vcn)
1127 tmp->vcn -= unmapped_len;
1314 s64 vcn = 0; local
1333 rl_set(rl + runs, vcn, rle.lcn, rle.length);
1335 vcn
1503 s64 vcn; local
1829 VCN vcn; local
[all...]

Completed in 62 milliseconds