Re: sockstat & jid patch

看板FB_current作者時間13年前 (2012/06/03 18:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
On Wed, May 16, 2012 at 03:12:50PM +1200, Andrew Thompson wrote: > Hi, > > > Here is a quick patch to limit the sockstat output to a specific jail > id, this is useful to verify which sockets a jail has open. A jid of 0 > will show the host system. > > This will result in an extra syscall per socket when -j is set but I > do not think warrants a process cache. > > Any objections? I think you should extend struct xsocket with jid. Unfortunately this breaks ABI so MFC is not possible. That being said, IMHO this patch can be committed to -STABLE if this feature is that important, but -CURRENT should get implementation mentioned earlier. I can try to write a patch in a couple of days (or this evening if I find the time). -- Mateusz Guzik <mjguzik gmail.com> _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1FopqiEh (FB_current)
文章代碼(AID): #1FopqiEh (FB_current)