[bugs] [illumos gate - Feature #1163] zpool destroy should prompt user

illumos bugs bugs at lists.illumos.org
Fri Jul 8 15:14:51 PDT 2011


Issue #1163 has been updated by Garrett D'Amore.


THIS IS A TERRIBLE IDEA.

Zpool force avoids a bunch of checks.  It should not be used just because you want to use scripting.  Don't break the interface here. 
This bug gets a heartfelt -1 in my opinion.

Commands should not need to prompt for verification.  If you have permission to run these commands (e.g. as root), then you better know what you're doing.

----------------------------------------
Feature #1163: zpool destroy should prompt user
https://www.illumos.org/issues/1163

Author: Roy Sigurd Karlsbakk
Status: New
Priority: Normal
Assignee: sham pavman
Category: 
Target version: 
Difficulty: Medium
Tags: needs-triage


Hi all

Destroying a beadm will prompt the admin:

<pre>
root at mime:~# beadm destroy oi-likewise
Are you sure you want to destroy oi-likewise?
This action cannot be undone (y/[n]):
</pre>

In my opinion, changing zpool and perhaps zfs to do the same would be a jolly good idea....

roy



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the bugs mailing list