> One way is to treat the SD card as a hot-pluggable device. A card > reader device model provides a connector for the SD card device model. > The SD card device model is backed by a block backend, with > non-removable medium. Card change is device hot plug. >... > Note that we could model floppies and CD-ROMs that way, too.
That's a good point. e.g. for a cdrom I'm pretty sure there's a bit somewhere that tells you whether it's a pressed cd or a cd-r. Attaching this information to a cdrom-disk device (hotplugged into a cdrom-drive) seems to make sense. Paul