EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problem with metadata cache

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#15288
Posted: 12/13/2010 06:43:42
by Robert Baer (Basic support level)
Joined: 11/08/2010
Posts: 46

Hello,

I have a problem which only occurs when metadata cache is activated (property "DisableMetaDataCache" is set to false (default)). It is working fine when metadata cache is disabled.

You need to add a "Sleep(1000)" at the beginning of CbFsDeleteFile callback (C++ sample "Mapper") to reproduce the following behavior:

1) Create a new folder in windows explorer (with default name "New folder")
2) Delete this folder
3) Repeat step 1 -> The new folder gets the name "New folder (2)"

Metadata cache seems to tell windows explorer that the folder is still there. There is no invocation of CbFsGetFileInfo callback in this moment.

Can you reproduce this behavior?

Regards,
Robert
#15289
Posted: 12/13/2010 07:03:04
by Eugene Mayevski (EldoS Corp.)

So far I don't see a problem here. How exactly are you deleting the folder?


Sincerely yours
Eugene Mayevski
#15291
Posted: 12/13/2010 07:20:12
by Robert Baer (Basic support level)
Joined: 11/08/2010
Posts: 46

Hello,

I am deleting the folder via "Del" key.

It is necessary to insert the sleep statement in DeleteFile callback to simulate some time-consuming processing. In my case the OpenFile callback is invoked quite often for the folder before the DeleteFile event is finished:

>>> DeleteFile
>>> OpenFile
<<< OpenFile
>>> CloseFile
<<< CloseFile
... (last 4 steps repeating multiple times)
<<< DeleteFile

I hope this information helps.

Regards,
Robert
#15292
Posted: 12/13/2010 07:27:58
by Eugene Mayevski (EldoS Corp.)

Nope. Where are you pressing Del key?

In any case, it's not clear from your message -- do you get NewFolder2 creation callback before or after DeleteFile callback for NewFolder1 ?


Sincerely yours
Eugene Mayevski
#15293
Posted: 12/13/2010 07:41:36
by Robert Baer (Basic support level)
Joined: 11/08/2010
Posts: 46

Hello Eugene,

after the creation of folder "New folder" it is selected in windows explorer. Now I am pressing Del key and get a message if I really want to delete the folder... The result is the same when I select "Delete" in file context-menu.

I get NewFolder2 creation callback after DeleteFile callback for NewFolder1.

Regards,
Robert
#15295
Posted: 12/13/2010 08:15:03
by Eugene Mayevski (EldoS Corp.)

Move to HelpDesk for investigation.


Sincerely yours
Eugene Mayevski
Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.

Reply

Statistics

Topic viewed 1297 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!