deltaxcn will only go as high as (max_cluster-1) so the comparisons below were off by one

(Logical change 1.485)
edge.strict_endians
flatcap.org!ntfs 2004-08-10 10:45:07 +00:00
parent 6646895a63
commit 1be6deedaf
1 changed files with 2 additions and 2 deletions

View File

@ -888,9 +888,9 @@ mpa_err:
if (!attr->lowest_vcn) {
VCN max_cluster;
max_cluster = (sle64_to_cpu(attr->allocated_size) +
max_cluster = ((sle64_to_cpu(attr->allocated_size) +
vol->cluster_size - 1) >>
vol->cluster_size_bits;
vol->cluster_size_bits) - 1;
/*
* A highest_vcn of zero means this is a single extent
* attribute so simply terminate the runlist with LCN_ENOENT).