Skip to content

Conversation

Itxaka
Copy link
Contributor

@Itxaka Itxaka commented Mar 17, 2022

This mainly reuses the udevInfo method to obtain the udev info for a
given partition in a given disk instead of having the label value always
empty.

This separates the udevInfo method into 2 distinct methods, one for disk
and one for partition.

This also opens the possibility of obtaining more info for partitions,
i.e. the FS of an unmounted partition.

Signed-off-by: Itxaka igarcia@suse.com

This mainly reuses the udevInfo method to obtain the udev info for a
given partition in a given disk instead of having the label value always
empty.

This separates the udevInfo method into 2 distinct methods, one for disk
and one for partition.

This also opens the possibility of obtaining more info for partitions,
i.e. the FS of an unmounted partition.

Signed-off-by: Itxaka <igarcia@suse.com>
@ffromani
Copy link
Collaborator

thanks @Itxaka , looks good! any chance to add unit tests to cover this change?

@Itxaka
Copy link
Contributor Author

Itxaka commented Mar 18, 2022

Sure!

Signed-off-by: Itxaka <igarcia@suse.com>
@Itxaka
Copy link
Contributor Author

Itxaka commented Mar 18, 2022

@fromanirh tests added :)

Copy link
Collaborator

@ffromani ffromani 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, thanks for the updates!

@ffromani ffromani merged commit b55aa0e into jaypipes:main Mar 18, 2022
@jaypipes
Copy link
Owner

@Itxaka thanks very much for your contribution! really appreciated! :)

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.

3 participants