extern char *gsVFS_MountFile;
// === PROTOTYPES ===
- int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *Options);
-void VFS_UpdateMountFile();
+#if 0
+ int VFS_Mount(const char *Device, const char *MountPoint, const char *Filesystem, const char *Options);
+#endif
+void VFS_UpdateMountFile(void);
// === GLOBALS ===
- int glVFS_MountList = 0;
+tMutex glVFS_MountList;
tVFS_Mount *gVFS_Mounts;
tVFS_Mount *gVFS_RootMount = NULL;
* \a Filesystem. The options in the string \a Options is passed to the
* driver's mount.
*/
-int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *Options)
+int VFS_Mount(const char *Device, const char *MountPoint, const char *Filesystem, const char *Options)
{
tVFS_Mount *mnt;
tVFS_Driver *fs;
if(!gVFS_RootMount) gVFS_RootMount = mnt;
// Add to mount list
- LOCK( &glVFS_MountList );
+ Mutex_Acquire( &glVFS_MountList );
{
tVFS_Mount *tmp;
mnt->Next = NULL;
gVFS_Mounts = mnt;
}
}
- RELEASE( &glVFS_MountList );
+ Mutex_Release( &glVFS_MountList );
Log_Log("VFS", "Mounted '%s' to '%s' ('%s')", Device, MountPoint, Filesystem);
*
* Updates the ProcFS mounts file buffer to match the current mounts list.
*/
-void VFS_UpdateMountFile()
+void VFS_UpdateMountFile(void)
{
int len = 0;
char *buf;