Functions | |
PVOLUME | new_Volume (const char *udi, const char *base) |
Generate new Volume Object. | |
int | mntd_volume_init (PVOLUME pv) |
Constructor. | |
void | mntd_volume_destroy (PVOLUME pv) |
Destructor. | |
void | mntd_volume_to_string (PVOLUME pv) |
Show Device Info. | |
int | mntd_volume_set_device (PVOLUME pv, const char *device) |
Set device name. | |
char * | mntd_volume_get_device (PVOLUME pv) |
Get device name. | |
int | mntd_volume_set_mntpnt (PVOLUME pv, const char *mntpnt) |
Set device mount point. | |
char * | mntd_volume_get_mntpnt (PVOLUME pv) |
Get device mount point. | |
int | mntd_volume_set_fstype (PVOLUME pv, const char *fstype) |
Set device mount point. | |
char * | mntd_volume_get_fstype (PVOLUME pv) |
Get device filesystem name. | |
int | mntd_volume_mount (PVOLUME pv) |
Mount device. | |
int | mntd_volume_umount (PVOLUME pv) |
Unmount device. | |
char * | mntd_volume_g_build_mntpnt (PVOLUME pv, const char *base) |
Helper: Build mount point path. | |
int | mntd_volume_helper_base_is_in_mntpath (const char *base, const char *mntpnt) |
Check, if base is part of mntpnt. | |
int | mntd_volume_is_in_mntpath (PVOLUME pv) |
Check, if volume is in mount path. | |
int | mntd_volume_send_mounted (PVOLUME pv) |
Send mounted signal to processes listing to dbus. | |
int | mntd_volume_send_unmounted (PVOLUME pv) |
Send unmounted signal to processes listing to dbus. | |
int | mntd_volume_send_signal (PVOLUME pv, int what) |
Send signal to processes listing to dbus. |
|
Destructor.
Definition at line 173 of file mntd_volume.c. Referenced by new_Volume(). |
|
Helper: Build mount point path.
Definition at line 634 of file mntd_volume.c. References MSG_WARNING. Referenced by mntd_volume_mount(). |
|
Get device name. String within device name will be copied (with strdup), so you have to free it.
Definition at line 303 of file mntd_volume.c. Referenced by new_Volume(). |
|
Get device filesystem name. String within filesystem name will be copied (with strdup), so you have to free it.
Definition at line 457 of file mntd_volume.c. Referenced by new_Volume(). |
|
Get device mount point. String within mount point will be copied (with strdup), so you have to free it.
Definition at line 386 of file mntd_volume.c. Referenced by new_Volume(). |
|
Check, if base is part of mntpnt.
Definition at line 684 of file mntd_volume.c. Referenced by mntd_volume_is_in_mntpath(). |
|
Constructor.
Definition at line 154 of file mntd_volume.c. Referenced by new_Volume(). |
|
Check, if volume is in mount path.
Definition at line 742 of file mntd_volume.c. References mntd_volume_helper_base_is_in_mntpath(). Referenced by new_Volume(). |
|
Mount device.
Definition at line 476 of file mntd_volume.c. References mntd_dir_is_dir(), mntd_dir_mkdirs(), mntd_dir_remove(), mntd_dir_rmdirs(), mntd_mount_mount(), mntd_volume_g_build_mntpnt(), MSG_ERR, and MSG_INF. Referenced by new_Volume(). |
|
Send mounted signal to processes listing to dbus.
Definition at line 761 of file mntd_volume.c. References mntd_dbus_manager_send_signal_volume_mounted(), and MSG_DEBUG. Referenced by new_Volume(). |
|
Send signal to processes listing to dbus.
Definition at line 810 of file mntd_volume.c. Referenced by new_Volume(). |
|
Send unmounted signal to processes listing to dbus.
Definition at line 784 of file mntd_volume.c. References mntd_dbus_manager_send_signal_volume_unmounted(), and MSG_DEBUG. Referenced by new_Volume(). |
|
Set device name.
Definition at line 249 of file mntd_volume.c. References MSG_DEBUG. Referenced by new_Volume(). |
|
Set device mount point.
Definition at line 406 of file mntd_volume.c. Referenced by new_Volume(). |
|
Set device mount point.
Definition at line 323 of file mntd_volume.c. References MSG_DEBUG. Referenced by new_Volume(). |
|
Show Device Info.
Definition at line 226 of file mntd_volume.c. References MSG_DEBUG. Referenced by new_Volume(). |
|
Unmount device. Unmount device, if it is mounted by mntd, or if it's mounted in the path mntd is responsible for. So be careful, what you mount manually and don't want to be unmounted by mntd. Default is "/mnt/mntd" path, so your normal devices on "/mnt" will not be touched.
Definition at line 563 of file mntd_volume.c. References mntd_dir_remove(), mntd_mount_umount(), MSG_ERR, and MSG_INF. Referenced by new_Volume(). |
|
Generate new Volume Object.
Definition at line 80 of file mntd_volume.c. References mntd_volume_destroy(), mntd_volume_get_device(), mntd_volume_get_fstype(), mntd_volume_get_mntpnt(), mntd_volume_init(), mntd_volume_is_in_mntpath(), mntd_volume_mount(), mntd_volume_send_mounted(), mntd_volume_send_signal(), mntd_volume_send_unmounted(), mntd_volume_set_device(), mntd_volume_set_fstype(), mntd_volume_set_mntpnt(), mntd_volume_to_string(), and mntd_volume_umount(). Referenced by mntd_volume_manager_add_volume(). |