zpool import -c -d and -s options #13485
AttilaFueloep
started this conversation in
Ideas
Replies: 1 comment
-
Answering myself, looking at the code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Should we make the
-d /dir[/device]
and-s
options ofzpool import
mutually exclusive as it's already done with-c
?Rational
Since the
-d /dir[/device]
option always overrides the-s
option andZPOOL_IMPORT_PATH=/dir zpool import -s
is just another way of sayingzpool import -d /dir
,-d
and-s
shouldn't be allowed together. (Unless I'm overlooking something of course.)Just stumbled upon this while updating the
zpool
man pages and usage messages (more on this later).Will open a PR if agreement is met.
Beta Was this translation helpful? Give feedback.
All reactions