Question: tracking filesystem changes?

Milan Obuch milan at dino.sk
Tue Feb 1 08:47:05 PST 2005


On Tuesday 01 February 2005 17:02, Deomid Ryabkov wrote:
> >>>> This could be a custom filesystem wrapper for UFS that would report
> >>>> name of the file/directory being changed.
> >>>
> >>> Couldn't you use kqueue system to monitor the directory-file?
> >>
> >> I could, if I hadn't near 10 millions of them.
> >
> > Hm. I meant monitoring the directory itself, as a file, then parsing
> > the directory list to determine what has changed. But with 10M files,
> > probably nothing would work...
>
> these are 10M of static documents, the daily change is minmal.
> the question is: where it is the appropriate place to collect those
> changes? the right way seems to implement a customs filesystem, but would
> it possible to obtain a full path at that level?
>

Did you consider using fam (file alteration monitor) from ports?
Milan


More information about the freebsd-hackers mailing list