• Olaf Hering's avatar
    [PATCH] add removeable sysfs block device attribute · 3b08aa64
    Olaf Hering authored
    This patch adds a /block/*/removeable sysfs attribute. A value of 1
    indicates the media can change anytime. This is a hint for userland
    to poll such devices for possible media changes, and leave all others alone.
    There is currently no way to see if a connected usb-storage device is a
    disk or a card reader. It will also show 1 for CD and ZIP drives.
    
    It was done by Patrick Mansfield a while ago. I can probably not
    sigh-off his work. ;)
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    3b08aa64
genhd.c 14.5 KB