From b252d7b3f74b7951bc4c5976d9c8273278854a28 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 22 Apr 2005 03:53:20 +0000 Subject: [PATCH] simplify, mount based on device, not mountpoint --- .../MemoryCard/MemoryCardDriverThreaded_Linux.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index 524d5e2c63..8c26102b1c 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -220,7 +220,7 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vector& vDevicesOut ) continue; - usbd.sDevice = "/dev/" + sDevice; + usbd.sDevice = "/dev/" + sDevice + "1"; /* * sPath/device should be a symlink to the actual device. For USB @@ -460,7 +460,7 @@ void GetNewStorageDevices( vector& vDevicesOut ) for( unsigned i=0; isOsMountDir.empty() ); - CString sCommand = "mount " + pDevice->sOsMountDir; + CString sCommand = "mount " + pDevice->sDevice; LOG->Trace( "hack mount (%s)", sCommand.c_str() ); bool bMountedSuccessfully = ExecuteCommand( sCommand ); @@ -506,7 +506,7 @@ void MemoryCardDriverThreaded_Linux::Unmount( UsbStorageDevice* pDevice ) if( pDevice->sOsMountDir.empty() ) return; - CString sCommand = "umount " + pDevice->sOsMountDir; + CString sCommand = "umount " + pDevice->sDevice; LOG->Trace( "hack unmount (%s)", sCommand.c_str() ); ExecuteCommand( sCommand ); } @@ -521,7 +521,7 @@ void MemoryCardDriverThreaded_Linux::Flush( UsbStorageDevice* pDevice ) // that the flush is completed on return. However, we can mount the filesystem // with the flag "-o sync", which forces synchronous access (but that's probably // very slow.) -glenn - ExecuteCommand( "mount -o remount " + pDevice->sOsMountDir ); + ExecuteCommand( "mount -o remount " + pDevice->sDevice ); } /*