X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Fvfs_ext.h;h=8cabfa18f4facde6afe5c071c7d083237a28c96c;hb=d1530bb39a40caa7ce083245905c13f8e6399c96;hp=df68c4c5a080d6c8af8bf2cecfc681168c76783f;hpb=0e280aab008d3b1dda0fd3e441291430fe188dbc;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/vfs_ext.h b/KernelLand/Kernel/include/vfs_ext.h index df68c4c5..8cabfa18 100644 --- a/KernelLand/Kernel/include/vfs_ext.h +++ b/KernelLand/Kernel/include/vfs_ext.h @@ -338,6 +338,19 @@ extern char *VFS_GetTruePath(const char *Path); * \return 1 on succes, -1 on error */ extern int VFS_Mount(const char *Device, const char *MountPoint, const char *Filesystem, const char *Options); +/** + * \brief Unmount a mounted filesystem + * \param Mountpoint Location of the mount + * \return 0 on success, errno on error + */ +extern int VFS_Unmount(const char *Mountpoint); +/** + * \brief Attemt to unmount all fileystems + * \return Number of unmounted filesytems, -1 if none left to unmount + * \note Can return 0 when there are stil volumes mounted if there are open handles + */ +extern int VFS_UnmountAll(void); + /** * \brief Create a new directory * \param Path Path to new directory (absolute or relative)