Home
last modified time | relevance | path

Searched refs:rlpos (Results 1 – 3 of 3) sorted by relevance

/third_party/ntfs-3g/libntfs-3g/
Dlcnalloc.c249 int err = 0, rlpos, rlsize, buf_size; in ntfs_cluster_alloc() local
314 rlpos = rlsize = 0; in ntfs_cluster_alloc()
357 if ((rlpos + 2) * (int)sizeof(runlist) >= rlsize) { in ntfs_cluster_alloc()
384 if (prev_lcn == lcn + bmp_pos - prev_run_len && rlpos) { in ntfs_cluster_alloc()
391 rl[rlpos - 1].length = ++prev_run_len; in ntfs_cluster_alloc()
393 if (rlpos) in ntfs_cluster_alloc()
394 rl[rlpos].vcn = rl[rlpos - 1].vcn + in ntfs_cluster_alloc()
397 rl[rlpos].vcn = start_vcn; in ntfs_cluster_alloc()
402 rl[rlpos].lcn = prev_lcn = lcn + bmp_pos; in ntfs_cluster_alloc()
403 rl[rlpos].length = prev_run_len = 1; in ntfs_cluster_alloc()
[all …]
Drunlist.c793 u16 rlpos; /* Current runlist position in units of in ntfs_mapping_pairs_decompress_i() local
817 rlpos = 0; in ntfs_mapping_pairs_decompress_i()
828 rlpos++; in ntfs_mapping_pairs_decompress_i()
835 if ((int)((rlpos + 3) * sizeof(*old_rl)) > rlsize) { in ntfs_mapping_pairs_decompress_i()
849 rl[rlpos].vcn = vcn; in ntfs_mapping_pairs_decompress_i()
880 rl[rlpos].length = deltaxcn; in ntfs_mapping_pairs_decompress_i()
889 rl[rlpos].lcn = (LCN)LCN_HOLE; in ntfs_mapping_pairs_decompress_i()
922 if ((lcn != (LCN)-1) && !rl[rlpos].length) { in ntfs_mapping_pairs_decompress_i()
928 rl[rlpos].lcn = lcn; in ntfs_mapping_pairs_decompress_i()
931 if (rl[rlpos].length) in ntfs_mapping_pairs_decompress_i()
[all …]
/third_party/ntfs-3g/ntfsprogs/
Dmkntfs.c1075 int rlpos = 0; in allocate_scattered_clusters() local
1092 if ((rlpos + 2) * (int)sizeof(runlist) >= rlsize) { in allocate_scattered_clusters()
1101 rl[rlpos - 1].length = ++prev_run_len; in allocate_scattered_clusters()
1104 rl[rlpos].vcn = vcn++; in allocate_scattered_clusters()
1105 rl[rlpos].lcn = lcn; in allocate_scattered_clusters()
1107 rl[rlpos].length = 1LL; in allocate_scattered_clusters()
1109 rlpos++; in allocate_scattered_clusters()
1114 rl[rlpos].vcn = vcn; in allocate_scattered_clusters()
1115 rl[rlpos].lcn = 0LL; in allocate_scattered_clusters()
1116 rl[rlpos].length = 0LL; in allocate_scattered_clusters()
[all …]