-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Type: FeatureFeature request or new featureFeature request or new featuregood first issueIndicates a good issue for first-time contributorsIndicates a good issue for first-time contributors
Description
System information
| Type | Version/Name |
|---|---|
| Distribution Name | all |
| Distribution Version | all |
| Linux Kernel | all |
| Architecture | all |
| ZFS Version | all |
| SPL Version | all |
Describe the problem you're observing
There are no safeguards when destroying. Whatever is the argument of zfs destroy, it will get destroyed. Issuers of the destroy command are humans and humans can make mistakes: for example in shell scripts that generate destroy commands, typos etc.
A minimal protection mechanism could reject a destroy action if the type of the dataset to be destroyed does not match the dataset type specified in command line, similar to how zfs list -t works, so for example zfs destroy -t filesystem pool/volumename or zfs destroy -t snapshot pool/filesystem would fail.
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
Rydako, QBANIN, paranoidi, JoshuaSjoding, rgessner and 5 morescineramCroneKorkN
Metadata
Metadata
Assignees
Labels
Type: FeatureFeature request or new featureFeature request or new featuregood first issueIndicates a good issue for first-time contributorsIndicates a good issue for first-time contributors