userlibandfileserver/fileserver/sfsrv/cl_cli.cpp
changeset 291 206a6eaaeb71
parent 271 dc268b18d709
equal deleted inserted replaced
289:55a0a1279a7e 291:206a6eaaeb71
   830 	}
   830 	}
   831 
   831 
   832 
   832 
   833 
   833 
   834 
   834 
   835 EFSRV_EXPORT_C TInt RFs::RemountDrive(TInt aDrive,const TDesC8* aMountInfo,TUint aFlags)
       
   836 /**
   835 /**
   837 Forces a remount of the specified drive.
   836 Forces a remount of the specified drive.
   838 
   837 
   839 @param aDrive     The drive for which a remount is to be forced.
   838 @param aDrive     The drive for which a remount is to be forced.
   840 @param aMountInfo Information passed down to the media driver. The meaning of
   839 @param aMountInfo Information passed down to the media driver. The meaning of
   841                   this information depends on the media driver, for example,
   840                   this information depends on the media driver, for example,
   842                   keys for secure areas.
   841                   keys for secure areas.
   843 @param aFlags     When the flag is set to
   842 
   844                   0x00000001 - Used to simulate ejecting and re-inserting the media.
   843 @param aFlags     one of the flags specified in RFs::TForceMediaChangeFlags and describing the way 
   845                   0x80000000 - used to force the media driver for the specified logical
   844                   drive is going to be remounted.   
   846                                drive to be closed and reopened.
   845 
   847 
   846 @return KErrNone if successful, otherwise one of the other system wide error codes.
   848 @return KErrNone if successful, otherwise one of
   847 */
   849         the other system wide error codes.
   848 EFSRV_EXPORT_C TInt RFs::RemountDrive(TInt aDrive,const TDesC8* aMountInfo,TUint aFlags)
   850 */
       
   851 	{
   849 	{
   852 	OstTraceExt4(TRACE_BORDER, EFSRV_EFSREMOUNTDRIVE, "sess %x aDrive %d aMountInfo %x aFlags %x", (TUint) Handle(), aDrive, (TUint) aMountInfo, (TUint) aFlags);
   850 	OstTraceExt4(TRACE_BORDER, EFSRV_EFSREMOUNTDRIVE, "sess %x aDrive %d aMountInfo %x aFlags %x", (TUint) Handle(), aDrive, (TUint) aMountInfo, (TUint) aFlags);
   853 	TInt r = SendReceive(EFsRemountDrive,TIpcArgs(aDrive,aMountInfo,aFlags));
   851 	TInt r = SendReceive(EFsRemountDrive,TIpcArgs(aDrive,aMountInfo,aFlags));
   854 	OstTrace1(TRACE_BORDER, EFSRV_EFSREMOUNTDRIVERETURN, "r %d", r);
   852 	OstTrace1(TRACE_BORDER, EFSRV_EFSREMOUNTDRIVERETURN, "r %d", r);
   855 	return r;
   853 	return r;