EldoS | Feel safer!

Software components for data protection, secure storage and transfer

GetVolumeSize for network drives

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
Posted: 09/29/2011 08:39:32
by ray han (Basic support level)
Joined: 05/10/2011
Posts: 24

I have implemented a network drive using CBFS to expose a server as a filesystem. In that case, I usually don't have a information about the size of the remote device that is being mounted as a drive (it has multiple layers of security that can affect the amount of filesystem elements that are shown). In that case, is it ok to just return a valid (but fake) number for the GetVolumeSize callback? or is there a right way to indicate that the information is not available (or not required) ?

Posted: 09/29/2011 08:51:01
by Eugene Mayevski (EldoS Corp.)

It makes sense to return some huge value (maybe a terabyte or so) just in case some smart application checks free space on the drive before copying. But most applications don't care and copy until error (or until successful completion of course). Explorer allocates space using SetAllocationSize before copying, so it also seems to ignore free size as reported via GetVolumeSize.

Sincerely yours
Eugene Mayevski
Posted: 09/29/2011 09:53:41
by ray han (Basic support level)
Joined: 05/10/2011
Posts: 24

Thanks Eugene.



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