-
Notifications
You must be signed in to change notification settings - Fork 59
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
Improve the README #35
Conversation
And replace templates in the example by actual values to make it more clear what values can go there.
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.
Looks good aside from the two concerns I pointed out.
Thanks for the updates.
README.md
Outdated
@@ -25,7 +25,8 @@ This specifies the type of pool to manage. | |||
Valid values for `type`: `lvm`. | |||
|
|||
##### `disks` | |||
This specifies the set of disks to use as backing storage for the pool. | |||
A list which specifies the set of disks to use as backing storage for the pool | |||
(a `/dev/` or `/dev/mapper/` prefix is prepended if the name is not an absolute path). |
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 think this is underselling what we can do. How about something like "(supported identifiers include: device node, device node basename, /dev/disk/ symlink)"
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.
Alternatively, we can provide an example of each form of identifier:
- sda
- /dev/sda
- mpathb
- /dev/mapper/mpathb
- /dev/disk/by-id/wwn-0x5000c5005bc37f3f
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.
Is there a particular capability to handle /dev/disk/ symlinks? I would suppose that if the role can handle device nodes, it will also handle symlinks to device nodes without any additional code, the point of symlinks is to behave like their target files. Or is there more to it or anything special about /dev/disk symlinks? (/dev/mapper device nodes are usually also symlinks.)
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.
It does not handle arbitrary symlinks, but it seemed worth pointing out /dev/disk symlinks because they are useful in that some of the use stable identifiers that are not subject to change across reboots, etc.
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.
Out of curiosity, why doesn't it handle arbitrary symlinks?
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.
There hasn't been any use case or request for resolving arbitrary symlinks to block devices.
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.
Looks good now. Thanks again.
No description provided.