Re: [Krusader-devel] MountMan patch for BSD

0 views
Skip to first unread message

Heiner

unread,
May 17, 2005, 1:40:45 PM5/17/05
to krusade...@googlegroups.com
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
krusader.diff

Shie Erlich

unread,
May 25, 2005, 6:06:26 PM5/25/05
to krusade...@googlegroups.com
heiner,
sorry for taking so long to commit (it was deep inside gmail).

commited. works for linux.

thanks,
shie
Reply all
Reply to author
Forward
0 new messages