Date: Fri, 11 Mar 2011 23:41:27 -0800 From: Julian Elischer <julian@freebsd.org> To: Subbsd <subbsd@gmail.com> Cc: freebsd-hackers@freebsd.org, freebsd-virtualization@freebsd.org Subject: Re: userland utilites for specific version use the current kernel API Message-ID: <4D7B23A7.5040708@freebsd.org> In-Reply-To: <AANLkTinE8ZpfNPozuH_PFn1-_ZSk8t9XoDDVpFK9bpqc@mail.gmail.com> References: <AANLkTinE8ZpfNPozuH_PFn1-_ZSk8t9XoDDVpFK9bpqc@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/10/11 9:13 PM, Subbsd wrote: > Hi. > > i have a server with FreeBSD-current (9) kernel and core system that > runs a dozen JAIL-s - some of them is FreeBSD 8x environment , and > part is surrounded on FreeBSD 7x. > My question - despite on COMPAT_FREEBSD{4-7} in the kernel, utilities > do not use those structures in the nucleus, which belong to their > release. For example, the utility in > jail shows: > > sockstat: struct xtcpcb size mismatch > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS > > The COMPAT_FREEBSD is not transparent for utilites? is it possible to > have the newer kernel with the minimum of the system, but have JAIL > with earlier versions of FreeBSD environments, where it will work > sockstat (and perhaps some others)? Thanks > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > yes there is a small set of system utilities for which this is true. the answer is generally to compile up some staticly linked versions of those tools and supply them in the jail as replacements for the standard ones. a very quick way to do this is to use the ones in /rescue. (note they are all the same binary, don't make multiple copies..)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D7B23A7.5040708>