GNOME Bugzilla – Bug 648980
Drive's with media tagged as flash, flash_cf, etc. should be automounted.
Last modified: 2011-05-03 11:54:50 UTC
Created attachment 186903 [details] [review] Patch to make flash drives automountable. gvfs is very cautious about which volumes it automounts and currently only takes into account the type of interconnect -- with only usb, firewire, and sdio being allowd -- and if the device is an optical disc. We should add logic that makes an exception for flash devices tagged by udisks with ID_DRIVE_FLASH* attributes. The attached patch implements this feature.
For the record, this was reported as automount failure for an internal flash reader which is directly on the PCI bus, not USB (as most flash readers are). See https://launchpad.net/bugs/759963 for details. The approach of the patch looks fine to me, the "media" property from udisks is a known value. It should just drop the unnecessary drive_media declaration in the second hunk and fix the broken indentation. Thanks Ayan!
Created attachment 187097 [details] [review] Automount flash card readers This fixes the indentation and unnecessary declaration, and adds the git changelog. OK for me to commit?
Comment on attachment 187097 [details] [review] Automount flash card readers (In reply to comment #2) > Created an attachment (id=187097) [details] [review] > Automount flash card readers > > This fixes the indentation and unnecessary declaration, and adds the git > changelog. > > OK for me to commit? Looks good to me. Thanks to you and Ayan for tracking this down! Signed-off-by: David Zeuthen <davidz@redhat.com>
Thanks for the review! Pushed.