EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CbFsOpenedFilesSnapshot getNextOpenedFile() throws Exception (Java)

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#33319
Posted: 05/19/2015 03:46:27
by Tobias Fink (Basic support level)
Joined: 05/19/2015
Posts: 1

Hi,

we're using CBFS 5.1.158.14 driver on Windows 7 x64.

I've extended the vdisk java-example to add an command "snapshot":

vdisk\Main.java
Code
[...]
                if (line == null) continue;
                if ("exit".equals(line)) break;
                else if ("ss".equals(line))
                {
                   CbFsOpenedFilesSnapshot ss = cbfs.createOpenedFilesSnapshot();
                   try
                   {
                      while (ss.getNextOpenedFile())
                      {
                         System.out.println(ss.getFileName() + "->" + ss.getOpenCount());
                      }
                   } catch (ECBFSError e)
                   {
                      e.printStackTrace();
                   }
                }
                else process(line);
[...]


Now whenever "ss.getNextOpenedFile()" is called i get an exception:

eldos.cbfs.ECBFSError: Es sind mehr Daten verf├╝gbar.

Also, i'm somehow confused with the documentation, because the method names differ a bit (eg "getOpenCount()" in the library vs "getOpenedFileCount()" in the documentation).

Could you please tell me what i am doing wrong here?
#33320
Posted: 05/19/2015 04:10:37
by Volodymyr Zinin (EldoS Corp.)

Hello,

Thank you for such detailed report.
It seems there is a bug in CBFS. I have created a ticked in HelpDesk for this case. We will check it and write the result there.

Reply

Statistics

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