#include <mntd_volume.h>
Data Fields | |
char * | udi |
Store udi data. | |
char * | device |
Store device name. | |
char * | mntpnt |
Store mount point. | |
char * | fstype |
Store filesystem name. | |
char * | base |
Store mount point base path. | |
char * | prefix |
Store mount point prefix. | |
int | last_signal |
Store last sent signal. | |
int(* | init )(PVOLUME pv) |
Constructor. | |
void(* | destroy )(PVOLUME pv) |
Destructor. | |
int(* | _send_signal )(PVOLUME pv, int what) |
Send signal to processes listing to dbus. | |
int(* | _send_mounted )(PVOLUME pv) |
Send mounted signal to processes listing to dbus. | |
int(* | _send_unmounted )(PVOLUME pv) |
Send unmounted signal to processes listing to dbus. | |
int(* | set_device )(PVOLUME pv, const char *device) |
Set device name. | |
char *(* | get_device )(PVOLUME pv) |
Get device name. | |
void(* | to_string )(PVOLUME pv) |
Show Device Info. | |
int(* | set_mntpnt )(PVOLUME pv, const char *mntpnt) |
Set device mount point. | |
char *(* | get_mntpnt )(PVOLUME pv) |
Get device mount point. | |
int(* | set_fstype )(PVOLUME pv, const char *fstype) |
Set device mount point. | |
char *(* | get_fstype )(PVOLUME pv) |
Get device filesystem name. | |
int(* | mount )(PVOLUME pv) |
Mount device. | |
int(* | umount )(PVOLUME pv) |
Unmount device. | |
int(* | remount )(PVOLUME pv, int flag) |
Remount specific mount point rd/rw. | |
int(* | is_in_mntpath )(PVOLUME pv) |
Check, if volume is in mount path. |
Definition at line 63 of file mntd_volume.h.
|
Destructor.
Referenced by mntd_volume_manager_func_free(), and new_Volume(). |
|
Get device name. String within device name will be copied (with strdup), so you have to free it.
Referenced by new_Volume(). |
|
Get device filesystem name. String within filesystem name will be copied (with strdup), so you have to free it.
Referenced by new_Volume(). |
|
Get device mount point. String within mount point will be copied (with strdup), so you have to free it.
Referenced by mntd_dbus_manager_get_mntpnt(), mntd_volume_manager_get_mntpnt(), mntd_volume_umount(), and new_Volume(). |
|
Check, if volume is in mount path.
Referenced by new_Volume(). |
|
Mount device.
Referenced by mntd_volume_set_device(), and new_Volume(). |
|
Remount specific mount point rd/rw.
Referenced by mntd_dbus_manager_remount(), mntd_volume_destroy(), mntd_volume_manager_remount(), and new_Volume(). |
|
Set device name.
Referenced by new_Volume(). |
|
Set device mount point.
Referenced by mntd_volume_umount(), and new_Volume(). |
|
Set device mount point.
Referenced by mntd_volume_mount(), mntd_volume_umount(), and new_Volume(). |
|
Show Device Info.
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.
Referenced by mntd_volume_destroy(), and new_Volume(). |