* Rusty Ballinger (rusty@xxxxxxxxxxxxxxxxxx) wrote:
> Thanks, I'll put this in the download area & update the "news" page. A few
> questions, though:
>
> - I'd like to add a bit at the top about the exact patch command to run.
> Just to make sure, "cd fam-oss-2.6.4 ; patch -p 1 < this_patch" works
> on FreeBSD?
I use just patch -p0 < fam-oss-2.6.4.patch.
> - Actually, I'd prefer to integrate the patch into fam so that people don't
> have to do that on FreeBSD, but the legal requirements in mntent_compat.c
> make me nervous. There's no unencumbered or GPL version available? If
> getmntent() just parses /etc/mtab or whatever & stuffs its entries into
> structs, could a version be copied from glibc/linux/wherever?
I'm not sure but I think, in a source distribution, simply retaining the header
is sufficient to satisfy the BSD license.
> - This patch doesn't appear to use FMON. (Is that correct? Using this
> patch, fam will always poll on FreeBSD?) There's a note at
> http://oss.sgi.com/projects/fam/news.html about using FMON (and a link to
> the FMON web page), but what it says there is all I know about it.
>
> If any user process can make multiple requests to FMON, then you could patch
> libfam's FAMOpen() etc. to call fmon_open(), and each client would talk to
> FMON through libfam, instead of talking to fam. This would be much better
> than having fam poll, if it works, and if it's a "standard" FreeBSD thing,
> etc. (Actually, if you could do that, we could do away with all the
> mntent_compat stuff, since you wouldn't need to build fam itself on FreeBSD.)
As Chap Lovejoy indicated, FMON isn't in stable. The only way to monitor files
is to use the kqueue/kevent facility, which I plan to incorporate into fam.
Adding this to libfam itself would be possible but would require some FreeBSD
specific hooks to allow the user process to monitor different events in the same
thread. It's also problematic since at the moment it's only possible to
monitor files on the UFS filesystem (though I expect this will change). And
fam has the advantage of being able to communicate with remote fam servers.
So to start I'll just write a patch for fam to use kqueue and perhaps
extend it to allow libfam to monitor UFS files, directly, as a special case.
> --Rusty
Regards,
David
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|