Make on_same_seat() also work for drive objects
authorDavid Zeuthen <davidz@redhat.com>
Sun, 22 Apr 2012 14:07:23 +0000 (10:07 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sun, 22 Apr 2012 14:07:23 +0000 (10:07 -0400)
commit11dbea1c6655f101db541e7258bcb91b0e5d2a8d
treeeefbf14380ae3c75f4aca81deb145c55d32a6fd0
parentd1782cf834ef4baff8ffd1c91305f80dbf9a6640
Make on_same_seat() also work for drive objects

Otherwise it won't work when used for the Drive.Eject() method which
operates on a Drive object instead of a Block object.

Also use Drive:seat instead of peeking into the udev database.

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/udisksdaemonutil.c