commit | bf18bee547d19fde314e7b6b81f21f68b46c8a92 | [log] [tgz] |
---|---|---|
author | Colin Lord <clord@redhat.com> | Mon Jun 06 14:15:22 2016 -0400 |
committer | Kevin Wolf <kwolf@redhat.com> | Wed Jun 08 10:21:09 2016 +0200 |
tree | 5af96a2d939c297aa695eb5934d799292b5714e5 | |
parent | 2a9170bcd4980cdd75791f3aa0f762c5e53334bb [diff] |
blockdev: clean up error handling in do_open_tray Returns negative error codes and accompanying error messages in cases where the device has no tray or the tray is locked and isn't forced open. This extra information should result in better flexibility in functions that call do_open_tray. Suggested by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Colin Lord <clord@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>