-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zpool: allow relative vdev paths #17042
base: master
Are you sure you want to change the base?
Conversation
b9d7ba8
to
6b535be
Compare
6b535be
to
a5b1f59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I worry about safety of this, considering we allow device name specification without the /dev/
prefix. It might create uncertainty. ./file1
might be specific, assuming caller expect this and knows what is his current directory, but some file1
might not.
Good point, you could run into trouble if you had a file in your local directory with the same name as a /dev name (like a file called "sda"). How about we require a directory prefix if you're using a local file? Like |
`zpool create` won't let you use relative paths to disks. This is annoying when you want to do: zpool create tank ./diskfile But have to do.. zpool create tank `pwd`/diskfile This fixes it. Signed-off-by: Tony Hutter <[email protected]>
a5b1f59
to
d4c5c09
Compare
Ok, my latest push requires the filename to have a |
I don't think just |
Motivation and Context
Allow relative paths in
zpool create
.Description
zpool create
won't let you use relative paths to disks. This is annoying when you want to do:But have to do..
This fixes it.
How Has This Been Tested?
Manually tested
Types of changes
Checklist:
Signed-off-by
.