[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BUG: ezjail-admin restart & zfs dataset attachment

I added a quick line of debugging output just above the "zfs jail" line in ezjail.sh (it's the only time that string appears in the file) and verified that what I thought I was seeing was what I was actually seeing.

So here's the deal. (ezjail-admin stop && ezjail-admin start) != (ezjail-admin restart). If you do the former, the dataset will be detached from the jail, and then attached to the new jail ID. If you do the latter, the dataset might be detached from the old jail, but it's not reattached to the new jail -- which can cause some undesirable effects in the newly-restarted jail.

At the very least, this problem could be hacked around by having ezjail-admin restart invoke the stop, then the start method.

I apologize for not having a patch to contribute.

-Jesse Kempf

The information contained in this communication is intended
only for the use of the recipient(s) named above. It may
contain information that is privileged or confidential, and
may be protected by State and/or Federal Regulations. If
the reader of this message is not the intended recipient,
you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of
its contents, is strictly prohibited. If you have received
this communication in error, please return it to the sender
immediately and delete the original message and any copy
of it from your computer system. If you have any questions
concerning this message, please contact the sender.