Displaying jail's info only by using jail_get()

Marin Atanasov Nikolov dnaeon at gmail.com
Sun Dec 30 10:15:01 UTC 2012


Hello,

I'd like to display info about the currently running jails on my system by
using jail_get().

The code of the program can be found here:

* https://gist.github.com/4411851

Everything works, except for cases when a jail has multiple IP addresses
assigned to it. In that case the JID is never returned by jail_get(), thus
I cannot get any info about it.

Know what I'm missing here?

Thanks and regards,
Marin

-- 
Marin Atanasov Nikolov

dnaeon AT gmail DOT com
http://www.unix-heaven.org/


More information about the freebsd-hackers mailing list