EldoS | Feel safer!

Software components for data protection, secure storage and transfer

lost "file-write" and "file-delete" event in monitor dir rootpath

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#35580
Posted: 01/15/2016 11:06:24
by dawei chen (Basic support level)
Joined: 01/14/2016
Posts: 2

today,we try to use CallbackFilter watch the "file-create"、" file-writ" and "file-delet" action of the OS. we found some problems:

for instance: we set up a monitoring directory is "Z:\*.*”, it’s a mount point by samba protocol
if we create file in Z:\ root path, “file-create” event always get,but “file-write” and “file-delete” event sometimes get,sometimes lost.
if we create file in Z:\ subdirectory or even deep,all the events can get normally
we try the two situations above in local file system ,such as “D:\”,it’s all normal
we just use the sample code in installation directory。code dir:D:\Program Files (x86)\EldoS\CallbackFilter\Samples\dotNET\C#\FileSystemWatcher\
please help me solve about it. it’s emergency! thank you
#35581
Posted: 01/15/2016 11:18:55
by Eugene Mayevski (EldoS Corp.)

I understand your message so that you have mounted a network disk locally and are trying to monitor it using a locally installed CallbackFilter. Do you make changes *locally* or somewhere on other system or on the server? CallbackFilter will be able to track only changes made locally.


Sincerely yours
Eugene Mayevski
#35582
Posted: 01/15/2016 11:40:51
by qi jin (Basic support level)
Joined: 01/15/2016
Posts: 3

we just make test locally.

some test situations:
OS: windows 7
network disk mount protocl: cifs
test action:
1.Right click to create the file ,Right click to open file and write some words. then close the file. just get the "file-create" event. but it's not always like this. sometimes we also can get "file-write"and "file_delete".

2. copy a file from local disk "D:\" to network disk "Z:\". we can get "file-create" "file-write" this all evnets.
#35583
Posted: 01/15/2016 11:56:45
by Vladimir Cherniga (EldoS Corp.)

Did you use filter in legacy or in mini-filter mode ? Could you please specify the version of CallbackFilter used for the test ? Did you managed to reproduce the problem with FileMon sample included ?
#35584
Posted: 01/15/2016 12:15:27
by Vladimir Cherniga (EldoS Corp.)

Quote
qq512214799 wrote:
if we create file in Z:\ subdirectory or even deep,all the events can get normally we try the two situations above in local file system ,such as “D:\”,it’s all normal we just use the sample code in installation directory。code dir:D:\Program Files (x86)\EldoS\CallbackFilter\Samples\dotNET\C#\FileSystemWatcher\ please help me solve about it. it’s emergency! thank you

I should note that FileSystemWatcher sample provides a limited number of registered by default events, so that it looks similar to dotNet FileSystemWatcher class. If you need to extend its behavior, you may do it with minor code changes (by adding FileClose event handler, etc. ).
In order to get more detailed file system log, just check the FileMon sample included. It provides a full range of notifications available.
#35588
Posted: 01/16/2016 00:43:32
by dawei chen (Basic support level)
Joined: 01/14/2016
Posts: 2

Since replacing FileMon sample, all problem have been resolved!
thank you very much!
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 3447 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!