Bug 1070225
| Summary: | [RFE] Enhance lvs output when fields are invalid | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Kabelac <zkabelac> |
| Component: | lvm2 | Assignee: | Peter Rajnoha <prajnoha> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, msnitzer, prajnoha, zkabelac |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Zdenek Kabelac
2014-02-26 12:39:13 UTC
Looking at the condition when the "Percentage too large." is issued, the value must have had more than 7 characters, while 1 is reserved for the '\0' at the end of the string, 1 for the decimal point, 2 are reserved for tenths and hundredths and the rest for the integer part (3 digits). So the value must have been more than 999 for some reason, probably error case. So if percentage is not in sane 0%-100% range for a field, we could just report DM_PERCENT_INVALID as raw value with "Invalid" keyword displayed probably... |