After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659739 - Allow creating fake removable device volumes for testing
Allow creating fake removable device volumes for testing
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-09-21 15:57 UTC by Sam Thursfield
Modified: 2011-09-21 16:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sam Thursfield 2011-09-21 15:57:43 UTC
gvfs-mount localtest:/// is cool, but it would be even better if it could be configured to imitate a removable device. This would allow writing functional tests that exercise removable device handling, improving on the current process of plugging a USB stick in and out many times.

The best way I see to implement is make this configurable by some new environment variables. It would probably also be helpful if the URI specified a location in the FS to use as root, so I could mount localtest:///home/sam/my-test-data rather than exposing /.
Comment 1 David Zeuthen (not reading bugmail) 2011-09-21 16:28:37 UTC
You can already do this by implementing your own GVolumeMonitor thanks to the gio-volume-monitor extension point

 http://developer.gnome.org/gio/unstable/GVolumeMonitor.html#G-VOLUME-MONITOR-EXTENSION-POINT-NAME:CAPS

For example, see how GVfs does this. Closing as FIXED in lieu of a WORKSFORME resolution.