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)
Wed, Sep 2, 6:42 PM
Unknown Object (File)
Fri, Aug 28, 8:01 PM
Unknown Object (File)
Mon, Aug 24, 5:21 AM
Unknown Object (File)
Sun, Aug 9, 3:05 PM
Unknown Object (File)
Sun, Aug 9, 2:35 PM
Unknown Object (File)
Thu, Aug 6, 1:35 PM
Unknown Object (File)
Thu, Aug 6, 1:35 PM
Unknown Object (File)
Thu, Aug 6, 1:35 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