Go to the previous, next section.

mount and umount

SYNOPSIS

int mount(const char *specialfile, const char *dir, const char *filesystemtype,unsigned long rwflag, const void *data);

int umount(const char *specialfile);

PARAMETERS

specialfile: [in] points to the path of the file system to mount.

dir: [in] points to the directory where to mount the file system.

filesystemtype: [in] the type of file system.

rwflag: [in] specifies read/write accesses to the file system.

data: [in] fs dependent parameters.

DESCRIPTION

mount mounts the file system and umount unmounts it. Only a task with superuser privileges may call those two syscalls.

The rwflag parameter may take the one or more of following or'ed values:

MS_RDONLY
mount read-only.

MS_NOSUID
ignore suid and sgid bits.

MS_NODEV
disallow access to device special files.

MS_NOEXEC
disallow program execution.

MS_SYNC
writes are synced at once.

MS_REMOUNT
alter flags of a mounted FS.

RETURN VALUE

Go to the previous, next section.