Searched refs:lcn (Results 1 - 21 of 21) sorted by relevance

/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Ddebug.c59 LCN lcn = (rl + i)->lcn; local
61 if (lcn < (LCN)0) {
62 int idx = -lcn - 1;
68 ntfs_log_debug("%-16llx %-16llx %-16llx%s\n", rl[i].vcn, rl[i].lcn, rl[i].length, rl[i].length ? "" : " (runlist end)");
H A Dlcnalloc.c52 * @start_lcn: starting lcn at which to allocate the clusters (or -1 if none)
77 * access to the lcn bitmap in portions of up to 8192 bytes at a time, so we
106 LCN zone_start, zone_end, bmp_pos, bmp_initial_pos, last_read_pos, lcn; local
130 rl[0].lcn = LCN_RL_NOT_MAPPED;
241 lcn = bmp_pos & 7;
244 ntfs_log_trace("Before inner while loop: buf_size = %i, lcn = "
246 buf_size, (long long)lcn, (long long)bmp_pos,
248 while (lcn < buf_size && lcn + bmp_pos < zone_end) {
249 byte = buf + (lcn >>
[all...]
H A Drunlist.c134 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED))
140 if ((dst->lcn >= 0) && (src->lcn >= 0) &&
141 ((dst->lcn + dst->length) == src->lcn))
144 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE))
226 if (dst[marker].lcn == LCN_ENOENT)
312 if (dst[marker].lcn
737 LCN lcn; /* Current lcn. */ local
1774 LCN lcn = rl->lcn; local
[all...]
H A Dmft.c557 LCN lcn; local
576 * Determine the last lcn of the mft bitmap. The allocated size of the
581 if (!rl || !rl->length || rl->lcn < 0) {
588 lcn = rl->lcn + rl->length;
594 ret = (int)ntfs_attr_pread(lcnbmp_na, lcn >> 3, 1, &b);
596 ntfs_log_error("Failed to read from lcn bitmap.\n");
600 tb = 1 << (lcn & 7ull);
604 ret = (int)ntfs_attr_pwrite(lcnbmp_na, lcn >> 3, 1, &b);
606 ntfs_log_error("Failed to write to lcn "
890 LCN lcn; local
[all...]
H A Ddevice.c465 * @lcn: starting logical cluster number
469 * Read @count ntfs clusters starting at logical cluster number @lcn from
473 s64 ntfs_cluster_read(const ntfs_volume *vol, const s64 lcn, const s64 count, argument
478 if (!vol || lcn < 0 || count < 0) {
482 if (vol->nr_clusters < lcn + count) {
486 br = ntfs_pread(vol->u.dev, lcn << vol->cluster_size_bits,
498 * @lcn: starting logical cluster number
502 * Write @count ntfs clusters starting at logical cluster number @lcn from
506 s64 ntfs_cluster_write(const ntfs_volume *vol, const s64 lcn, argument
511 if (!vol || lcn <
[all...]
H A Dcompress.c279 if (rl->lcn < LCN_HOLE || !rl->length) {
282 if (!rl || rl->lcn < LCN_HOLE || !rl->length)
292 if (rl->lcn == LCN_HOLE)
418 if (!rl || rl->lcn < LCN_HOLE) {
427 if (rl->lcn == LCN_HOLE) {
H A Dattrib.c188 * FIXME: If compressed file: Only read if lcn != -1.
198 r = ntfs_pread(vol->u.dev, rl[i].lcn <<
228 * FIXME: If compressed file: Only read if lcn != -1.
237 r = ntfs_pread(vol->u.dev, rl[i].lcn << vol->cluster_size_bits,
499 LCN lcn; local
505 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
506 if (lcn >= 0 || lcn == LCN_HOLE || lcn == LCN_ENOENT)
558 if (rl->lcn >
741 LCN lcn; local
[all...]
H A Dvolume.c404 if (vol->mftmirr_na->rl[0].lcn != vol->mftmirr_lcn ||
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dntfscluster.h55 LCN lcn; /* Last cluster in use */ member in struct:match
H A Dntfsresize.c165 s64 lcn; /* last used LCN for a "special" file/attr type */ member in struct:llcn_t
602 static void rl_set(runlist *rl, VCN vcn, LCN lcn, s64 len) argument
605 rl->lcn = lcn;
622 (long long)r->lcn, (long long)r->lcn,
656 last_lcn = rl->lcn + (rl->length - 1);
710 if (llcn->lcn < last_lcn) {
711 llcn->lcn = last_lcn;
725 s64 lcn, lcn_lengt local
798 s64 lcn = rl[i].lcn; local
1409 lseek_to_cluster(ntfs_volume *vol, s64 lcn) argument
1530 s64 lcn, lcn_length; local
1587 s64 lcn = rl[i].lcn; local
[all...]
H A Dcluster.c86 LCN a_begin = runs[j].lcn;
94 (long long)runs[j].lcn,
95 (long long)(runs[j].lcn +
H A Dntfscluster.c312 if (rl[z].lcn >= 0) {
411 (long long)runs[i].lcn,
466 if ((run->lcn + run->length) > m->lcn) {
468 m->lcn = run->lcn + run->length;
538 m.lcn = -1;
540 if (m.lcn >= 0) {
H A Dutils.h50 int utils_cluster_in_use(ntfs_volume *vol, long long lcn);
H A Dntfsclone.c620 static void lseek_to_cluster(s64 lcn) argument
624 pos = (off_t)(lcn * vol->cluster_size);
665 lseek_to_cluster(rl->lcn);
669 copy_cluster(opt.rescue, rl->lcn + i);
988 s64 offset = 0, lcn, vcn; local
993 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
994 if (lcn < 0)
997 lseek_to_cluster(lcn);
998 copy_cluster(opt.rescue, lcn);
1032 s64 lcn local
1757 s64 lcn = rl->lcn; local
[all...]
H A Dutils.c636 * @lcn: The Logical Cluster Number to test
643 * If the lcn, being tested, lies outside the range, the buffer will be
653 int utils_cluster_in_use(ntfs_volume *vol, long long lcn) argument
665 /* Does lcn lie in the section of $Bitmap we already have cached? */
666 if ((lcn < bmplcn) || (lcn >= (bmplcn + (sizeof(buffer) << 3)))) {
676 bmplcn = lcn & (~((sizeof(buffer) << 3) - 1));
689 bit = 1 << (lcn & 7);
690 byte = (lcn >> 3) & (sizeof(buffer) - 1);
692 "in use %d\n", lcn, bmplc
[all...]
H A Dntfsundelete.c1217 if (rl[0].lcn == LCN_RL_NOT_MAPPED) { /* extended mft record */
1225 if (rl[i].lcn == LCN_RL_NOT_MAPPED) {
1233 if (rl[i].lcn == LCN_HOLE) {
1238 start = rl[i].lcn;
1239 end = rl[i].lcn + rl[i].length;
1376 (long long)d->runlist[i].lcn);
1761 if (rl[0].lcn == LCN_RL_NOT_MAPPED) { /* extended mft record */
1778 if (rl[i].lcn == LCN_RL_NOT_MAPPED) {
1794 if (rl[i].lcn == LCN_HOLE) {
1807 start = rl[i].lcn;
[all...]
H A Dmkntfs.c170 static long long g_mft_lcn = 0; /* lcn of $MFT, $DATA attribute */
171 static long long g_mftmirr_lcn = 0; /* lcn of $MFTMirr, $DATA */
172 static long long g_logfile_lcn = 0; /* lcn of $LogFile, $DATA */
605 if (rl[i].lcn == -1) {
622 if (dev->d_ops->seek(dev, rl[i].lcn * g_vol->cluster_size,
732 if (rl[i].lcn == -1LL)
735 for (j = rl[i].lcn; j < rl[i].lcn + rl[i].length; j++)
758 LCN lcn, end, prev_lcn = 0LL; local
768 for (lcn
[all...]
H A Dntfsinfo.c1195 static const char * ntfs_dump_lcn(LCN lcn) argument
1197 switch (lcn) {
1210 "ntfs_dump_lcn().\n", lcn);
1317 if (rlc->lcn >= 0)
1320 rlc->lcn, rlc->length);
1324 ntfs_dump_lcn(rlc->lcn),
/osnet-11/usr/src/lib/libntfs/common/include/ntfs/
H A Drunlist.h36 * struct _runlist_element - in memory vcn to lcn mapping array element.
38 * @lcn: starting lcn of the current array element
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. */
48 LCN lcn; /* lcn = Starting logical cluster number. */ member in struct:_runlist_element
H A Ddevice.h116 extern s64 ntfs_cluster_read(const ntfs_volume *vol, const s64 lcn,
118 extern s64 ntfs_cluster_write(const ntfs_volume *vol, const s64 lcn,
H A Dlogfile.h430 LCN lcn; member in struct:__anon2153::__anon2154

Completed in 74 milliseconds