• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching refs:lcn

133 	if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED))
139 if ((dst->lcn >= 0) && (src->lcn >= 0) &&
140 ((dst->lcn + dst->length) == src->lcn))
143 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE))
224 if (dst[marker].lcn == LCN_ENOENT)
310 if (dst[marker].lcn == LCN_HOLE || dst[marker].lcn == LCN_RL_NOT_MAPPED)
322 dst[loc].lcn = LCN_RL_NOT_MAPPED;
408 if (((dsize - tail) > 0) && (dst[marker].lcn == LCN_ENOENT))
472 int sstart; /* First index with lcn > LCN_RL_NOT_MAPPED. */
476 lcn >= LCN_HOLE. */
504 drl[0].lcn = LCN_RL_NOT_MAPPED;
513 while (srl[si].length && srl[si].lcn < (LCN)LCN_HOLE)
538 if ((drl[di].vcn == srl[si].vcn) && (drl[di].lcn >= 0) &&
539 (srl[si].lcn >= 0)) {
551 if (srl[send].lcn == (LCN)LCN_ENOENT)
554 /* Scan to the last element with lcn >= LCN_HOLE. */
555 for (sfinal = send; sfinal >= 0 && srl[sfinal].lcn < LCN_HOLE; sfinal--)
557 for (dfinal = dend; dfinal >= 0 && drl[dfinal].lcn < LCN_HOLE; dfinal--)
566 start = ((drl[dins].lcn < LCN_RL_NOT_MAPPED) || /* End of file */
568 finish = ((drl[dins].lcn >= LCN_RL_NOT_MAPPED) && /* End of file */
610 (long long)drl[ds].lcn);
611 drl[ds].lcn = (LCN)LCN_ENOENT;
619 if (drl[ds].lcn == (LCN)LCN_ENOENT) {
623 if (drl[ds].lcn != (LCN)LCN_RL_NOT_MAPPED) {
639 drl[ds].lcn = (LCN)LCN_RL_NOT_MAPPED;
655 drl[ds].lcn = (LCN)LCN_ENOENT;
671 marker_vcn = ((runlist*)NULL)->lcn;
749 LCN lcn; /* Current lcn. */
767 /* Start at vcn = lowest_vcn and lcn 0. */
769 lcn = 0;
788 rl->lcn = (LCN)LCN_RL_NOT_MAPPED;
846 * There might be no lcn change at all, as is the case for
847 * sparse clusters on NTFS 3.0+, in which case we set the lcn
851 rl[rlpos].lcn = (LCN)LCN_HOLE;
853 /* Get the lcn change which really can be negative. */
860 /* Change the current lcn to it's new value. */
861 lcn += deltaxcn;
864 * On NTFS 1.2-, apparently can have lcn == -1 to
866 * whether it is really the lcn or the deltaxcn that is
872 ntfs_log_debug("lcn delta == -1\n");
873 if (lcn == (LCN)-1)
874 ntfs_log_debug("lcn == -1\n");
877 /* Check lcn is not below -1. */
878 if (lcn < (LCN)-1) {
883 /* Enter the current lcn into the runlist element. */
884 rl[rlpos].lcn = lcn;
929 rl[rlpos].lcn = (LCN)LCN_RL_NOT_MAPPED;
939 rl[rlpos].lcn = (LCN)LCN_ENOENT;
941 rl[rlpos].lcn = (LCN)LCN_RL_NOT_MAPPED;
981 * ntfs_rl_vcn_to_lcn - convert a vcn into a lcn given a runlist
986 * cluster number (lcn) of a device using the runlist @rl to map vcns to their
1019 if (rl[i].lcn >= (LCN)0)
1020 return rl[i].lcn + (vcn - rl[i].vcn);
1021 return rl[i].lcn;
1028 if (rl[i].lcn < (LCN)0)
1029 return rl[i].lcn;
1082 if (rl->lcn < (LCN)0) {
1083 if (rl->lcn != (LCN)LCN_HOLE)
1095 /* It is a real lcn, read it from the volume. */
1099 bytes_read = ntfs_pread(vol->dev, (rl->lcn <<
1170 if (rl->lcn < (LCN)0) {
1172 if (rl->lcn != (LCN)LCN_HOLE)
1183 /* It is a real lcn, write it to the volume. */
1188 written = ntfs_pwrite(vol->dev, (rl->lcn <<
1227 * number (lcn) or a specific run length.
1306 if (rl->length < 0 || rl->lcn < LCN_HOLE)
1312 * If the logical cluster number (lcn) denotes a hole and we
1314 * zero space. On earlier NTFS versions we just store the lcn.
1316 * an lcn of -1 and not a delta_lcn of -1 (unless both are -1).
1318 if (rl->lcn >= 0 || vol->major_ver < 3) {
1319 prev_lcn = rl->lcn;
1320 if (rl->lcn >= 0)
1322 /* Change in lcn. */
1330 if (rl->length < 0 || rl->lcn < LCN_HOLE)
1335 * If the logical cluster number (lcn) denotes a hole and we
1337 * zero space. On earlier NTFS versions we just store the lcn.
1339 * an lcn of -1 and not a delta_lcn of -1 (unless both are -1).
1341 if (rl->lcn >= 0 || vol->major_ver < 3) {
1342 /* Change in lcn. */
1343 rls += ntfs_get_nr_significant_bytes(rl->lcn -
1345 prev_lcn = rl->lcn;
1351 if (rl->lcn == LCN_RL_NOT_MAPPED)
1372 * a given logical cluster number (lcn) or a specific run length to the minimum
1478 if (rl->length < 0 || rl->lcn < LCN_HOLE)
1487 * If the logical cluster number (lcn) denotes a hole and we
1489 * zero space. On earlier NTFS versions we just write the lcn
1490 * change. FIXME: Do we need to write the lcn change or just
1491 * the lcn in that case? Not sure as I have never seen this
1492 * case on NT4. - We assume that we just need to write the lcn
1495 if (rl->lcn >= 0 || vol->major_ver < 3) {
1496 prev_lcn = rl->lcn;
1497 if (rl->lcn >= 0)
1499 /* Write change in lcn. */
1518 if (rl->length < 0 || rl->lcn < LCN_HOLE)
1526 * If the logical cluster number (lcn) denotes a hole and we
1528 * zero space. On earlier NTFS versions we just write the lcn
1529 * change. FIXME: Do we need to write the lcn change or just
1530 * the lcn in that case? Not sure as I have never seen this
1531 * case on NT4. - We assume that we just need to write the lcn
1534 if (rl->lcn >= 0 || vol->major_ver < 3) {
1535 /* Write change in lcn. */
1537 len_len, dst_max, rl->lcn - prev_lcn);
1540 prev_lcn = rl->lcn;
1572 if (rl->lcn == LCN_RL_NOT_MAPPED)
1641 rl->lcn = (LCN)LCN_ENOENT;
1675 if (rlc->lcn < 0) {
1676 if (rlc->lcn != LCN_HOLE) {
1705 if (rlc->lcn < 0) {
1706 if (rlc->lcn != LCN_HOLE) {
1724 (R)->lcn = L; \
1754 LCN lcn = rl->lcn;
1763 if (lcn < (LCN)0) {
1764 int ind = -lcn - 1;
1772 rl->vcn, rl->lcn, rl->length);