Page MenuHomeFreeBSD

growfs: allow operation on RW-mounted filesystems
ClosedPublic

Authored by emaste on Mar 2 2021, 10:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 1, 6:19 PM
Unknown Object (File)
Sat, Feb 28, 3:59 PM
Unknown Object (File)
Sat, Feb 28, 1:30 PM
Unknown Object (File)
Sat, Feb 28, 1:23 PM
Unknown Object (File)
Sat, Feb 28, 3:21 AM
Unknown Object (File)
Sun, Feb 22, 7:13 AM
Unknown Object (File)
Jan 3 2026, 2:11 PM
Unknown Object (File)
Dec 30 2025, 3:26 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

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