Bug 435471
Summary: | sg_turs reports false number when --number and --progress given | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Milos Malik <mmalik> |
Component: | sg3_utils | Assignee: | Phil Knirsch <pknirsch> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.1 | CC: | dhorak, rvokal |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-03-20 09:30:24 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Milos Malik
2008-02-29 15:55:18 UTC
There is misunderstanding of the --progress option. It shows a progress of a SCSI command for a busy device, not a progress of the whole test. See the full explanation of the --progress option in the man page, especially the "exits when" part: "show progress indication (a percentage) if available. If --number=NUM is given and NUM is greater than 1 then waits 30 seconds before subsequent checks. Exits when NUM is reached or there is no more progress indication. Ignores --time option." Becuase in your test case the device is not busy with any operation, then there can be no progress to show, so it exits immediately. You should see a "progress" when trying the following commands: sg_format --format /dev/foo ; sg_turs --progress --num=100 /dev/foo the formatting makes the device busy and that's why it cannot respond as "ready" This conclusion is a result of studying the source code and a consultation with the upstream author. |