Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Info Req] Come testo se inotify funziona sul mio xfs?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Sep 27, 2006 9:11 am    Post subject: [Info Req] Come testo se inotify funziona sul mio xfs? Reply with quote

Premetto che mi aspettavo un device /dev/inotify... ma che non ho.

Ovviamente l'opzione è attiva nel kernel all'interno della sezione File Systems.

Grazie per le info.

luigi[/post]
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Wed Sep 27, 2006 4:04 pm    Post subject: Reply with quote

è un problema di udev che non crea il device; la doc di inotify dice di crearlo così:

Code:
mknod /dev/inotify c 10 63
chmod 644 /dev/inotify


/EDIT: non sono sicuro (vado a memoria), ma l'accesso a inotify tramite i devices è deprecato da parecchio tempo, mi sembra che il metodo ufficiale ora sia solo tramite le sys call.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Sep 27, 2006 5:59 pm    Post subject: Reply with quote

!equilibrium wrote:
è un problema di udev che non crea il device; la doc di inotify dice di crearlo così:

Code:
mknod /dev/inotify c 10 63
chmod 644 /dev/inotify


/EDIT: non sono sicuro (vado a memoria), ma l'accesso a inotify tramite i devices è deprecato da parecchio tempo, mi sembra che il metodo ufficiale ora sia solo tramite le sys call.


confermo. Effettivamente ho dato una lettura un po' in giro... solo che ho trovato di tutto ed il contrario di tutto.

ciao

luigi
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
power83
l33t
l33t


Joined: 28 Nov 2004
Posts: 638

PostPosted: Wed Sep 27, 2006 7:27 pm    Post subject: Reply with quote

dato che ho pure io XFS su alcuni dischi, a cosa serve inotify?
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Sep 27, 2006 7:32 pm    Post subject: Reply with quote

power83 wrote:
dato che ho pure io XFS su alcuni dischi, a cosa serve inotify?


praticamente invia "notifiche" ai programmi in ascolto (registrati tramite le apposite syscall) quando il filesystem subisce modifiche.
E' utile quando usi software di indicizzazione (tipo beagle), così invece di controllare completamente il disco ad intervalli regolari (come fa updatedb di locate) eseguono l'indicizzazione solo quando serve e sui file modificati, con un risparmio di cpu e tempo.

ciao

luigi
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
power83
l33t
l33t


Joined: 28 Nov 2004
Posts: 638

PostPosted: Wed Sep 27, 2006 7:35 pm    Post subject: Reply with quote

wow...ingegnoso e soprattutto con senso la cosa

EDIT: grazie
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Thu Sep 28, 2006 11:46 am    Post subject: Reply with quote

comio wrote:
confermo. Effettivamente ho dato una lettura un po' in giro... solo che ho trovato di tutto ed il contrario di tutto.


in effetti il README di inotify dice che bisogna creare il device:
http://www.kernel.org/pub/linux/kernel/people/rml/inotify/

bisogna vedere se questo file è aggiornato o no, credo non lo sia.
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum