EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CbFsRenameOrMoveFile : folder not refreshed

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#28988
Posted: 03/27/2014 11:35:02
by Olfa REKIK (Basic support level)
Joined: 03/11/2014
Posts: 10

Hi,

We have another issue when renaming files on Win7 :
In the callback, we rename the file.
in the explorer view, the old file disappears, but the new file doesn't appear (so it looks like a remove). If I refresh the explorer view (F5), the renamed file appears.

the callbacks sequence is :
- CbFsCloseFile : success
- CbFsEnumerateDirectory, mask = myfile.txt => return myfile.txt path
- CbFsRenameOrMoveFile myfile.txt myNewFile.txt
- CbFsOpenFile myNewFile.txt => success
- CbFsGetFileInfo myNewFile.txt
- CbFsCloseFile

- CbFsEnumerateDirectory, mask = myNewFile.txt => return myNewFile.txt
- CbFsEnumerateDirectory, mask = myfile.txt => return DONT EXIST (its the old file...)
- CbFsGetFileInfo myfile.txt => return DONT EXIST


Thanks for any clues on this matter
#28991
Posted: 03/27/2014 11:57:29
by Volodymyr Zinin (EldoS Corp.)

Is the problem reproducible with any of the CBFS samples? If so please specify in details how to do it.
Thanks.
#28997
Posted: 03/28/2014 03:31:48
by Olfa REKIK (Basic support level)
Joined: 03/11/2014
Posts: 10

Of course not, the CBFS sample rely on the Windows FileSystem calls so they do not demonstrate much except the CBFS ability to hook file system.
#28998
Posted: 03/28/2014 03:49:38
by Volodymyr Zinin (EldoS Corp.)

If possible please take Process Monitor from sysinternals.com, set there to show only I/O requests passed to your virtual disk (by setting a filter rule "Path"->"begins with"->"X:", where "X:" is your disk's drive letter), reproduce the problem, save the Process Monitor log in the native format (which is .pml or so), and give it to me.

Thanks.
#28999
Posted: 03/28/2014 06:01:28
by Olfa REKIK (Basic support level)
Joined: 03/11/2014
Posts: 10

Hi Vladimir,

Process Monitor evidenced the problem, I was not returning the file name in EnumerateDirectory in the ExactMatch case, only FileFound TRUE or FALSE.

Case is solved now, thanks for your help.
best regards.
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

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