Up to [cvs.NetBSD.org] / src / tests / sbin / resize_ffs
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.8.24.1 / (download) - annotate - [select for diffs], Thu Aug 6 21:13:44 2015 UTC (5 years, 7 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Changes since 1.8: +3 -1
lines
Diff to previous 1.8 (colored) next main 1.9 (colored)
Pull up following revision(s) (requested by skrll in ticket #909): distrib/sets/lists/etc/mi: revision 1.237 distrib/sets/lists/tests/mi: revision 1.613 distrib/utils/embedded/conf/armv7.conf: revisions 1.1, 1.2 distrib/utils/embedded/conf/beagleboard.conf: delete distrib/utils/embedded/conf/evbarm.conf: revisions 1.21, 1.22 distrib/utils/embedded/conf/rpi.conf: revisions 1.28, 1.29 distrib/utils/embedded/conf/rpi_inst.conf: revisions 1.7, 1.8 distrib/utils/embedded/conf/usermode.conf: revision 1.5 distrib/utils/embedded/conf/x86.conf: revision 1.5 distrib/utils/embedded/files/resize_disklabel: revision 1.1 distrib/utils/embedded/mkimage: revisions 1.49, 1.55-1.59 etc/defaults/rc.conf: revision 1.133 etc/etc.evbarm/Makefile.inc: revisions 1.72, 1.76 etc/rc.d/Makefile: revision 1.93 via patch etc/rc.d/resize_root: revisions 1.1-1.3 etc/rc.d/root: revision 1.5 sbin/resize_ffs/Makefile: revision 1.5 sbin/resize_ffs/resize_ffs.8: revisions 1.14-1.16 sbin/resize_ffs/resize_ffs.c: revisions 1.39-1.44 share/man/man5/rc.conf.5: revision 1.158, 1.159 tests/sbin/resize_ffs/Makefile: revision 1.4 tests/sbin/resize_ffs/common.sh: revision 1.14 tests/sbin/resize_ffs/t_check.sh: revision 1.1 tests/sbin/resize_ffs/t_grow.sh: revision 1.9 tests/sbin/resize_ffs/t_grow_swapped.sh: revision 1.3 tests/sbin/resize_ffs/t_shrink.sh: revision 1.8 tests/sbin/resize_ffs/t_shrink_swapped.sh: revision 1.2 fix image building: - round up the total size of the disk image - fix fdisk offset for netbsd ffs images -- Make get_dev_size work on regular files too. -- Use `!= -1' instead of `== 0' out of paranoia. -- - Add -c to check to see if grow/shrink is required - Divide by DEV_BSIZE when returning size of file. - Update manpage -- New sentence, new line. Sort option descriptions. -- Add resize_root boot operation. If resize_root=YES in rc.conf then the system attempts to resize the root file system to fill it's partition prior to mounting read-write. Useful for things like AMI file system images. May eventually be used by arm images after coming up with similar solution for increasing the parition size. -- - Add new tests for -c check flag in resize_ffs -- Bump date for previous. it's -> its -- Handle case in grow() where last cylinder group is too small for ufs2. Align with code in shrink(). -- factor out geometry calculation and use this also in CheckOnly mode. be a bit more verbose in Verbose mode. -- Add support for auto-growing the root partition. Enable it for rpi.img. -- initialize resize before pulling in board config -- add KEYWORD: interactive, honour resize_root_flags and resize_root_postcmd rc vars -- if the -p flag is specified, display a progress bar while growing the file-system -- show resize_ffs progress bar when resizing root partition -- fix typo in previous; pass -y unconditionally to resize_ffs, not -p -- Rename beagleboard.img to armv7.img. The new image includes the same kernels as beagleboard.img plus support for Raspberry Pi 2, ODROID-C1, Cubieboard2, Cubietruck, Hummingbird A31, and Banana Pi. -- Properly spell X' name. From X(7): The X.Org Foundation requests that the following names be used when referring to this software: X X Window System X Version 11 X Window System, Version 11 X11 -- Add some documentation: Tell what this does, and what it expects from conf files -- Cleanup: make_filesystems is not used any longer, purge remains -- More cleanup: Instead of first overwriting the *_evbarm functions with own code, and then calling them from the regular functions, directly put the code into the regular functions. No more functions from evbarm.conf are used now. Some variables are still used! -- define TOOL_MKUBOOTIMAGE for mkimage -- fix mkubootimage
Revision 1.9 / (download) - annotate - [select for diffs], Sun Mar 29 19:37:02 2015 UTC (5 years, 11 months ago) by chopps
Branch: MAIN
CVS Tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
is-mlppp-base,
is-mlppp,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
HEAD
Changes since 1.8: +3 -1
lines
Diff to previous 1.8 (colored)
- Add new tests for -c check flag in resize_ffs
Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 11 00:50:02 2011 UTC (10 years, 1 month ago) by riz
Branch: MAIN
CVS Tags: yamt-pagecache-tag8,
yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-pagecache,
tls-maxphys-base,
tls-maxphys,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-7-base,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2,
agc-symver-base,
agc-symver
Branch point for: netbsd-7
Changes since 1.7: +5 -5
lines
Diff to previous 1.7 (colored)
Copy a little less data in the ufs2, 4096-byte block test cases. The file system was filling up instead of *almost* filling up, which threw off the tests.
Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 5 02:25:27 2011 UTC (10 years, 2 months ago) by riz
Branch: MAIN
Changes since 1.6: +110 -15
lines
Diff to previous 1.6 (colored)
Update resize_ffs tests for byteswapped file system support, and for UFS2 growth support. Also, reduce the number of tests run by default while still maintaining decent coverage of features and block sizes. Anyone working on resize_Ffs should run the tests with RESIZE_FFS_ALL_TESTS set in the environment, which adds a lot more testing.
Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 16 17:50:13 2010 UTC (10 years, 2 months ago) by riz
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.5: +2 -2
lines
Diff to previous 1.5 (colored)
Reduce the number of tests run automatically, as they apparently go quite slowly when run under qemu. Also, change the switch variable from "RESIZE_FFS_BIG_TESTS" to "RESIZE_FFS_ALL_TESTS", and only check if it's set or not.
Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 16 17:16:07 2010 UTC (10 years, 2 months ago) by riz
Branch: MAIN
Changes since 1.4: +34 -74
lines
Diff to previous 1.4 (colored)
Factor out more common code. No functional changes intended.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 12 22:50:42 2010 UTC (10 years, 2 months ago) by riz
Branch: MAIN
Changes since 1.3: +3 -3
lines
Diff to previous 1.3 (colored)
PR bin/44209 is now fixed, expect failure -> expect success.
Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 11 11:31:27 2010 UTC (10 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.2: +6 -6
lines
Diff to previous 1.2 (colored)
Can't use dynamic data in cleanup (it's run in a different process), so get rid of $MNTPT and use the constant value the variable was set to.
Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 9 17:28:05 2010 UTC (10 years, 2 months ago) by riz
Branch: MAIN
Changes since 1.1: +10 -2
lines
Diff to previous 1.1 (colored)
Wrap the bigger tests in RESIZE_FFS_BIG_TESTS, as the automated test run seems to choke over a certain size. (This will speed up the runs as well)
Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 9 05:19:02 2010 UTC (10 years, 2 months ago) by riz
Branch: MAIN
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.