EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Can CheckAndRepair be used to repair the file

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#21163
Posted: 08/24/2012 00:50:19
by Lei Liu (Basic support level)
Joined: 08/23/2012
Posts: 4

I have been using StorageOpen to open a storage file(file.log) and then using StorageCreateFile to create a test file(test.log). And then started writing data to test.log. However, the wirting operation had been interrupted (power off). I used CheckAndRepair on the storage file 'file.log', it returns 0(succeeded), but was not able to repair 'test.log' when checking/repairing.
Does this mean CheckAndRepair can only be used to check/repair storage but not the every single files created in the storage?

Thanks!
#21164
Posted: 08/24/2012 01:00:34
by Alexander Plas (EldoS Corp.)

Yes, thats true, the CheckAndRepair function just returns storage to consistent state, but not guarantee repairing of all information inside the storage.

BTW it is better to not use .log as extension of the storage file name, old versions of SolFS have used external transaction's log as a file with same name as the storage but .log extension. We still keep compatibility, so in some rare situations SolFS may be confused with such storage file name extension.
#21166
Posted: 08/24/2012 02:32:23
by Lei Liu (Basic support level)
Joined: 08/23/2012
Posts: 4

Thanks Alexander!

Reply

Statistics

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