Bug 835717
Summary: | liblvm: should not write to stdout or try to read from stdin | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andy Grover <agrover> |
Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | rawhide | CC: | agk, bmarzins, bmr, dwysocha, heinzm, jbrassow, jonathan, lvm-team, msnitzer, prajnoha, zkabelac |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-06 01:05:21 UTC | 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
Andy Grover
2012-06-26 23:12:19 UTC
At the moment, the settings in lvm.conf are supposed to control this, and these can be overridden with lvm_config_override. Well lvm.conf doesn't let you turn these off completely - something else to fix. See also bug 851287 for some of the consequences. It must be possible to disable all direct use of stdin and stdout (and stderr?) by the library. First step: a "silent" mode that suppresses non-essential tool output. https://lists.fedorahosted.org/pipermail/lvm2-commits/2012-August/000160.html The library calls from python will then be made always to run with this mode set (and shouldn't be using the display/reporting tools that still produce stdout anyway). When silent is set, yes_no_arg needs changing always to take the safe default instead of prompting. libdevmapper needs a similar review looking for anything written to stdout/read from stdin. Then when in silent mode, stdin/stdout will no longer be used and so the setvbuf calls can be skipped. This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19 |