freebsd-dev/sys/cddl
Steven Hartland 99140218aa 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
2014-10-03 14:49:48 +00:00
..
boot/zfs Diff reduction with kernel code: instruct the compiler that the data of 2014-10-02 00:13:08 +00:00
compat/opensolaris Remove sys/types.h include as per style (9) 2014-09-18 20:38:18 +00:00
contrib/opensolaris Fix various issues with zvols 2014-10-03 14:49:48 +00:00
dev Fix the stack tracing for dtrace/powerpc. 2014-09-17 02:43:47 +00:00