Home
last modified time | relevance | path

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

/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A 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 …]
H A 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 …]
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dmkntfs.c774 int rlpos = 0; in allocate_scattered_clusters() local
791 if ((rlpos + 2) * (int)sizeof(runlist) >= rlsize) { in allocate_scattered_clusters()
800 rl[rlpos - 1].length = ++prev_run_len; in allocate_scattered_clusters()
803 rl[rlpos].vcn = vcn++; in allocate_scattered_clusters()
804 rl[rlpos].lcn = lcn; in allocate_scattered_clusters()
806 rl[rlpos].length = 1LL; in allocate_scattered_clusters()
808 rlpos++; in allocate_scattered_clusters()
813 rl[rlpos].vcn = vcn; in allocate_scattered_clusters()
814 rl[rlpos].lcn = 0LL; in allocate_scattered_clusters()
815 rl[rlpos].length = 0LL; in allocate_scattered_clusters()
[all …]