diff options
author | Ryan Moeller <[email protected]> | 2020-10-21 18:09:17 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-10-30 16:06:54 -0700 |
commit | aaeffd09bf3323b456edc1f23108fc1c04f23100 (patch) | |
tree | 500edb155546e225d3227a376b84d19374ce32a7 /include | |
parent | 0c270bb6c4518334fc082dfc3f2be47660a98ea2 (diff) |
zvol_os: Fix handling of zvol private data
zvol private data is supposed to be nulled by zvol_clear_private before
zvol_free is called as an indicator that the zvol is going away.
Implement zvol_clear_private for volmode=dev.
Assert that zvol_clear_private has been called before zvol_free.
Check that zvol_clear_private has not been called when updating
volsize. If it has, fail with ENXIO.
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Matt Macy <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #11117
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions