Watch for changes on the md/sync_action and md/degraded sysfs files
authorDavid Zeuthen <zeuthen@gmail.com>
Wed, 12 Sep 2012 20:33:12 +0000 (16:33 -0400)
committerDavid Zeuthen <zeuthen@gmail.com>
Wed, 12 Sep 2012 20:33:12 +0000 (16:33 -0400)
commit4d77cf5fff66bd5537727e036ee933c3ad46b03c
treea59212dc2d7833a42336fca7207d144cf2d91f5c
parentb7d99c50d60e39edd9a59fe24e714cc86a21cf2e
Watch for changes on the md/sync_action and md/degraded sysfs files

The md(4) driver does not use the usual uevent 'change' mechanism for
notification - instead it excepts user-space to select(2)-ish on a fd
for the sysfs attribute. Annoying. See

 http://www.kernel.org/doc/Documentation/md.txt

for more details.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
src/udiskslinuxmdraid.c
src/udiskslinuxmdraidobject.c