udev / pcmcia-cs

Dominik Brodowski linux at dominikbrodowski.net
Thu Sep 22 16:55:44 EDT 2005


Hi,

On Mon, Sep 19, 2005 at 04:51:53PM -0400, Todd Blumer wrote:
> 2.6.11 seemed to work OK. "cardctl eject" does not unmount the device,
> and obviously, just pulling the card out doesn't work either.
> Unfortunately, it's not realistic for the project to assume that people
> will umount first. If I disable udevd, then 'cardctl eject' will call
> /etc/pcmcia/ide and the hda device will still be present so the umount
> works.

However, "cardctl eject" or its equivalent, physical ejection, already 
handles the unmount for you, AFAICS: it eventually causes ide_unregister 
to be called, which itself calls unregister_blkdev() and other cleanup
functions. Also, for users it is much more important to call "umount" 
than "cardctl eject": if the card is unmounted, a physical ejection 
shouldn't do any harm (famous last words...).

	Dominik



More information about the linux-pcmcia mailing list