EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OnFlushFile with NULL FileInfo

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#16231
Posted: 04/17/2011 20:44:18
by Fraser Hutchison (Standard support level)
Joined: 04/17/2011
Posts: 3

Hello,

The documentation for OnFlushFile states
Quote
If FileInfo is empty, your code should attempt to flush everything, related to the disk.


Can anyone explain why this is? I see a lot of calls to OnFlushFile where FileInfo is NULL.

Also, does "flush everything" mean all modified open files?

Thanks,

Fraser.
#16233
Posted: 04/18/2011 00:18:20
by Volodymyr Zinin (EldoS Corp.)

Hello Fraser,

"Flush everything" - means all non-flushed yet data (i.e. to flush all modified files). But it's up to you what to do in this callback. It just notifies that someone is performing disk flush. And perhaps in your callbacks implementation is enough to flush the data to some temporary cache.
BTW: The OnFlush callback is optional and you can set it to null.
#16237
Posted: 04/18/2011 03:49:01
by Fraser Hutchison (Standard support level)
Joined: 04/17/2011
Posts: 3

Thanks for that Vladimir.

All the best,
Fraser

Reply

Statistics

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