genhd: expose AN to user space
authorKristen Carlson Accardi <kristen.c.accardi@intel.com>
Wed, 23 May 2007 20:57:38 +0000 (13:57 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:11 +0000 (20:14 -0700)
commit86ce18d7b7925bfd6b64c061828ca2a857ee83b8
treeb753b7fd6d195aa7ed9eebc5a3917c5f20786260
parent352823160613b65fdaa558be486720a71f75ed86
genhd: expose AN to user space

Allow user space to determine if a disk supports Asynchronous Notification of
media changes.  This is done by adding a new sysfs file "capability_flags",
which is documented in (insert file name).  This sysfs file will export all
disk capabilities flags to user space.  We also define a new flag to define
the media change notification capability.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/block/capability.txt [new file with mode: 0644]
block/genhd.c
include/linux/genhd.h