Commit e7c9f9b
get_bdev Function
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>1 parent 5e9c322 commit e7c9f9b
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
0 commit comments