Lines Matching refs:lcn

188 			 * 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;
505 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
506 if (lcn >= 0 || lcn == LCN_HOLE || lcn == LCN_ENOENT)
558 if (rl->lcn >= 0 || rl->lcn == LCN_HOLE || (rl->vcn +
560 rl->lcn == LCN_RL_NOT_MAPPED)) {
566 if (rl->lcn == LCN_ENOENT)
570 if (rl->lcn < 0 && rl->lcn != LCN_RL_NOT_MAPPED) {
719 * ntfs_attr_vcn_to_lcn - convert a vcn into a lcn given an ntfs attribute
724 * cluster number (lcn) of a device using the runlist @na->rl to map vcns to
728 * containing the @vcn and retry the vcn to lcn conversion.
741 LCN lcn;
750 /* Convert vcn to lcn. If that fails map the runlist and retry once. */
751 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
752 if (lcn >= 0)
753 return lcn;
763 if (!is_retry || lcn == (LCN)LCN_RL_NOT_MAPPED)
765 /* lcn contains the appropriate error code. */
766 return lcn;
777 * Note you need to distinguish between the lcn of the returned runlist
810 if (rl->lcn >= (LCN)LCN_HOLE)
816 switch (rl->lcn) {
959 if (rl->lcn == LCN_RL_NOT_MAPPED) {
971 if (rl->lcn < (LCN)0) {
972 if (rl->lcn != (LCN)LCN_HOLE)
984 /* It is a real lcn, read it into @dst. */
989 "lcn 0x%llx, ofs 0x%llx.\n", to_read, rl->vcn,
990 rl->lcn, ofs);
991 br = ntfs_pread(vol->u.dev, (rl->lcn << vol->cluster_size_bits) +
1188 if (rl->lcn == LCN_RL_NOT_MAPPED) {
1202 if (rl->lcn < (LCN)0) {
1207 if (rl->lcn != (LCN)LCN_HOLE) {
1240 * Search backwards to find the best lcn to start
1246 if (rlc->lcn >= 0) {
1247 lcn_seek_from = rlc->lcn +
1257 if (rlc->lcn >= 0) {
1258 lcn_seek_from = rlc->lcn -
1311 if (rl->lcn < 0)
1314 if (rl->lcn < 0) {
1345 /* It is a real lcn, write it to the volume. */
1349 ntfs_log_trace("Writing 0x%llx bytes to vcn 0x%llx, lcn 0x%llx,"
1350 " ofs 0x%llx.\n", to_write, rl->vcn, rl->lcn,
1353 s64 pos = (rl->lcn << vol->cluster_size_bits) + ofs;
4942 rl[0].lcn = LCN_HOLE;
4946 rl[1].lcn = LCN_ENOENT;
4967 while (rl->lcn < 0 && rl != na->rl)
4972 if (rl->lcn >= 0)
4973 lcn_seek_from = rl->lcn + rl->length;