]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
growfs: allow operation on RW-mounted filesystems
authorEd Maste <emaste@FreeBSD.org>
Tue, 2 Mar 2021 22:35:48 +0000 (17:35 -0500)
committerEd Maste <emaste@FreeBSD.org>
Sat, 6 Mar 2021 19:46:31 +0000 (14:46 -0500)
commit8d25741b633af6652fe8bfff1cb157a31e66cc60
treeb49db4b2c74ce1e502f0ec5da55a48386b7389b6
parentbafab32168c82f979151c912f2c61b100a64b7c8
growfs: allow operation on RW-mounted filesystems

growfs supports growing mounted filesystems (writes are temporarily
suspended while the grow happens).  Drop the check for fs_clean == 0
to restore this case.  Leave fs_flags check for FS_UNCLEAN or
FS_NEEDSFSCK which represent the state of the filesystem when it was
mounted, and fsck should be run first if they are set.

PR: 253754
Reviewed by: mckusick
Approved by: re (gjb)
Fixes: 6eb925f8450f ("Filesystem utilities that modify the...")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29021

(cherry picked from commit 0dcde5cc12744e5188300711a8829e5e6a9cd0de)
(cherry picked from commit b5920128c7ebcf5060605928263a54b31b317993)
sbin/growfs/growfs.c