Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/sbin/resize_ffs Restore data integrity verification in...



details:   https://anonhg.NetBSD.org/src/rev/a006b6ca1bde
branches:  trunk
changeset: 760467:a006b6ca1bde
user:      riz <riz%NetBSD.org@localhost>
date:      Wed Jan 05 18:05:32 2011 +0000

description:
Restore data integrity verification in the grow case which was
inadvertantly removed when refactoring occurred in a prior
revision.

diffstat:

 tests/sbin/resize_ffs/common.sh |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r aa535b981f6e -r a006b6ca1bde tests/sbin/resize_ffs/common.sh
--- a/tests/sbin/resize_ffs/common.sh   Wed Jan 05 17:20:15 2011 +0000
+++ b/tests/sbin/resize_ffs/common.sh   Wed Jan 05 18:05:32 2011 +0000
@@ -146,8 +146,10 @@
        atf_check -s exit:0 -o ignore fsck_ffs -f -n -F ${IMG}
        atf_check -s exit:0 -e ignore rump_ffs ${IMG} mnt
        if [ ${nsize} -lt ${osize} ]; then
+           check_data_range $((remove + 1)) ${numdata}
+       else
            # checking everything because we don't delete on grow
-           check_data_range $((remove + 1)) ${numdata}
+           check_data_range 1 ${numdata}
        fi
        umount mnt
 }



Home | Main Index | Thread Index | Old Index