This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How does kde watches dirs and files?

Tags: None
(comma "," separated)
bonassis
Registered Member
Posts
59
Karma
0
OS
Hi,

I would like to know how KDE watches changes, using inotify?
Is it still using gamin?

I've found kdirwatch as service of nepomuk. Does this have a function??

Stef
andrawisnaser
Registered Member
Posts
2
Karma
0
OS
actually i have the same problem here and hope some one help Us
bonassis
Registered Member
Posts
59
Karma
0
OS
andrawisnaser wrote:actually i have the same problem here and hope some one help Us

Can you describe your problem?? More than "same problem"??
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you are referring to the "nepomukservicestub filewatcher" component, then it is not responsible for the watching of directories and files by KDE itself. It merely exists to assist Nepomuk in keeping it's database up to date when files are moved.

More than often unfortunately it is abusive to the system - especially if you have a large number of source files under your $HOME directory.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
bonassis
Registered Member
Posts
59
Karma
0
OS
Ok, so the nepomuk service filewatcher component does not do watch the underlying fs for filesystem watch purposes, and forward these to clients.

But then what is?

I've found some notify code in kde, as well in qt, like

qfilesystemwatcher.h.


Stef
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Each KDE Process undertakes the watching of the files it needs to watch itself. They can use either QFileSystemWatcher, or KDirWatch. Both use inotify I believe.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
bonassis
Registered Member
Posts
59
Karma
0
OS
Ah!

Thank you for replying. I already guessed something like that.
But gamin is still an optional requirement for kdelibs.

And when I test with the session gamin server and a client, like dolphin, I see that a FAM connection is still used.

I'm very interested in making inotify work with "outside of VFS" filesystems like cifs and FUSE filesystems. Inotify works perfectly, but only for local filesystems, without "unknown" backends like network filesystems and FUSE fs's.

I'm missing this in Linux, and am thinking how to solve this. I'm a FUSE fs writer, but the kernel is something still mysterious...

Anyway, thanks,

Stef
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would suggest in this case talking to the kernel developers about this, as they'll be the ones more knowledgable about it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]