void CSVPHostMountCB::VolumeL(TVolumeInfo& aVolume) const
	{
        DP(_L("** (SVPHOSTMNT) CSVPHostMountCB::VolumeL()"));
	TInt64 s,f(0);
	TFileName n;
	TInt d=Drive().DriveNumber();
	User::LeaveIfError(GetMediaSize(d,s,f));
	aVolume.iFree=f;
	}
Exemplo n.º 2
0
void CRemoteMountCB::VolumeL(TVolumeInfo& aVolume) const
//
// Return the volume info.
//
	{
	TInt64 s,f(0);
	TFileName n;
	TInt d=Drive().DriveNumber();
	TInt driveNum=d;
	if (MapDrive(n,d))
		RFs::CharToDrive(n[0],d);
	User::LeaveIfError(GetMediaSize(d,s,f));
	if (driveNum==EDriveZ)
		aVolume.iFree=0;
	else
		aVolume.iFree=f;
	}