kernel/eka/drivers/medlfs/flash_media.cpp
branchRCL_3
changeset 42 a179b74831c9
parent 6 0173bcd7697c
equal deleted inserted replaced
41:0ffb4e86fcc9 42:a179b74831c9
   161 	TInt r=KErrNotSupported;
   161 	TInt r=KErrNotSupported;
   162 	TInt id=m.Id();
   162 	TInt id=m.Id();
   163 	__KTRACE_OPT(KLOCDRV,Kern::Printf(">DMediaDriverFlash::Request %d",id));
   163 	__KTRACE_OPT(KLOCDRV,Kern::Printf(">DMediaDriverFlash::Request %d",id));
   164 	if (id==DLocalDrive::ECaps)
   164 	if (id==DLocalDrive::ECaps)
   165 		{
   165 		{
   166   		TLocalDriveCapsV2& c=*(TLocalDriveCapsV2*)m.RemoteDes();
   166   		TLocalDriveCapsV4& c=*(TLocalDriveCapsV4*)m.RemoteDes();
   167 		r=Caps(c);
   167 		r=Caps(c);
   168 		c.iSize=m.Drive()->iPartitionLen;
   168 		c.iSize=m.Drive()->iPartitionLen;
   169 		c.iPartitionType=m.Drive()->iPartitionType;
   169 		c.iPartitionType=m.Drive()->iPartitionType;
       
   170 		SetTotalSizeInBytes(c);
   170 		return r;
   171 		return r;
   171 		}
   172 		}
   172 	switch (id)
   173 	switch (id)
   173 		{
   174 		{
   174 		case DLocalDrive::ERead:
   175 		case DLocalDrive::ERead: