3233 beadm list output shows space used by BE as greater than what is on disk
authorWilliam Schumann <william.schumann@sun.com>
Tue, 02 Dec 2008 11:45:20 -0700
changeset 364 20b75cef8858
parent 363 130c19a9f4de
child 365 77fcb1a28262
3233 beadm list output shows space used by BE as greater than what is on disk
usr/src/lib/libbe/be_list.c
--- a/usr/src/lib/libbe/be_list.c	Tue Dec 02 09:19:07 2008 -0700
+++ b/usr/src/lib/libbe/be_list.c	Tue Dec 02 11:45:20 2008 -0700
@@ -909,9 +909,10 @@
 		}
 	} else {
 		if (cb->be_nodes->be_node_snapshots == NULL) {
-			int space_used;
-			zfs_handle_t *zfshp = zfs_open(g_zfs, ds_path,
-			    ZFS_TYPE_SNAPSHOT);
+			uint64_t space_used;
+			zfs_handle_t *zfshp;
+
+			zfshp = zfs_open(g_zfs, ds_path, ZFS_TYPE_SNAPSHOT);
 			cb->be_nodes->be_node_snapshots =
 			    calloc(1, sizeof (be_snapshot_list_t));
 			if (cb->be_nodes->be_node_snapshots == NULL) {