USB sticks don't have can_stop == True
Submitted by Martin Pitt
Assigned to gvf..@..e.bugs
Link to original bug (#695281)
Description
https://git.gnome.org/browse/gvfs/commit/?id=b3f72bac introduced a very nice heuristics for Eject vs. Safe Remove, i. e. setting can_stop.
https://git.gnome.org/browse/gvfs/commit/?id=cc6d3d29 limits this to media which don't have removable media. This is very sensible of course, as in general we want to show "Eject" for things like USB CD-Drives or MMC card readers.
The practical (and old and well-known) problem is that most USB sticks lie about this and claim that they have removable media. I. e.
$ cat /sys/block/sdb/removable 1
which is what ultimately determines drive->is_media_removable, I believe.
It would be nice if we could loosen this requirement for can_stop, or add some heuristics to either gvfs' udisks2 monitor or udisks itself, but I realize this is going to be tricky. In particular, MMC/SD card readers look almost exactly like USB sticks sysfs-wise, except for having things like "Multi-Card" in their description and other device drivers.
Any ideas about that?
Version: git master