Page MenuHomeFreeBSD

growfs: allow operation on RW-mounted filesystems
ClosedPublic

Authored by emaste on Mar 2 2021, 10:43 PM.
Tags
None
Referenced Files
F161186575: D29021.diff
Wed, Jul 1, 9:55 AM
Unknown Object (File)
Mon, Jun 29, 8:01 AM
Unknown Object (File)
Fri, Jun 26, 6:39 PM
Unknown Object (File)
Sun, Jun 21, 3:39 PM
Unknown Object (File)
Fri, Jun 19, 7:18 PM
Unknown Object (File)
Thu, Jun 18, 9:18 PM
Unknown Object (File)
May 20 2026, 6:03 PM
Unknown Object (File)
May 17 2026, 1:59 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