Monthly Archive for June, 2006

clsung: [patch][jail] fstat according to specified jid

I’ve made top with jail id support. I start to think adding similar functions to other programs.

fstat is the victim. I decide to let fstat can accept jid and then display active files according to the specified jid.

Here comes the patch.

To apply this patch, you must rebuild your kernel.

% cd /usr/src; patch < patch_fstat_jid
% make kernel
...reboot with new kernel
% cd /usr/src/lib/libkvm; make clean install clean
% cd /usr/src/usr.bin/fstat; make clean install clean
... to make other program sync
% cp -f /usr/src/sys/sys/sysctl.h /usr/include/sys/

If you see any error appear, please inform me :)

How to use?

% fstat -j

NOTE, this patch will be send-pr-ed sooner or later. But I need your test first. :)

UPDATE 2006/06/12: Thanks to Roberto Lima for ‘cp -f /usr/src/sys/sys/sysctl.h /usr/include/sys/’ :)
UPDATE 2006/06/30: pr is here.

clsung: [patch][jail] display jid in top

Daniel Gerzo asked if top can have a column to display jid last week. So I spend my lovely weekend *wink* to do the job.

Here is the patch. How to apply?

% cd /usr/src
% patch < patch_top_jid2
% cd /usr/src/usr.bin/top; make clean install clean

Then try either
% top -j
or toggle with ‘j’ when you’re using top.

NOTE: since this patch is not committed (yet), there is no documentation describe about that. :)

clsung: [Hands UP!!] Rename several of GNOME ports

Just as what ports/97985 said, serveral gnome-related ports renamed. How it caught my attention is the renaming from pkgconfig to pkg-config, since my tinderbox reported lots of error. But fine, now I solve it (by simply rebuild them all).

A question arised. Why these changes didn’t mention in ports/UPDATING?