make remount work

This commit is contained in:
Glenn Maynard
2005-01-27 03:54:49 +00:00
parent 67d5bfd6d5
commit 7df474b776
4 changed files with 15 additions and 5 deletions
+4 -2
View File
@@ -503,13 +503,15 @@ void RageFileManager::Remount( CString sMountpoint, CString sPath )
RageFileDriver *pDriver = FILEMAN->GetFileDriver( sMountpoint );
if( pDriver == NULL )
{
LOG->Warn( "Remount(%s,%s): mountpoint not found",
sMountpoint.c_str(), sPath.c_str() );
if( LOG )
LOG->Warn( "Remount(%s,%s): mountpoint not found", sMountpoint.c_str(), sPath.c_str() );
return;
}
if( !pDriver->Remount(sPath) )
LOG->Warn( "Remount(%s,%s): remount failed (does the driver support remounting?)" );
else
pDriver->FlushDirCache( "" );
FILEMAN->ReleaseFileDriver( pDriver );
}