]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Mon, 30 Apr 2012 16:08:02 +0000 (16:08 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Mon, 30 Apr 2012 16:08:02 +0000 (16:08 +0000)
commite35497f13b3b6cf3430f91aaaf3bfedf4eb85a0f
tree8dca1894dca34468ac08f338fa5045dac9f0f999
parentf62651920d526d8ef7a8ea66487e5bd1814a7a6f
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
sbin/growfs/Makefile
sbin/growfs/growfs.8
sbin/growfs/growfs.c