Page MenuHomeFreeBSD

growfs: allow operation on RW-mounted filesystems
ClosedPublic

Authored by emaste on Mar 2 2021, 10:43 PM.
Tags
None
Referenced Files
F153452503: D29021.diff
Tue, Apr 21, 6:23 AM
Unknown Object (File)
Mon, Apr 20, 3:08 AM
Unknown Object (File)
Sat, Apr 18, 8:21 AM
Unknown Object (File)
Wed, Apr 15, 8:30 AM
Unknown Object (File)
Sun, Apr 5, 2:39 AM
Unknown Object (File)
Fri, Apr 3, 8:34 PM
Unknown Object (File)
Wed, Apr 1, 3:22 AM
Unknown Object (File)
Wed, Mar 25, 5:49 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