• 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 defs:lcn

217 			 * FIXME: If compressed file: Only read if lcn != -1.
227 r = ntfs_pread(vol->dev, rl[i].lcn <<
254 * FIXME: If compressed file: Only read if lcn != -1.
263 r = ntfs_pread(vol->dev, rl[i].lcn << vol->cluster_size_bits,
513 LCN lcn;
519 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
520 if (lcn >= 0 || lcn == LCN_HOLE || lcn == LCN_ENOENT)
652 * ntfs_attr_vcn_to_lcn - convert a vcn into a lcn given an ntfs attribute
657 * cluster number (lcn) of a device using the runlist @na->rl to map vcns to
661 * containing the @vcn and retry the vcn to lcn conversion.
674 LCN lcn;
683 /* Convert vcn to lcn. If that fails map the runlist and retry once. */
684 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
685 if (lcn >= 0)
686 return lcn;
696 if (!is_retry || lcn == (LCN)LCN_RL_NOT_MAPPED)
698 /* lcn contains the appropriate error code. */
699 return lcn;
710 * Note you need to distinguish between the lcn of the returned runlist
743 if (rl->lcn >= (LCN)LCN_HOLE)
749 switch (rl->lcn) {
869 if (rl->lcn == LCN_RL_NOT_MAPPED) {
887 if (rl->lcn < (LCN)0) {
888 if (rl->lcn != (LCN)LCN_HOLE) {
891 (long long)rl->lcn);
904 /* It is a real lcn, read it into @dst. */
908 ntfs_log_trace("Reading %lld bytes from vcn %lld, lcn %lld, ofs"
910 (long long )rl->lcn, (long long)ofs);
911 br = ntfs_pread(vol->dev, (rl->lcn << vol->cluster_size_bits) +
1048 /* Search backwards to find the best lcn to start seek from. */
1052 if (rlc->lcn >= 0) {
1053 lcn_seek_from = rlc->lcn + (from_vcn - rlc->vcn);
1062 if (rlc->lcn >= 0) {
1063 lcn_seek_from = rlc->lcn - (rlc->vcn - from_vcn);
1104 if ((*rl)->lcn < 0)
1107 if ((*rl)->lcn < 0) {
1312 if (rl->lcn == LCN_RL_NOT_MAPPED) {
1330 if (rl->lcn < (LCN)0) {
1334 if (rl->lcn != (LCN)LCN_HOLE) {
1338 (long long)rl->lcn);
1345 /* It is a real lcn, write it to the volume. */
1348 ntfs_log_trace("Writing %lld bytes to vcn %lld, lcn %lld, ofs "
1350 (long long)rl->lcn, (long long)ofs);
1353 s64 wpos = (rl->lcn << vol->cluster_size_bits) + ofs;
4845 rl[0].lcn = LCN_HOLE;
4849 rl[1].lcn = LCN_ENOENT;
4868 while (rl->lcn < 0 && rl != na->rl)
4873 if (rl->lcn >= 0)
4874 lcn_seek_from = rl->lcn + rl->length;