57 |
57 |
58 TInt RemountFS(RFs& aFs, TInt aDrive, TTime* apTimeMountStart=NULL); |
58 TInt RemountFS(RFs& aFs, TInt aDrive, TTime* apTimeMountStart=NULL); |
59 |
59 |
60 TInt FormatDrive(RFs &aFs, TInt aDrive, TBool aQuickFormat); |
60 TInt FormatDrive(RFs &aFs, TInt aDrive, TBool aQuickFormat); |
61 |
61 |
|
62 //----------------------------------------------------------------------------- |
|
63 |
|
64 TBool CompareBuffers(const TDesC8& aBuf1, const TDesC8& aBuf2); |
|
65 TBool CompareBuffers(const TAny* apBuf1, TUint aBuf1Len, const TAny* apBuf2, TUint aBuf2Len); |
|
66 |
|
67 void HexDump(const TDesC8& aBuf); |
|
68 void HexDump(const TAny* apBuf, TUint aBufLen); |
62 |
69 |
63 //----------------------------------------------------------------------------- |
70 //----------------------------------------------------------------------------- |
64 /** |
71 /** |
65 a file system descriptor. Contains the information about file system. |
72 a file system descriptor. Contains the information about file system. |
66 support for non-primary FS extensions is not implemented yet, it suports primary extensions only |
73 support for non-primary FS extensions is not implemented yet, it suports primary extensions only |
136 }; |
143 }; |
137 |
144 |
138 |
145 |
139 |
146 |
140 |
147 |
141 TBool Is_Lffs(RFs &aFs, TInt aDrive); //-- returns ETrue if "lffs" FS is mounted on this drive |
148 TBool Is_Lffs(RFs &aFs, TInt aDrive); //-- returns ETrue if "lffs" FS is mounted on this drive |
142 TBool Is_Win32(RFs &aFs, TInt aDrive); //-- returns ETrue if "win32" FS is mounted on this drive (i.e this is emulator's drive c:) |
149 TBool Is_Win32(RFs &aFs, TInt aDrive); //-- returns ETrue if "Win32" FS is mounted on this drive (i.e this is emulator's drive C:) |
143 TBool Is_ExFat(RFs &aFs, TInt aDrive); //-- returns ETrue if "exFAT" FS is mounted on this drive |
150 TBool Is_ExFat(RFs &aFs, TInt aDrive); //-- returns ETrue if "exFAT" FS is mounted on this drive |
144 TBool Is_Automounter(RFs &aFs, TInt aDrive); //-- returns ETrue if "Automounter" FS is mounted on this drive |
151 TBool Is_Automounter(RFs &aFs, TInt aDrive); //-- returns ETrue if "Automounter" FS is mounted on this drive |
145 |
152 |
|
153 TBool Is_HVFS(RFs &aFs, TInt aDrive); //-- returns ETrue if "HVFS" is mounted on this drive (i.e PlatSim's drive C:) |
|
154 TBool Is_SimulatedSystemDrive(RFs &aFs, TInt aDrive); //-- returns ETrue if "HVFS" or "Win32" FS is mounted on this drive |
|
155 // (i.e drive C: of PlatSim or the emulator) |
146 |
156 |
147 TBool Is_Fat(RFs &aFs, TInt aDrive); //-- returns ETrue if "FAT" FS (FAT12/16/32) is mounted on this drive |
157 TBool Is_Fat(RFs &aFs, TInt aDrive); //-- returns ETrue if "FAT" FS (FAT12/16/32) is mounted on this drive |
148 |
158 |
149 TBool Is_Fat32(RFs &aFs, TInt aDrive); //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT32 type |
159 TBool Is_Fat32(RFs &aFs, TInt aDrive); //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT32 type |
150 TBool Is_Fat16(RFs &aFs, TInt aDrive); //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT16 type |
160 TBool Is_Fat16(RFs &aFs, TInt aDrive); //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT16 type |
151 TBool Is_Fat12(RFs &aFs, TInt aDrive); //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT12 type |
161 TBool Is_Fat12(RFs &aFs, TInt aDrive); //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT12 type |
152 |
162 |
153 |
163 |
154 |
164 |
|
165 |
|
166 |
155 //############################################################################# |
167 //############################################################################# |
156 //# some private helper functions |
168 //# some private helper functions |
157 //############################################################################# |
169 //############################################################################# |
158 void DoPrintf(TRefByValue<const TDesC> aFmt,...); |
170 void DoPrintf(TRefByValue<const TDesC> aFmt,...); |
159 void DoMediaRawReadL(RFs &aFs, TInt aDrive, TInt64 aMediaPos, TUint32 aLen, TDes8& aData); |
171 void DoMediaRawReadL(RFs &aFs, TInt aDrive, TInt64 aMediaPos, TUint32 aLen, TDes8& aData); |