equal
deleted
inserted
replaced
389 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsDelete" ); |
389 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsDelete" ); |
390 fileEventType = EMdsFileDeleted; |
390 fileEventType = EMdsFileDeleted; |
391 break; |
391 break; |
392 |
392 |
393 case EFsFormatOpen: |
393 case EFsFormatOpen: |
|
394 { |
394 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsFormatOpen" ); |
395 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsFormatOpen" ); |
395 // get the drive letter |
396 // get the drive letter |
396 err = iFsSession.Volume( volInfo, drvNumber ); |
397 RFsPlugin fsplugin( aRequest ); |
|
398 const TInt rfsPluginError( fsplugin.Connect() ); |
|
399 if( rfsPluginError == KErrNone ) |
|
400 { |
|
401 err = fsplugin.Volume( volInfo, drvNumber ); |
|
402 } |
|
403 else |
|
404 { |
|
405 err = iFsSession.Volume( volInfo, drvNumber ); |
|
406 } |
|
407 fsplugin.Close(); |
|
408 |
397 if( KErrNone == err ) |
409 if( KErrNone == err ) |
398 { |
410 { |
399 iFormatOldMediaId = volInfo.iUniqueID; |
411 iFormatOldMediaId = volInfo.iUniqueID; |
400 iFormatDriveNumber = drvNumber; |
412 iFormatDriveNumber = drvNumber; |
401 fileEventType = EMdsDriveFormatted; |
413 fileEventType = EMdsDriveFormatted; |
404 else |
416 else |
405 { |
417 { |
406 iFormatDriveNumber = -1; |
418 iFormatDriveNumber = -1; |
407 } |
419 } |
408 return KErrNone; |
420 return KErrNone; |
|
421 } |
409 |
422 |
410 case EFsFormatSubClose: |
423 case EFsFormatSubClose: |
411 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsFormatSubClose" ); |
424 WRITELOG( "CMdsFileServerPlugin::DoRequestL() - EFsFormatSubClose" ); |
412 if ( iFormatDriveNumber < 0 ) |
425 if ( iFormatDriveNumber < 0 ) |
413 { |
426 { |