Skip to content
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

Merged
merged 6 commits into from
Aug 14, 2019
Merged

Improve the README #35

merged 6 commits into from
Aug 14, 2019

Conversation

pcahyna
Copy link
Member

@pcahyna pcahyna commented Aug 13, 2019

No description provided.

@pcahyna pcahyna requested a review from dwlehman August 13, 2019 18:18
Copy link
Collaborator

@dwlehman dwlehman left a 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).
Copy link
Collaborator

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)"

Copy link
Collaborator

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

Copy link
Member Author

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.)

Copy link
Collaborator

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.

Copy link
Member Author

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?

Copy link
Collaborator

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.

README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@dwlehman dwlehman left a 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.

@pcahyna pcahyna merged commit 0b64272 into linux-system-roles:master Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants