EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Invalid file handle

Posted: 01/11/2016 08:52:11
by vandernyt (Basic support level)
Joined: 09/16/2015
Posts: 10


When I delete a file from the real storage(directory), I cannot add this file again in the cbfs virtual folder.
In this situation I get an error: "Invalid handle value".
Could you please give me a clue or an advice.

Thank you for help!
Posted: 01/11/2016 08:59:00
by Eugene Mayevski (Team)

Unfortunately it's not possible to understand the situation based on your description. Please expand it as much as possible.

In general, if you alter the backend data set directly, you must notify CBFS about the changes using NotifyDirectoryChange method. This method was discussed dozens of times here and it is described quite well in documentation too.

Sincerely yours
Eugene Mayevski
Posted: 01/12/2016 08:25:26
by Eugene Mayevski (Team)

BTW there's a FAQ article on this: https://www.eldos.com/cbfs/articles/7962.php

Sincerely yours
Eugene Mayevski
Posted: 01/14/2016 07:15:03
by vandernyt (Basic support level)
Joined: 09/16/2015
Posts: 10

Hello, Eugene!

Sorry for the long delay. I was ill, but now I'm getting better.

The puspose of the NotifyDirectoryChange method, according to the documentation, is to "notify the operating system that some changes took place for the file or directory by means external to the virtual file system".
But I want to notify cbfs virtual disk about changes that took place for the file or directory in the real storage (directory), which has been mapped to the cbfs virtual disk.
For example
1. I copy test.txt file from desktop to the cbfs virtual disk.
2. I go to the real directory, which has been mapped, and delete this newest test.txt file.
3. Reopen virtual disk and I don't see test.txt file. Everything is okay.
4. I copy the same file again, similar to step 1, to the virtual disk and I get the error: "Invalid file handle".

Rebooting in this situation helps. And I noticed that in the step 4, CreateFile callback is not called.

Callback File System version is 5.1.
Posted: 01/14/2016 07:29:40
by Eugene Mayevski (Team)

I’ve noticed there is no support access ticket linked to your user account on EldoS site. Support is provided to customers with the linked support access tickets. You will find your support access ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

If you are evaluating the product and don't have a license yet, please let us know and then you can have support according to Basic support level. Basic support level includes answering basic technical questions that appear during product evaluation period.

Sincerely yours
Eugene Mayevski



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