probe-storage.c revision 00687e57f8c568d4f8fb446b6530a2942842292f
1N/A * probe-storage.c : Probe for storage devices
1N/A#ifdef HAVE_CONFIG_H
1N/Astatic dbus_bool_t
1N/A return CDUTIL_WALK_CONTINUE;
1N/A int capabilities;
1N/A char *wspeeds_mem;
if (n_wspeeds <= 0) {
libhal_changeset_set_property_strlist (cs, "storage.cdrom.write_speeds", (const char **)&wspeeds_mem);
for (i = 0; i < n_wspeeds; i++) {
char *dst, *p;
if (len == 0) {
return (dst);
int status;
free(s);
free(s);
free(s);
free(s);
static dbus_bool_t
int chg;
return (TRUE);
return (FALSE);
char *udi;
char *device_file;
char *raw_device_file;
char *drive_type;
int dos_cnt = 0;
goto out;
goto out;
goto out;
goto out;
drop_privileges ();
setup_logger ();
goto out;
goto out;
goto out;
if (!only_check_for_media) {
ret = 0;
if (is_cdrom) {
if (!got_media) {
goto out_cs;
} else if (is_floppy) {
goto out_cs;
goto out_cs;
if (is_mbr) {
if (!is_mbr) {
out:
if (fd >= 0) {
if (rfd >= 0) {
return ret;