Page MenuHomeFreeBSD

growfs: allow operation on RW-mounted filesystems
ClosedPublic

Authored by emaste on Mar 2 2021, 10:43 PM.
Tags
None
Referenced Files
F173973518: D29021.id85094.diff
Tue, Sep 29, 5:50 PM
F173958385: D29021.diff
Tue, Sep 29, 3:47 PM
Unknown Object (File)
Thu, Sep 24, 9:48 PM
Unknown Object (File)
Thu, Sep 24, 7:59 AM
Unknown Object (File)
Thu, Sep 24, 5:56 AM
Unknown Object (File)
Tue, Sep 22, 10:09 PM
Unknown Object (File)
Thu, Sep 17, 7:55 AM
Unknown Object (File)
Mon, Sep 14, 7:53 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