1509 { |
1509 { |
1510 public: |
1510 public: |
1511 ~CDismountNotifyInfo(); |
1511 ~CDismountNotifyInfo(); |
1512 void Initialise(TNotifyDismountMode aMode, TInt aDriveNumber,TRequestStatus* iStatus,const RMessagePtr2& aMessage,CSessionFs* aSession); |
1512 void Initialise(TNotifyDismountMode aMode, TInt aDriveNumber,TRequestStatus* iStatus,const RMessagePtr2& aMessage,CSessionFs* aSession); |
1513 TBool IsMatching(TNotifyDismountMode aMode, TInt aDriveNumber, CSessionFs* aSession); |
1513 TBool IsMatching(TNotifyDismountMode aMode, TInt aDriveNumber, CSessionFs* aSession); |
|
1514 inline TInt DriveNumber() {return iDriveNumber;} |
1514 private: |
1515 private: |
1515 TNotifyDismountMode iMode; |
1516 TNotifyDismountMode iMode; |
1516 TInt iDriveNumber; |
1517 TInt iDriveNumber; |
1517 }; |
1518 }; |
1518 |
1519 |
1525 TBaseQue(); |
1526 TBaseQue(); |
1526 ~TBaseQue(); |
1527 ~TBaseQue(); |
1527 void DoAddNotify(CNotifyInfo* aInfo); |
1528 void DoAddNotify(CNotifyInfo* aInfo); |
1528 TBool DoCancelSession(CSessionFs* aSession,TInt aCompletionCode,TRequestStatus* aStatus=NULL); |
1529 TBool DoCancelSession(CSessionFs* aSession,TInt aCompletionCode,TRequestStatus* aStatus=NULL); |
1529 void DoCancelAll(TInt aCompletionCode); |
1530 void DoCancelAll(TInt aCompletionCode); |
|
1531 CNotifyInfo* DoFindEntry(CSessionFs* aSession, TRequestStatus* aStatus=NULL); |
1530 TBool IsEmpty(); |
1532 TBool IsEmpty(); |
1531 protected: |
1533 protected: |
1532 TDblQue<CNotifyInfo> iHeader; |
1534 TDblQue<CNotifyInfo> iHeader; |
1533 RFastLock iQLock; |
1535 RFastLock iQLock; |
1534 }; |
1536 }; |
1595 static void HandleDebug(TUint aFunction); |
1597 static void HandleDebug(TUint aFunction); |
1596 static void HandleDismount(TNotifyDismountMode aMode, TInt aDrive, TBool aRemove, TInt err); |
1598 static void HandleDismount(TNotifyDismountMode aMode, TInt aDrive, TBool aRemove, TInt err); |
1597 static void CancelChangeSession(CSessionFs* aSession,TRequestStatus* aStatus=NULL); |
1599 static void CancelChangeSession(CSessionFs* aSession,TRequestStatus* aStatus=NULL); |
1598 static void CancelDiskSpaceSession(CSessionFs* aSession,TRequestStatus* aStatus=NULL); |
1600 static void CancelDiskSpaceSession(CSessionFs* aSession,TRequestStatus* aStatus=NULL); |
1599 static void CancelDebugSession(CSessionFs* aSession, TRequestStatus* aStatus=NULL); |
1601 static void CancelDebugSession(CSessionFs* aSession, TRequestStatus* aStatus=NULL); |
1600 static void CancelDismountNotifySession(CSessionFs* aSession, TRequestStatus* aStatus=NULL); |
1602 static TInt CancelDismountNotifySession(CSessionFs* aSession, TRequestStatus* aStatus=NULL); |
1601 static void CancelSession(CSessionFs* aSession); |
1603 static void CancelSession(CSessionFs* aSession); |
1602 static TBool HandlePendingDismount(CSessionFs* aSession, TInt aDriveNumber); |
1604 static TBool HandlePendingDismount(CSessionFs* aSession, TInt aDriveNumber); |
1603 static TBool IsChangeQueEmpty(TInt aDrive); |
1605 static TBool IsChangeQueEmpty(TInt aDrive); |
1604 static TBool IsDiskSpaceQueEmpty(TInt aDrive); |
1606 static TBool IsDiskSpaceQueEmpty(TInt aDrive); |
1605 private: |
1607 private: |
1801 extern TInt ErrorCount; |
1803 extern TInt ErrorCount; |
1802 extern TUint32 DebugReg; |
1804 extern TUint32 DebugReg; |
1803 extern TInt UserHeapAllocFailCount; |
1805 extern TInt UserHeapAllocFailCount; |
1804 extern TInt KernHeapAllocFailCount; |
1806 extern TInt KernHeapAllocFailCount; |
1805 extern TInt MessageCount; |
1807 extern TInt MessageCount; |
|
1808 extern TInt SessionCount; |
|
1809 extern TInt ObjectCount; |
1806 |
1810 |
1807 void PrintHeapSize(const TDesC& aMessage); |
1811 void PrintHeapSize(const TDesC& aMessage); |
1808 |
1812 |
1809 extern TCorruptNameRec* gCorruptFileNameList; |
1813 extern TCorruptNameRec* gCorruptFileNameList; |
1810 extern TCorruptLogRec* gCorruptLogRecordList; |
1814 extern TCorruptLogRec* gCorruptLogRecordList; |