Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 605950 Details for
Bug 850402
g_volume_monitor_get_connected_drives reports no drives in F17 but does in RHEL 6.3
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Code used to test the drives function
gio2.c (text/plain), 1.32 KB, created by
Kevin DeKorte
on 2012-08-21 14:23:17 UTC
(
hide
)
Description:
Code used to test the drives function
Filename:
MIME Type:
Creator:
Kevin DeKorte
Created:
2012-08-21 14:23:17 UTC
Size:
1.32 KB
patch
obsolete
>//Compilation command: gcc gio2.c -o gio2 `pkg-config --libs --cflags gio-2.0` >//Usage: ./gio2 <directory> > >#include <glib.h> >#include <gio/gio.h> >#include <stdio.h> >#include <unistd.h> > > >int main(int argc, char** argv) { > > GVolumeMonitor *vm; > GList *l, *v; > GList *drives; > GDrive *drive; > GList *volumes; > GVolume *volume; > gchar **identifiers; > gint i; > GFile *file; > GFileAttributeInfoList *info; > GFileInputStream *input; > > g_type_init(); > > vm = g_volume_monitor_get(); > > printf("vm is %p\n", vm); > drives = g_volume_monitor_get_connected_drives(vm); > printf("drives is %p\n", drives); > > > for (l = drives; l != NULL; l = l->next) { > //printf("l is %p\n",l); > if (l != NULL) { > drive = G_DRIVE(l->data); > > printf("%s eject = %i poll = %i volumes = %i\n",g_drive_get_name(drive), g_drive_can_eject(drive), g_drive_can_poll_for_media(drive), g_drive_has_volumes(drive)); > > identifiers = g_drive_enumerate_identifiers(drive); > > i = 0; > while (identifiers[i] != NULL) { > //printf("identifier[%i] = %s\n",i,identifiers[i]); > i++; > } > > printf("Unix device = %s\n", g_drive_get_identifier(drive,"unix-device")); > > volumes = g_drive_get_volumes(drive); > for (v = volumes; v != NULL; v = v->next) { > volume = G_VOLUME(v->data); > //printf("volume = %s\n", g_volume_get_name(volume)); > } > } > > } > > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 850402
: 605950