6694616 zvol_dump_fini should remove the allocated blocks
authorlling
Tue, 27 May 2008 13:52:26 -0700
changeset 6723 95f33d4e0a04
parent 6722 f307a66e01cd
child 6724 fe773658dad4
6694616 zvol_dump_fini should remove the allocated blocks
usr/src/uts/common/fs/zfs/zvol.c
--- a/usr/src/uts/common/fs/zfs/zvol.c	Tue May 27 13:50:08 2008 -0700
+++ b/usr/src/uts/common/fs/zfs/zvol.c	Tue May 27 13:52:26 2008 -0700
@@ -1813,6 +1813,7 @@
 
 	(void) zap_remove(os, ZVOL_ZAP_OBJ, ZVOL_DUMPSIZE, tx);
 	zvol_free_extents(zv);
+	zvol_truncate(zv, 0, DMU_OBJECT_END);
 	zv->zv_flags &= ~ZVOL_DUMPIFIED;
 	dmu_tx_commit(tx);