]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
reflink: fix off-by-one errors when iterating file blocks in a loop
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 7 Feb 2016 22:27:15 +0000 (09:27 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 7 Feb 2016 22:27:15 +0000 (09:27 +1100)
commita3d855e424cd55b8f770e7ec4b46d362aa54290a
treedb8a9a0e339067b655265466d7cb9ae9a0000adf
parent589d17dbfa6b5aa83abc9c3b14b61ed366a75417
reflink: fix off-by-one errors when iterating file blocks in a loop

When we're iterating file blocks in a loop (via seq), we have to
end at $nr-1, not $nr.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/183
tests/generic/185
tests/generic/186
tests/generic/187
tests/generic/194
tests/generic/195
tests/xfs/129
tests/xfs/140