diff --git a/libntfs/attrib.c b/libntfs/attrib.c index a1fe954..c628d9d 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -550,8 +550,10 @@ int ntfs_attr_map_runlist_range(ntfs_attr *na, VCN from_vcn, VCN to_vcn) (long long)from_vcn, (long long)to_vcn); /* Map extent with @from_vcn. */ - if (ntfs_attr_map_runlist(na, from_vcn)) - goto err_out; + if (ntfs_attr_map_runlist(na, from_vcn)) { + if (errno != ERANGE) + goto err_out; + } for (rl = na->rl; rl->vcn <= to_vcn;) { /* Skip not interesting to us runs. */ @@ -4924,8 +4926,10 @@ static int ntfs_non_resident_attr_expand(ntfs_attr *na, const s64 newsize, /* Map required part of runlist. */ if (ntfs_attr_map_runlist(na, na->allocated_size >> vol->cluster_size_bits)) { - ntfs_log_error("Failed to map runlist.\n"); - return -1; + if (errno != ERANGE) { + ntfs_log_error("Failed to map runlist.\n"); + return -1; + } } /*