Clarify documentation of zfs destroy
on snapshots
#17021
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
The current documentation of
zfs destroy
in application to snapshots is particularly difficult to understand.Description
The current manual page reads as follows:
I think there are a few problems:
zfs destroy
by referring to the "zfs destroy
command without the-d
option". This creates some kind of circular reference, made doubly confusing by the poor description of that option.defer_destroy
anduserrefs
. This may be intentional, but to point them out seems like useful information. Ifdefer_destroy
can be unset, that too could be mentioned.zfs destroy
when destruction is not possible. I would guess that-d
originally stood for defer, but the current description makes no mention of that.This PR introduces the following replacement:
How Has This Been Tested?
Reviewed modified documentation with
mandoc
.Types of changes
Checklist:
Signed-off-by
.