Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Dec 2022 21:22:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 267628] growfs deadlocks if output is redirected to the filesystem being grown
Message-ID:  <bug-267628-3630-mF5Vteur5q@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267628-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-267628-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267628

--- Comment #5 from cgull@glup.org ---
I have some WIP addressing this and adding enhancements, which I'd not fini=
shed
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 appr=
oach
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267628-3630-mF5Vteur5q>