[Linuxtrent] Re: windows share, samba e inotify

  • From: Emanuele Olivetti <emanuele@xxxxxxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Thu, 01 Apr 2010 18:29:45 +0200

Emanuele Olivetti wrote:
 Ciao,

 mi hanno chiesto come fare a monitorare da GNU/Linux alcuni file
 condivisi su uno share windows (windows XP, non so se e'
 rilevante). Lo share e' montato dal client GNU/Linux tramite samba, mi
 sembra in sola lettura. Le operazioni che si vogliono monitorare sono
 la creazione di nuovi file all'interno di una directory specificata
 sullo share e la chiusura dei file creati per sapere quando sono stati
 finiti di scrivere dal processo che li crea sulla macchina windows.
...

Mi rispondo da solo dopo qualche ricerca fatta dai collegi:
http://lists.samba.org/archive/linux-cifs-client/2009-April/004318.html

----
 Is it somehow possible to use inotify with CIFS mounts (mount.cifs to a
 Windows 2003 server), to monitor when new files are created?

 With mount.cifs from Samba 3.3.2, I tried to use inotifywait (while
 creating new files on Windows), but it didn't show anything.

 If it's not possible, are there any alternatives to achieve such a thing
 from Linux?

Currently, no this isn't possible with CIFS. The VFS hooks to allow a
filesystem to set up extra notfications were removed recently. The only
"user" of them was CIFS and it never worked properly anyway. The kernel
interface for this had serious problems too.

I think Steve has plans to reimplement it, but it's a major project
that means adding new functionality to the VFS layer of the kernel.
----

Quindi nulla da fare :-(
Qualcuno ha idee su come affrontare propriamente il problema, a
questo punto senza passare per inotify?

Grazie,

Emanuele

--
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: