]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r234846:
authortrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 23 Jun 2012 19:15:12 +0000 (19:15 +0000)
committertrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 23 Jun 2012 19:15:12 +0000 (19:15 +0000)
commitb9f666a80c63a6546250644239dc347d364ee512
tree95662edea494d8fc4ba781675f1e1fb5741a2d1c
parentf113c36f2f8454a0284fbe3f3b8f8550f3e00a9e
MFC r234846:

Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle
them and commit separately.

1. Rewrite the way growfs(8) finds the device and mount point.  This makes
   it possible to use e.g. "growfs /mnt"; it's also used to display more
   helpful messages.

2. Be more user-friendly, using descriptive messages, like this:

   OK to grow filesystem on /dev/md0, mounted on /mnt, from 9.8GB to 20GB? [Yes/No]"

3. Allow to specify the size (-s option) just like with mdconfig(8), i.e. with
   postfixes ("mdconfig -s 10g").4. Reload read-only filesystem after growing.

Reviewed by:    kib, mckusick (earlier version)
Sponsored by:   The FreeBSD Foundation

MFC r235079:

Fix offset calculation to actually rewrite the _last_ block.

git-svn-id: svn://svn.freebsd.org/base/stable/9@237501 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/growfs/Makefile
sbin/growfs/growfs.8
sbin/growfs/growfs.c