Skip to content

get_bdev Function #1

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

Merged
merged 1 commit into from
Jul 8, 2025
Merged

get_bdev Function #1

merged 1 commit into from
Jul 8, 2025

Conversation

LukeBeirne
Copy link

Adds a function that returns the
correct block device handle from
the vdev_disk_t struct defined
in vdev_disk.c.

The purpose of this addition is
to use this function to get the
block device handle to pass to
zia_disk_open from zia_open_vdevs,
which currently just casts a
vdev_disk_t object to a block device *,
leading to failure if the operation
does not fallback.

Adds a function that returns the
correct block device handle from
the vdev_disk_t struct defined
in vdev_disk.c.

The purpose of this addition is
to use this function to get the
block device handle to pass to
zia_disk_open from zia_open_vdevs,
which currently just casts a
vdev_disk_t object to a block device *,
leading to failure if the operation
does not fallback.

Signed-off-by: Luke Beirne <lbeirne@lanl.gov>
@calccrypto calccrypto merged commit be42ee0 into hpc:zia Jul 8, 2025
4 checks passed
@LukeBeirne LukeBeirne deleted the get_bdev branch July 8, 2025 22:35
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