Cosmos is an operating system "construction kit", built from the ground up around the IL2CPU compiler in C# and our home-brewed language called X#.
int count = vFS.GetVolumes().Count;
for (int i = 0; i < count; i++)
{
string label = vFS.GetFileSystemLabel(i.ToString());
int UsedSpace = (int)vFS.GetTotalSize(i.ToString()) - (int)vFS.GetTotalFreeSpace(i.ToString());
long intBytes = UsedSpace;
m_log.InfoFormat("FILE SYSTEM", "Detected Partition Label for Partition: " + i.ToString() + " is " + label);
m_log.InfoFormat("FILE SYSTEM", @"Total Size for Partition "
+ i.ToString() +
" is " + FormatBytes(vFS.GetTotalSize(i.ToString())) +
" Free: "+ FormatBytes(vFS.GetTotalFreeSpace(i.ToString())) +
" Used: "+ FormatBytes((long)intBytes));
}