EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CbFsRenameOrMoveFile : folder not refreshed

Posted: 03/27/2014 11:35:02
by Olfa REKIK (Basic support level)
Joined: 03/11/2014
Posts: 10


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
Posted: 03/27/2014 11:57:29
by Volodymyr Zinin (Team)

Is the problem reproducible with any of the CBFS samples? If so please specify in details how to do it.
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.
Posted: 03/28/2014 03:49:38
by Volodymyr Zinin (Team)

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.

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.



Topic viewed 1423 times

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


Back to top

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

Got it!