X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fvfs%2Fmount.c;h=69a66238babd4081c998e686d0ad29db97de84b8;hb=975f0f89b7a643abd7cc463d788dad34ac014b65;hp=eb6a5b1fdb91abf25bcca0369aaf45bc85c407e1;hpb=243bdab4e7acc8516d9b1c138f45dc1195f97767;p=tpg%2Facess2.git diff --git a/Kernel/vfs/mount.c b/Kernel/vfs/mount.c index eb6a5b1f..69a66238 100644 --- a/Kernel/vfs/mount.c +++ b/Kernel/vfs/mount.c @@ -1,7 +1,7 @@ /* * Acess Micro - VFS Server version 1 */ -#include +#include #include #include #include @@ -21,21 +21,21 @@ tVFS_Mount *gVFS_RootMount = NULL; // === CODE === /** - * \fn int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *ArgString) + * \fn int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *Options) * \brief Mount a device * \param Device Device string to mount * \param MountPoint Destination for the mount * \param Filesystem Filesystem to use for the mount - * \param ArgString Options to be passed to the filesystem + * \param Options Options to be passed to the filesystem * \return -1 on Invalid FS, -2 on No Mem, 0 on success */ -int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *ArgString) +int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *Options) { tVFS_Mount *mnt; tVFS_Driver *fs; int deviceLen = strlen(Device); int mountLen = strlen(MountPoint); - int argLen = strlen(ArgString); + int argLen = strlen(Options); // Get the filesystem fs = VFS_GetFSByName(Filesystem); @@ -66,7 +66,7 @@ int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *ArgString) memcpy( mnt->MountPoint, MountPoint, mountLen+1 ); mnt->Options = &mnt->StrData[deviceLen+1+mountLen+1]; - memcpy( mnt->Options, ArgString, argLen+1 ); + memcpy( mnt->Options, Options, argLen+1 ); // Initialise Volume mnt->RootNode = fs->InitDevice(Device, NULL); //&ArgString);