]> git.hungrycats.org Git - linux/commit
[PATCH] add removeable sysfs block device attribute
authorOlaf Hering <olh@suse.de>
Wed, 14 Jul 2004 09:20:29 +0000 (02:20 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 14 Jul 2004 09:20:29 +0000 (02:20 -0700)
commit3b08aa6456c9046529ed38556b1950145eb7aa7a
treed519e6e267d2ca20713b18927a665b8b0a1fa24a
parentfd205fa2ea7d3cbe53ab9bf87de3e321eaf9bfa7
[PATCH] add removeable sysfs block device attribute

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: Greg Kroah-Hartman <greg@kroah.com>
drivers/block/genhd.c