diff options
author | Karel Zak | 2013-06-18 12:24:28 +0200 |
---|---|---|
committer | Karel Zak | 2013-06-18 12:24:28 +0200 |
commit | 90a0e97c7be9da39fd54600228e006b98667ad56 (patch) | |
tree | c39f5c88f151d5f73de2168f02d3c80f99ac4a67 /text-utils/pg.1 | |
parent | agetty: improve wording, grammar and some formatting in man page (diff) | |
download | kernel-qcow2-util-linux-90a0e97c7be9da39fd54600228e006b98667ad56.tar.gz kernel-qcow2-util-linux-90a0e97c7be9da39fd54600228e006b98667ad56.tar.xz kernel-qcow2-util-linux-90a0e97c7be9da39fd54600228e006b98667ad56.zip |
eject: Check host_status and driver_status when using SG_IO.
Based on Suse patch, originally from
Anna Bernathova <anicka@suse.cz>, May 2008
SG_IO completion status is weird but still well defined. You'll need
to check both host_status, driver_status and status to determine that
a command actually succeeded. -- Tejun Heo, May 2008
Note that we also need to check driver_status and sense_buffer to
detect situation when there is no medium. It's valid request to call
eject(8) for device with no medium.
References: https://bugzilla.novell.com/show_bug.cgi?id=358033
Signed-off-by: Anna Bernathova <anicka@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/pg.1')
0 files changed, 0 insertions, 0 deletions