Date: Mon, 16 Mar 2015 16:04:02 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 196152] jail_list is not reversed when stopping jails Message-ID: <bug-196152-9824-gdS8tvXOEi@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-196152-9824@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196152 Mark Felder <feld@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |feld@FreeBSD.org --- Comment #1 from Mark Felder <feld@FreeBSD.org> --- Created attachment 154424 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154424&action=edit reverse jail list This seems fairly simple. It looks like etc/rc.d/jail stop routine works on $@ derived from ${jail_list}, which is _ALL by default: ${jail_list:-_ALL} It returns after shutting down all the jails if _ALL was provided, otherwise works on the ${jail_list} in a for loop. This simple patch creates a reverse list of the items in ${jail_list} and uses that for shutdown instead. I haven't tested, but it looks like it would work just fine. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196152-9824-gdS8tvXOEi>
