fix memory card temp file write in Linux
This commit is contained in:
@@ -208,9 +208,10 @@ void MemoryCardDriver_Linux::GetStorageDevices( vector<UsbStorageDevice>& vDevic
|
|||||||
|
|
||||||
bool MemoryCardDriver_Linux::MountAndTestWrite( UsbStorageDevice* pDevice )
|
bool MemoryCardDriver_Linux::MountAndTestWrite( UsbStorageDevice* pDevice )
|
||||||
{
|
{
|
||||||
if( !pDevice->sOsMountDir.empty() )
|
if( pDevice->sOsMountDir.empty() )
|
||||||
return false;
|
return false;
|
||||||
CString sCommand = "mount " + pDevice->sOsMountDir;
|
CString sCommand = "mount " + pDevice->sOsMountDir;
|
||||||
|
LOG->Trace( "executing '%s'", sCommand.c_str() );
|
||||||
system( sCommand );
|
system( sCommand );
|
||||||
|
|
||||||
// Try to write a file.
|
// Try to write a file.
|
||||||
@@ -233,6 +234,7 @@ void MemoryCardDriver_Linux::Unmount( UsbStorageDevice* pDevice )
|
|||||||
if( !pDevice->sOsMountDir.empty() )
|
if( !pDevice->sOsMountDir.empty() )
|
||||||
return;
|
return;
|
||||||
CString sCommand = "umount " + pDevice->sOsMountDir;
|
CString sCommand = "umount " + pDevice->sOsMountDir;
|
||||||
|
LOG->Trace( "executing '%s'", sCommand.c_str() );
|
||||||
system( sCommand );
|
system( sCommand );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user