[Bug 196152] jail_list is not reversed when stopping jails
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Mar 16 16:04:03 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196152
Mark Felder <feld at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |feld at FreeBSD.org
--- Comment #1 from Mark Felder <feld at 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.
More information about the freebsd-jail
mailing list