Functions | |
int | mntd_mount_mount (const char *device, const char *mntpnt) |
Mount device to mntpnt with options (with system() call at the moment). | |
int | mntd_mount_umount (const char *mntpnt) |
Unmount device with options (with system() call at the moment). | |
int | _mntd_mount_remount (const char *user_opts, const char *mntpnt) |
Remount mntpnt with given options. | |
int | mntd_mount_remount_rd (const char *mntpnt) |
Remount mntpnt read only. | |
int | mntd_mount_remount_rw (const char *mntpnt) |
Remount mntpnt read/write. | |
int | mntd_mount_remount_from_configfile (const char *mntpnt) |
Remount mntpnt with options from configfile (if options are different). | |
FILE * | mntd_mount_open_mtab (void) |
Try to open mtab file. | |
int | mntd_mount_is_mounted (const char *path) |
Check if path is mounted. | |
mntent * | mntd_mount_getmntent (const char *path) |
Check if path is mounted and return the mntent structure. | |
char * | mntd_mount_getfsname (const char *path) |
Get the filesystem name for mounted path. | |
gchar * | mntd_mount_getoptions (const char *path) |
Get the filesystem options for mounted path. | |
gchar * | mntd_mount_normalize_options (const char *options) |
Normalize options string to be passed to mount. |
|
Get the filesystem name for mounted path.
Definition at line 420 of file mntd_mount.c. References mntd_mount_open_mtab(). Referenced by mntd_mount_remount_from_configfile(). |
|
Check if path is mounted and return the mntent structure.
Definition at line 380 of file mntd_mount.c. References mntd_mount_open_mtab(). |
|
Get the filesystem options for mounted path.
Definition at line 452 of file mntd_mount.c. References mntd_mount_normalize_options(), and mntd_mount_open_mtab(). Referenced by mntd_mount_remount_from_configfile(). |
|
Check if path is mounted.
Definition at line 348 of file mntd_mount.c. References mntd_mount_open_mtab(). Referenced by _mntd_mount_remount(), mntd_mount_mount(), mntd_mount_remount_from_configfile(), mntd_mount_remount_rd(), mntd_mount_remount_rw(), and mntd_mount_umount(). |
|
Mount device to mntpnt with options (with system() call at the moment).
Definition at line 59 of file mntd_mount.c. References mntd_mount_is_mounted(), mntd_mount_remount_from_configfile(), MSG_DEBUG, and MSG_ERR. Referenced by mntd_volume_mount(). |
|
Normalize options string to be passed to mount.
Definition at line 484 of file mntd_mount.c. Referenced by mntd_mount_getoptions(), and mntd_mount_remount_from_configfile(). |
|
Try to open mtab file.
Definition at line 325 of file mntd_mount.c. Referenced by mntd_mount_getfsname(), mntd_mount_getmntent(), mntd_mount_getoptions(), and mntd_mount_is_mounted(). |
|
Remount mntpnt with options from configfile (if options are different).
Definition at line 267 of file mntd_mount.c. References _mntd_mount_remount(), MNTDDATA_::configdata, ConfigData::filesystems, mntd_mount_getfsname(), mntd_mount_getoptions(), mntd_mount_is_mounted(), mntd_mount_normalize_options(), MSG_DEBUG, MSG_ERR, and MSG_WARNING. Referenced by mntd_mount_mount(). |
|
Remount mntpnt read only.
Definition at line 227 of file mntd_mount.c. References _mntd_mount_remount(), and mntd_mount_is_mounted(). Referenced by mntd_volume_remount(). |
|
Remount mntpnt read/write.
Definition at line 247 of file mntd_mount.c. References _mntd_mount_remount(), and mntd_mount_is_mounted(). Referenced by mntd_volume_remount(). |
|
Unmount device with options (with system() call at the moment).
Definition at line 115 of file mntd_mount.c. References mntd_mount_is_mounted(), MSG_DEBUG, and MSG_ERR. Referenced by mntd_volume_umount(). |