int mount(const char *specialfile, const char * dir , const char * filesystemtype, unsigned long mountflags , const void * data);
mount attaches the filesystem specified by specialfile (which is often a device name) to the directory specified by dir.
umount removes the attachment of the (topmost) filesystem mounted on dir.
Only the super-user may mount and unmount filesystems.
The filesystemtype argument may take one of the values listed in /proc/filesystems (like ''
The mountflags argument may have the magic number 0xC0ED in the top 16 bits, and various mount flags (as defined in ''
The error values given below result from filesystem type independent errors. Each filesystem type may have its own special errors and its own special behavior. See the kernel source code for details.
The user is not the super-user.
Filesystemtype not configured in the kernel.
Specialfile is not a block device (if a device was required).
Specialfile is already mounted. Or, it cannot be remounted read-only, because it still holds files open for writing. Or, it cannot be mounted on dir because dir is still busy (it is the working directory of some task, the mount point of another device, has open files, etc.).
Specialfile had an invalid superblock. Or, a remount was attempted, while specialfile was not already mounted on dir. Or, an umount was attempted, while dir was not a mount point.
One of the pointer arguments points outside the user address space.
The kernel could not allocate a free page to copy filenames or data into.
A pathname was longer than MAXPATHLEN.
A pathname was empty or had a nonexistent component.
The second argument, or a prefix of the first argument, is not a directory.
A component of a path was not searchable. Or, mounting a read-only filesystem was attempted without giving the MS_RDONLY flag. Or, the block device Specialfile is located on a filesystem mounted with the MS_NODEV option.
The major number of the block device specialfile is out of range.
The original umount function was called as umount(device) and would return ENOTBLK when called with something other than a block device. In Linux 0.98p4 a call umount(dir) was added, in order to support anonymous devices. In Linux 2.3.99-pre7 the call umount(device) was removed, leaving only umount(dir) (since now devices can be mounted in more than one place, so specifying the device does not suffice).
lib/main.php:944: Notice: PageInfo: Cannot find action page