[Bug 267628] growfs deadlocks if output is redirected to the filesystem being grown

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 29 Dec 2022 21:22:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267628

--- Comment #5 from cgull@glup.org ---
I have some WIP addressing this and adding enhancements, which I'd not finished
testing before the holidays.

It may be a bit late now, but my fix to growfs is to check stdout/stderr for
mountpoints in growfs.c instead.  That's less general, but growfs() and
/sbin/growfs aren't very general-purpose to begin with.  I think kib's approach
is fine, though.

I have some other minor changes to growfs to avoid writing to stdout/stderr
unnecessarily, and I also implemented my proposed enhancements to growfs.c,
growfs() syscall, and /dev/ufssuspend to write new cylinder groups before
rewriting the last existing cylinder group.

I'll finish testing these and make them available for review soon.

-- 
You are receiving this mail because:
You are the assignee for the bug.