Page MenuHomeFreeBSD

growfs: allow operation on RW-mounted filesystems
ClosedPublic

Authored by emaste on Mar 2 2021, 10:43 PM.
Tags
None
Referenced Files
F125193231: D29021.diff
Mon, Aug 4, 3:38 PM
Unknown Object (File)
Sat, Jul 19, 5:47 PM
Unknown Object (File)
Sat, Jul 12, 2:54 PM
Unknown Object (File)
Tue, Jul 8, 11:17 AM
Unknown Object (File)
Sun, Jul 6, 9:57 AM
Unknown Object (File)
Jul 4 2025, 4:58 PM
Unknown Object (File)
Jun 29 2025, 3:01 PM
Unknown Object (File)
Jun 27 2025, 2:31 AM

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

Lint
Lint Skipped
Unit
Tests Skipped