changeset 6723:95f33d4e0a04

6694616 zvol_dump_fini should remove the allocated blocks
author lling
date Tue, 27 May 2008 13:52:26 -0700
parents f307a66e01cd
children fe773658dad4
files usr/src/uts/common/fs/zfs/zvol.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);