Source-Changes archive

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

CVS commit: src/tests/sbin/resize_ffs



Module Name:    src
Committed By:   riz
Date:           Thu Dec  9 05:19:02 UTC 2010

Modified Files:
        src/tests/sbin/resize_ffs: Makefile
Added Files:
        src/tests/sbin/resize_ffs: common.sh t_grow.sh t_shrink.sh testdata.md5
            testdata.tar.gz.base64
Removed Files:
        src/tests/sbin/resize_ffs: t_resize_ffs.sh

Log Message:
Re-work the resize_ffs(8) tests:

Put real data into file systems before resizing:  the test data
was randomly generated and is in pairs of files each a power-of-two and
power-of-two plus one bytes to hopefully catch block and frag issues.

Each test fills (nearly) the file system with test data.  If shrinking,
it removes enough data so that the shrunken file system will be large enough
to accomodate the data.  (It's done this way to hopefully ensure some or
most of the data will need to be moved when shrinking).  The files are
then checked with MD5 against the known list.  This particular method
was chosen to reduce the amount of data checked in while still retaining
reproducibility.

There are more tests to come;  since resize_ffs(8) currently does not
support ffsv2 or byteswapped file systems, only a couple token expected-fail
test cases for those were added.  Also, only 8:1 blocksize:fragsize
combinations are currently tested.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/sbin/resize_ffs/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/sbin/resize_ffs/common.sh \
    src/tests/sbin/resize_ffs/t_grow.sh src/tests/sbin/resize_ffs/t_shrink.sh \
    src/tests/sbin/resize_ffs/testdata.md5 \
    src/tests/sbin/resize_ffs/testdata.tar.gz.base64
cvs rdiff -u -r1.4 -r0 src/tests/sbin/resize_ffs/t_resize_ffs.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index