equal
deleted
inserted
replaced
832 // return if request's session has notify user set |
832 // return if request's session has notify user set |
833 // must be called from drive thread and request have a session set |
833 // must be called from drive thread and request have a session set |
834 // |
834 // |
835 { |
835 { |
836 __ASSERT_ALWAYS(FsThreadManager::IsDriveThread(iDriveNumber,EFalse),Fault(EDriveThreadNotifyUser1)); |
836 __ASSERT_ALWAYS(FsThreadManager::IsDriveThread(iDriveNumber,EFalse),Fault(EDriveThreadNotifyUser1)); |
837 // NB For read-ahead or a flush-dirty write request generated by the file cache, the session will be NULL: |
837 // NB For read-ahead or a flush-dirty write request generated by the file cache, the request or the session may be NULL: |
838 // in this case assume that notify user is set (as it's the safest option) |
838 // in this case assume that notify user is set (as it's the safest option) |
839 CSessionFs* session = iRequest->Session(); |
839 return iRequest && iRequest->Session() ? iRequest->Session()->GetNotifyUser() : ETrue; |
840 return session ? session->GetNotifyUser() : ETrue; |
|
841 } |
840 } |
842 |
841 |
843 void CDriveThread::StartFinalisationTimer() |
842 void CDriveThread::StartFinalisationTimer() |
844 { |
843 { |
845 if(IsProxyDrive(iDriveNumber)) |
844 if(IsProxyDrive(iDriveNumber)) |