Page MenuHomeFreeBSD

growfs: allow operation on RW-mounted filesystems
ClosedPublic

Authored by emaste on Mar 2 2021, 10:43 PM.
Tags
None
Referenced Files
F113874126: D29021.id85094.diff
Fri, Apr 4, 10:40 PM
Unknown Object (File)
Sun, Mar 23, 7:18 PM
Unknown Object (File)
Mar 2 2025, 1:25 AM
Unknown Object (File)
Feb 24 2025, 10:31 PM
Unknown Object (File)
Feb 24 2025, 9:20 PM
Unknown Object (File)
Feb 24 2025, 10:47 AM
Unknown Object (File)
Feb 23 2025, 8:25 PM
Unknown Object (File)
Feb 5 2025, 2:00 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