Page MenuHomeFreeBSD

growfs: allow operation on RW-mounted filesystems
ClosedPublic

Authored by emaste on Mar 2 2021, 10:43 PM.
Tags
None
Referenced Files
F133107501: D29021.id85004.diff
Thu, Oct 23, 1:12 AM
Unknown Object (File)
Sun, Oct 19, 11:54 AM
Unknown Object (File)
Mon, Oct 13, 5:05 PM
Unknown Object (File)
Mon, Oct 13, 5:05 PM
Unknown Object (File)
Mon, Oct 13, 5:04 PM
Unknown Object (File)
Mon, Oct 13, 3:51 AM
Unknown Object (File)
Sep 20 2025, 4:02 PM
Unknown Object (File)
Sep 20 2025, 3:56 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