EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Can IsCorrupted property be polled while storage is open/mounted ?

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#32307
Posted: 02/23/2015 08:45:24
by Miguel De Buf (Priority Standard support level)
Joined: 01/04/2007
Posts: 32

Can the IsCorrupted property be polled at regular time intervals to try to detect corruption as soon as possible ?
#32308
Posted: 02/23/2015 08:50:08
by Alexander Plas (EldoS Corp.)

No, it's useless. The IsCorrupted property just returns value of internal flag. This flag is set when the corruption is detected by any SolFS method. If the corruption is detected an error or exception errStorageFileCorrupted occurs.
#32311
Posted: 02/23/2015 09:13:44
by Miguel De Buf (Priority Standard support level)
Joined: 01/04/2007
Posts: 32

Okay, I see, but I do not use the SolFS methods directly in my code, so I cannot capture the output. I only have a daemon process that mounts the storage, and waits until it is killed. When it is killed, it unmounts the storage to prevent corruption. So while my daemon is running, the storage can get corrupted, and I would like to catch that "event".
#32313
Posted: 02/23/2015 09:32:50
by Alexander Plas (EldoS Corp.)

In the daemon process polling of IsCorrupted property may has a sense.

Reply

Statistics

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