The NetBSD Project

CVS log for src/tests/sbin/resize_ffs/

[BACK] Up to [] / src / tests / sbin / resize_ffs

Request diff between arbitrary revisions

Default branch: MAIN

Revision / (download) - annotate - [select for diffs], Wed Apr 8 14:09:13 2020 UTC (10 months, 3 weeks ago) by martin
Branch: phil-wifi
Changes since 1.15: +7 -1 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Merge changes from current as of 20200406

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 15 11:17:59 2020 UTC (11 months, 3 weeks ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, HEAD
Changes since 1.16: +6 -0 lines
Diff to previous 1.16 (colored)

Skip tests where the old or the new image size seem to not fit into
the working directory.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 12 18:08:54 2020 UTC (11 months, 3 weeks ago) by martin
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

Fix typo

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 8 21:12:27 2017 UTC (3 years, 4 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, 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, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Branch point for: phil-wifi
Changes since 1.14: +11 -1 lines
Diff to previous 1.14 (colored)

Make most of the resize_ffs tests skip if PUFFS is not configured
in the kernel.   (nb: for this purpose, a module that is configured
to autoload counts as configured in the kernel...)

Revision / (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.13: +4 -0 lines
Diff to previous 1.13 (colored) next main 1.14 (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/ 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/ revision 1.14
	tests/sbin/resize_ffs/ revision 1.1
	tests/sbin/resize_ffs/ revision 1.9
	tests/sbin/resize_ffs/ revision 1.3
	tests/sbin/resize_ffs/ revision 1.8
	tests/sbin/resize_ffs/ 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
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 Window System
                                     X Version 11
                              X Window System, Version 11
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.14 / (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, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.13: +4 -0 lines
Diff to previous 1.13 (colored)

- Add new tests for -c check flag in resize_ffs

Revision / (download) - annotate - [select for diffs], Thu May 22 11:42:23 2014 UTC (6 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.12: +1 -0 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision / (download) - annotate - [select for diffs], Mon Feb 25 00:30:24 2013 UTC (8 years ago) by tls
Branch: tls-maxphys
Changes since 1.12: +1 -0 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

resync with head

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 19 21:08:25 2013 UTC (8 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, 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, agc-symver-base, agc-symver
Branch point for: netbsd-7
Changes since 1.12: +1 -0 lines
Diff to previous 1.12 (colored)

Check for RUMP programs before using them.

Revision 1.12 / (download) - annotate - [select for diffs], Tue May 17 22:01:41 2011 UTC (9 years, 9 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.11: +3 -0 lines
Diff to previous 1.11 (colored)

Add require root user to test_case_xfail. Avoids reporting expected
failure for the wrong reason with unprivileged runs (puffs access

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 4 17:56:53 2011 UTC (10 years ago) by riz
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.10: +12 -31 lines
Diff to previous 1.10 (colored)

Back out previous;  it's causing intermittent problems which I don't
fully understand yet.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 3 16:25:15 2011 UTC (10 years ago) by riz
Branch: MAIN
Changes since 1.9: +31 -12 lines
Diff to previous 1.9 (colored)

Switch from using "rump_ffs" to mount the file system image to
using a rump_server to mount it in a rump kernel, and
to enable accessing it from the test program.  Among other things,
this allows the tests to run as an unprivileged user.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 5 18:13:54 2011 UTC (10 years, 2 months ago) by riz
Branch: MAIN
CVS Tags: bouyer-quota2-base, bouyer-quota2
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Replace uses of 'jot' with 'seq'.  This is primarily to work around
a qemu-running-on-netbsd problem with FP which causes 'jot' to output
incorrect sequences, which were causing failures on one of the auto-testing
platforms.  While 'seq' also uses FP, it does not seem to be affected in
this particular usage

As a bonus, however, 'seq' is actually a better fit (the commandline is
more intuitive) for the way it is used in these tests.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 5 18:05:32 2011 UTC (10 years, 2 months ago) by riz
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 5 03:04:13 2011 UTC (10 years, 2 months ago) by riz
Branch: MAIN
Changes since 1.6: +3 -0 lines
Diff to previous 1.6 (colored)

All of the generated tests require root, for rump_ffs.  Spotted by

Revision 1.6 / (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.5: +2 -3 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Thu Dec 16 17:16:07 2010 UTC (10 years, 2 months ago) by riz
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.4: +53 -0 lines
Diff to previous 1.4 (colored)

Factor out more common code.  No functional changes intended.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 11 11:36:48 2010 UTC (10 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.3: +2 -0 lines
Diff to previous 1.3 (colored)

Reset error from umount.  This squelches atf "cleanup should not
fail" warning if a test fails when the fs is not mounted.

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: +5 -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 16:59:35 2010 UTC (10 years, 2 months ago) by riz
Branch: MAIN
Changes since 1.1: +0 -24 lines
Diff to previous 1.1 (colored)

Remove accidentally-committed debug-assist code.

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

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>