Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1011951

Summary: Audit --force and prompt use in lvm commands
Product: Red Hat Enterprise Linux 7 Reporter: Alasdair Kergon <agk>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
lvm2 sub component: Default / Unclassified QA Contact: cluster-qe <cluster-qe>
Status: CLOSED NOTABUG Docs Contact:
Severity: low    
Priority: low CC: agk, cmarthal, dwysocha, heinzm, jbrassow, jhradile, mcsontos, msnitzer, nperic, prajnoha, rbednar, slevine, thornber, zkabelac
Version: 7.0Keywords: FutureFeature, Triaged
Target Milestone: pre-dev-freeze   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 887240 Environment:
Last Closed: 2020-08-19 21:18:19 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:
Bug Depends On:    
Bug Blocks: 1469559    

Description Alasdair Kergon 2013-09-25 12:40:53 UTC
+++ This bug was initially created as a clone of Bug #887240 +++

Always accept -f with all commands, including ones where they do nothing, to make scripting/testing simpler.  Consider an arg to suppress all prompts - something the external library requires.

Comment 1 Marian Csontos 2013-09-25 13:02:57 UTC
Would an environment variable be a better choice so one can use same scripts to run by hand and by automated tools?

Comment 2 Alasdair Kergon 2013-09-25 13:14:35 UTC
We could add an environment variable as well, containing a (restricted?) set of default arguments applied to all commands, but let's not further extend this bugzilla.

Comment 3 Jonathan Earl Brassow 2014-09-24 03:20:49 UTC
Audit of the 'force' option will need to wait for 6.7.