Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

Mount helper for mounting/unmounting devices
[MNT daemon]

Some helper functions for mounting and unmounting device on a directory. More...

Functions

int mntd_mount_mount (const char *options, const char *device, const char *mntpnt)
 Mount device to mntpnt with options (with system() call at the moment).

int mntd_mount_umount (const char *options, const char *path)
 Unmount device with options (with system() call at the moment).


Detailed Description

Some helper functions for mounting and unmounting device on a directory.


Function Documentation

int mntd_mount_mount const char *  options,
const char *  device,
const char *  mntpnt
 

Mount device to mntpnt with options (with system() call at the moment).

Parameters:
options Options for mount
device Device
mntpnt Mount point
Returns:
0 if successful, -1 otherwise

Definition at line 53 of file mntd_mount.c.

Referenced by mntd_volume_mount().

int mntd_mount_umount const char *  options,
const char *  path
 

Unmount device with options (with system() call at the moment).

Parameters:
options Options for umount
path Path to umount (dir | device)
Returns:
0 if successful, -1 otherwise

Definition at line 85 of file mntd_mount.c.

Referenced by mntd_volume_umount().


Generated on Thu May 27 23:27:29 2004 for Mntd by doxygen 1.3.5