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

MNT daemon

The MNT daemon manages persistent volume objects available through a D-BUS network API. More...


Modules

group  Error conditions
 Various error messages the MNT daemon can raise.
group  D-BUS Manager
 Manager for D-BUS messages for MNT Daemon.
group  D-BUS interface biz.bambach.Mnt.Volume
 D-BUS interface for generic volume operations.
group  Mount helper for mounting/unmounting devices
 Some helper functions for mounting and unmounting device on a directory.
group  Volume Handler
 Handle Volume objects.
group  Helper for parsing config file
 Some helper functions for parsing the XML config file with expat.
group  Volume Manager Handler
 Manage Volumes in maps.

Functions

void usage (void)
 Show usage.
void sig_quit (int signum)
 Quit daemon if signal is reached.
void sig_reload (int signum)
 Reload daemon if signal is reached.
void mntd_cb_disconnect (void *user_data)
 Callback when disconnected from dbus.
int main (int argc, char *argv[])
 Entry point for MNT daemon.

Detailed Description

The MNT daemon manages persistent volume objects available through a D-BUS network API.


Function Documentation

int main int  argc,
char *  argv[]
 

Entry point for MNT daemon.

Parameters:
argc Number of arguments
argv Array of arguments
Returns:
Exit code

Definition at line 150 of file main.c.

References MNTDDATA_::configdata, ConfigData::dbus_reconnect, MNTDDATA_::disconnect, EM_TYPE_SYSLOG, emInit(), ConfigData::loglevel, MNTDDATA_::loop, main(), mntd_dbus_init(), mntd_dbus_quit(), mntd_volume_config_free(), mntd_volume_config_parse(), mntd_volume_config_reload(), ConfigData::mountpath, ConfigData::mountprefix, MSG_DEBUG, MSG_EMERG, MSG_ERR, MSG_INF, MSG_NOTICE, MSG_WARNING, new_VolumeManager(), ConfigData::pidfile, MNTDDATA_::quit_reason, sb_daemon_destroy(), sb_daemon_drop_privileges(), sb_daemon_init(), sb_daemon_is_running(), sb_daemon_is_started_by_root(), sb_daemon_is_started_suid(), sb_daemon_no_corefile(), sb_daemon_pidfile_create_and_lock(), sb_daemon_pidfile_read(), sb_daemon_pidfile_write(), sb_file_is_file(), sb_signal_restore_all_handlers(), sb_signal_set_handler(), sig_quit(), sig_reload(), ConfigData::sleep_millis, usage(), MNTDDATA_::vols, and ConfigData::wdir.

Referenced by main().

void mntd_cb_disconnect void *  user_data  ) 
 

Callback when disconnected from dbus.

Parameters:
user_data given user_data pointer

Definition at line 132 of file main.c.

References MNTDDATA_::loop, and MNTDDATA_::quit_reason.

void sig_quit int  signum  ) 
 

Quit daemon if signal is reached.

Parameters:
signum signal number to install

Definition at line 95 of file main.c.

References MNTDDATA_::loop, MNTDDATA_::quit_reason, and sb_signal_handler_t.

Referenced by main().

void sig_reload int  signum  ) 
 

Reload daemon if signal is reached.

Parameters:
signum signal number to install

Definition at line 113 of file main.c.

References MNTDDATA_::loop, MNTDDATA_::quit_reason, and sb_signal_handler_t.

Referenced by main().


Generated on Wed Mar 30 13:43:27 2005 for Mntd by  doxygen 1.3.9.1