diff options
author | smh <smh@FreeBSD.org> | 2014-10-03 14:49:48 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2014-10-03 14:49:48 +0000 |
commit | c04b03f65b3f4b79ad23811725f0e618ed563674 (patch) | |
tree | b6e6ada2716056c44adeed5c016b93fd5359d4d3 /share | |
parent | 5b5794dafb7a69e42733ef0870ee37f0e82b8457 (diff) | |
download | FreeBSD-src-c04b03f65b3f4b79ad23811725f0e618ed563674.zip FreeBSD-src-c04b03f65b3f4b79ad23811725f0e618ed563674.tar.gz |
Fix various issues with zvols
When performing snapshot renames we could deadlock due to the locking
in zvol_rename_minors. In order to avoid this use the same workaround
as zvol_open in zvol_rename_minors.
Add missing zvol_rename_minors to dsl_dataset_promote_sync.
Protect against invalid index into zv_name in zvol_remove_minors.
Replace zvol_remove_minor calls with zvol_remove_minors to ensure
any potential children are also renamed.
Don't fail zvol_create_minors if zvol_create_minor returns EEXIST.
Restore the valid pool check in zfs_ioc_destroy_snaps to ensure we
don't call zvol_remove_minors when zfs_unmount_snap fails.
PR: 193803
MFC after: 1 week
Sponsored by: Multiplay
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions