equal
deleted
inserted
replaced
305 switch( function ) |
305 switch( function ) |
306 { |
306 { |
307 case EFsFileCreate: |
307 case EFsFileCreate: |
308 { |
308 { |
309 #ifdef _DEBUG |
309 #ifdef _DEBUG |
310 if (function == EFsFileCreate) |
310 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsFileCreate" ); |
311 { |
|
312 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsFileCreate" ); |
|
313 } |
|
314 #endif |
311 #endif |
315 |
312 |
316 HBufC* createdFileName = iFileName.Alloc(); |
313 HBufC* createdFileName = iFileName.Alloc(); |
317 if( createdFileName ) |
314 if( createdFileName ) |
318 { |
315 { |
495 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsFormatSubClose" ); |
492 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsFormatSubClose" ); |
496 if ( iFormatDriveNumber < 0 ) |
493 if ( iFormatDriveNumber < 0 ) |
497 { |
494 { |
498 return KErrNone; |
495 return KErrNone; |
499 } |
496 } |
500 drvNumber = iFormatOldMediaId; |
497 drvNumber = iFormatDriveNumber; |
501 volInfo.iUniqueID = iFormatOldMediaId; |
498 volInfo.iUniqueID = iFormatOldMediaId; |
502 iFormatOldMediaId = 0; |
499 iFormatOldMediaId = 0; |
503 iFormatDriveNumber = -1; |
500 iFormatDriveNumber = -1; |
504 fileEventType = EMdsDriveFormatted; |
501 fileEventType = EMdsDriveFormatted; |
505 if ( processId.iUid == 0 ) |
502 if ( processId.iUid == 0 ) |
544 queueItem->iFileName = iFileName.AllocL(); |
541 queueItem->iFileName = iFileName.AllocL(); |
545 queueItem->iNewFileName = iNewFileName.AllocL(); |
542 queueItem->iNewFileName = iNewFileName.AllocL(); |
546 queueItem->iFileEventType = fileEventType; |
543 queueItem->iFileEventType = fileEventType; |
547 queueItem->iProcessId = processId; |
544 queueItem->iProcessId = processId; |
548 |
545 |
549 iQueue.AppendL( queueItem ); // owenership is transferred |
546 iQueue.AppendL( queueItem ); // ownership is transferred |
550 CleanupStack::Pop( queueItem ); |
547 CleanupStack::Pop( queueItem ); |
551 err = KErrNone; |
548 err = KErrNone; |
552 iPendingEvents++; |
549 iPendingEvents++; |
553 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - added to queue" ); |
550 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - added to queue" ); |
554 } |
551 } |