Le 16/04/2020 à 16:22, Eugene Grosbein a écrit :

>> But,how was "jail -e" intending to be used, actually ?
>
> "jail -e" mode is used by periodic/weekly/340.noid script to differentiate parts of mounted file trees > belonging to the host and to the configured full-blown jails, no matter started or not.
>
> This is documentation ambiguity as "jail -e" was not intended to take jail name as additional argument.

Oh, I had a deeper look at the "-e" section of the man page where this statement is clear enough.Thanks.

> Do you have any real use case this addition?

No, not a case in the real world. I was just playing around with jails on a server and tried to get the ip4 field of a specific one to make sure it was set to 'inherit'.



P.-S.:

However, I had time to write a short patch (attached to the email) to make it work with a jail list as arguments.
( and that do not change the header file anymore )

This one also add a dedicated line for the "-e" command and fix few typos in the usage() output.

// To improve the lookup in the nested loop, I first called "TAILQ REMOVE" on jailnames when found but this would produce errors if the user add more than once the same name in the list .//



Regards,

--
David Marec
https://diablotins.lapinbilly.eu/doku.php?id=jails:zfs
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to