On Monday 16 May 2005 22:59, Shie Erlich wrote:
> heiner,
> did u get this email?
Hi!
No, I didn't!
> On 5/6/05, Shie Erlich <
shie....@gmail.com> wrote:
> > heiner,
> > can't diff the patch. is sets all lines as changed :-(
> > can u plz check for new lines or something? i don't know what can cause
> > this...
> >
> > or at least explain the patch and how to test it?
Hmm, strange. I've synch'ed the cvs and copied the files from my previous
mail. diff -u does only show a few differences. I have attached the diff, so
it might be helpful.
What I did is adding a new singleton: KrMountDetector. Its only method
hasMountsChanged() reads and stores the modification time of /etc/mtab and
compares it with a the previous call. That's what you have coded just
extracted into a class.
On FreeBSD, there is no /etc/mtab. So here I use an md5 of the mount output
instead. If it changes, something in the mounts has changed.
Heiner