equal
deleted
inserted
replaced
333 TPtr8 ptrFatEntry((TUint8*)&fatEntry, KFatEntrySize); |
333 TPtr8 ptrFatEntry((TUint8*)&fatEntry, KFatEntrySize); |
334 |
334 |
335 User::LeaveIfError(drive.ReadNonCritical(StartOfFatInBytes()+KFatEntrySize, KFatEntrySize, ptrFatEntry)); //read FAT32[1] entry |
335 User::LeaveIfError(drive.ReadNonCritical(StartOfFatInBytes()+KFatEntrySize, KFatEntrySize, ptrFatEntry)); //read FAT32[1] entry |
336 return (fatEntry & KFat32CleanShutDownMask); |
336 return (fatEntry & KFat32CleanShutDownMask); |
337 } |
337 } |
338 else |
338 else if(Is16BitFat()) |
339 if(Is16BitFat()) |
|
340 {//-- Fat16 |
339 {//-- Fat16 |
341 TFat16Entry fatEntry; |
340 TFat16Entry fatEntry; |
342 const TInt KFatEntrySize=sizeof(fatEntry); //-- FAT entry size in bytes |
341 const TInt KFatEntrySize=sizeof(fatEntry); //-- FAT entry size in bytes |
343 TPtr8 ptrFatEntry((TUint8*)&fatEntry, KFatEntrySize); |
342 TPtr8 ptrFatEntry((TUint8*)&fatEntry, KFatEntrySize); |
344 |
343 |
657 TInt CFatMountCB::SubType(TDes& aName) const |
656 TInt CFatMountCB::SubType(TDes& aName) const |
658 { |
657 { |
659 if(aName.MaxLength() < 5) |
658 if(aName.MaxLength() < 5) |
660 return KErrArgument; |
659 return KErrArgument; |
661 |
660 |
662 switch (FatType()) |
661 switch(FatType()) |
663 { |
662 { |
664 case EFat12: |
663 case EFat12: |
665 { |
664 { |
666 aName = KFSSubType_FAT12; |
665 aName = KFSSubType_FAT12; |
667 return KErrNone; |
666 return KErrNone; |
674 case EFat32: |
673 case EFat32: |
675 { |
674 { |
676 aName = KFSSubType_FAT32; |
675 aName = KFSSubType_FAT32; |
677 return KErrNone; |
676 return KErrNone; |
678 } |
677 } |
|
678 |
679 default: |
679 default: |
680 // case EInvalidFatType |
680 break; |
681 return KErrNotReady; |
681 |
682 } |
682 } |
683 } |
683 |
|
684 return KErrNotReady; |
|
685 } |
684 |
686 |
685 |
687 |
686 //------------------------------------------------------------------------------------------------------------------- |
688 //------------------------------------------------------------------------------------------------------------------- |
687 |
689 |
688 /** |
690 /** |
1004 // For supporting large file ReadFileSection |
1006 // For supporting large file ReadFileSection |
1005 ((CMountCB::MFileExtendedInterface*&) aInterface) = this; |
1007 ((CMountCB::MFileExtendedInterface*&) aInterface) = this; |
1006 return KErrNone; |
1008 return KErrNone; |
1007 |
1009 |
1008 default: |
1010 default: |
1009 return(CMountCB::GetInterface(aInterfaceId, aInterface, aInput)); |
1011 break; |
1010 } |
1012 } |
|
1013 |
|
1014 return(CMountCB::GetInterface(aInterfaceId, aInterface, aInput)); |
1011 } |
1015 } |
1012 |
1016 |
1013 //----------------------------------------------------------------------------------------- |
1017 //----------------------------------------------------------------------------------------- |
1014 void CFatMountCB::ReadSection64L(const TDesC& aName, TInt64 aPos, TAny* aTrg, TInt aLength, const RMessagePtr2& aMessage) |
1018 void CFatMountCB::ReadSection64L(const TDesC& aName, TInt64 aPos, TAny* aTrg, TInt aLength, const RMessagePtr2& aMessage) |
1015 // From CMountCB::MFileExtendedInterface |
1019 // From CMountCB::MFileExtendedInterface |