diff -r 0008ccd16016 -r 13fbfa31d2ba userlibandfileserver/fileserver/sfat32/inc/sl_std.inl --- a/userlibandfileserver/fileserver/sfat32/inc/sl_std.inl Fri Sep 17 08:37:04 2010 +0300 +++ b/userlibandfileserver/fileserver/sfat32/inc/sl_std.inl Mon Oct 04 02:35:35 2010 +0300 @@ -471,14 +471,48 @@ /** @return pointer to the owning mount object */ CFatMountCB& CFatFormatCB::FatMount() - {return *(CFatMountCB*)&Mount();} + { + return *(CFatMountCB*)&Mount(); + } /** Returns the local drive used by the file systems from the owning mount @return Pointer to the local drive */ CProxyDrive* CFatFormatCB::LocalDrive() - {return(FatMount().LocalDrive());} + { + return(FatMount().LocalDrive()); + } + + +TBool CFatFormatCB::FatTypeValid() const + { + return (iFatType == EFat12 || iFatType == EFat16 || iFatType == EFat32); + } + +TFatType CFatFormatCB::FatType() const + { + ASSERT(FatTypeValid()); + return iFatType; + } + +void CFatFormatCB::SetFatType(TFatType aType) + { + ASSERT(aType != EInvalid); + iFatType = aType; + } + +TBool CFatFormatCB::Is16BitFat() const + { + ASSERT(FatTypeValid()); + return iFatType == EFat16; + } + +TBool CFatFormatCB::Is32BitFat() const + { + ASSERT(FatTypeValid()); + return iFatType == EFat32; + } //---------------------------------------------------------------------------------------------------------------------------------