EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Please tell me the description of red lines...

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.
Posted: 01/28/2012 20:27:53
by martin kim (Basic support level)
Joined: 01/28/2012
Posts: 4

- VDisk(C#)

private void CbFsGetVolumeSize(
object sender,
ref long TotalNumberOfSectors,
ref long NumberOfFreeSectors

long TotalSpace = 1000000 * mCbFs.SectorSize;

TotalNumberOfSectors = TotalSpace / mCbFs.SectorSize;
NumberOfFreeSectors = (TotalSpace - CalculateFolderSize(g_DiskContext) + mCbFs.SectorSize/2) / mCbFs.SectorSize;

Posted: 01/29/2012 03:52:39
by Eugene Mayevski (EldoS Corp.)

First value is just a random value, chosen for it being looking good.

Second is an operation of rounding the calculated value up to sector size.

Sincerely yours
Eugene Mayevski



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