Page MenuHomeFreeBSD

growfs: allow operation on RW-mounted filesystems
ClosedPublic

Authored by emaste on Mar 2 2021, 10:43 PM.
Tags
None
Referenced Files
F149554874: D29021.diff
Wed, Mar 25, 5:49 AM
Unknown Object (File)
Sun, Mar 22, 11:46 AM
Unknown Object (File)
Sat, Mar 21, 11:44 PM
Unknown Object (File)
Thu, Mar 19, 8:35 AM
Unknown Object (File)
Thu, Mar 19, 8:35 AM
Unknown Object (File)
Tue, Mar 17, 4:57 AM
Unknown Object (File)
Sat, Mar 7, 5:43 AM
Unknown Object (File)
Fri, Mar 6, 11:14 PM

Details

Summary

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
Fixes: 6eb925f8450f ("Filesystem utilities that modify the...")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable