equal
deleted
inserted
replaced
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 TLocalDriveCapsV4& c=*(TLocalDriveCapsV4*)m.RemoteDes(); |
166 TLocalDriveCapsV2& c=*(TLocalDriveCapsV2*)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); |
|
171 return r; |
170 return r; |
172 } |
171 } |
173 switch (id) |
172 switch (id) |
174 { |
173 { |
175 case DLocalDrive::ERead: |
174 case DLocalDrive::ERead: |