#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/time.h>
#include <time.h>
#include <fcntl.h>
#include <sys/vfs.h>
#include <errno.h>
#include <sched.h>
#include <getopt.h>
#include "volumesvcs.h"
#include <hiker/fail.h>
#include <hiker/notifymgr.h>
#include <hiker/global_settings.h>
#include <hiker/pdk/sysutils_pdk.h>
#include <sys/ioctl.h>
Defines | |
#define | FAT_IOCTL_SET_VOLUME_LABEL 0x40047215 |
#define | MSDOS_NAME 11 |
#define | EVENT_TIMEOUT 2000 |
Functions | |
void | prv_init_rpc () |
prv_fsinfo_t * | prv_entry_match (const gchar *udi, bool allocate) |
see if we have an existing entry that matches the passed udi | |
void | prv_dump (int level) |
dump out a trace of our current view of the mounted volumes & devices | |
bool | prv_mount (prv_fsinfo_t *entry) |
mount a device entry turning it into a volume entry | |
bool | prv_umount (prv_fsinfo_t *entry) |
umount a volume turning it back into a device, which usually was just ejected | |
bool | prv_rename (prv_fsinfo_t *entry, gchar *name) |
rename a volume | |
void | prv_empty_entry (prv_fsinfo_t *entry) |
, free the contents of an entry | |
void | prv_entry_remove (prv_fsinfo_t *entry) |
remove an entry from the internal table, | |
bool | prv_bind_mount (gchar *name, gchar *path) |
gboolean | prv_timeout_cb (gpointer flag) |
bool | prv_makefs (prv_fsinfo_t *entry, const gchar *name, const gchar *fstype) |
void | prv_device_add (prv_fsinfo_t *new_entry) |
addition of a device | |
void | prv_device_remove (prv_fsinfo_t *entry) |
callback for the removal of a device | |
int | main (int argc, char **argv) |
Variables | |
int | gtracelevel = TRACELEVEL |
GArray * | gfsinfo |
GPtrArray * | gfstypes |
GArray * | gslots |