Skip to content

Commit

Permalink
Update to onnv_147
Browse files Browse the repository at this point in the history
This is the last official OpenSolaris tag before the public
development tree was closed.
  • Loading branch information
behlendorf committed Aug 26, 2010
1 parent 1980602 commit 572e285
Show file tree
Hide file tree
Showing 101 changed files with 7,810 additions and 2,423 deletions.
2 changes: 1 addition & 1 deletion ZFS.RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ssh://[email protected]/hg/onnv/onnv-gate/onnv_141
ssh://[email protected]/hg/onnv/onnv-gate/onnv_147
29 changes: 18 additions & 11 deletions cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,12 +695,12 @@ dump_ddt(ddt_t *ddt, enum ddt_type type, enum ddt_class class)
return;
ASSERT(error == 0);

count = ddt_object_count(ddt, type, class);
if ((count = ddt_object_count(ddt, type, class)) == 0)
return;

dspace = doi.doi_physical_blocks_512 << 9;
mspace = doi.doi_fill_count * doi.doi_data_block_size;

ASSERT(count != 0); /* we should have destroyed it */

ddt_object_name(ddt, type, class, name);

(void) printf("%s: %llu entries, size %llu on disk, %llu in core\n",
Expand Down Expand Up @@ -1290,8 +1290,12 @@ dump_znode(objset_t *os, uint64_t object, void *data, size_t size)
VERIFY(zap_lookup(os, MASTER_NODE_OBJ, ZFS_SA_ATTRS,
8, 1, &sa_attrs) == 0);
}
sa_attr_table = sa_setup(os, sa_attrs,
zfs_attr_table, ZPL_END);
if ((error = sa_setup(os, sa_attrs, zfs_attr_table,
ZPL_END, &sa_attr_table)) != 0) {
(void) printf("sa_setup failed errno %d, can't "
"display znode contents\n", error);
return;
}
sa_loaded = B_TRUE;
}

Expand Down Expand Up @@ -1455,15 +1459,15 @@ dump_object(objset_t *os, uint64_t object, int verbosity, int *print_header)
}

if (object == 0) {
dn = os->os_meta_dnode;
dn = DMU_META_DNODE(os);
} else {
error = dmu_bonus_hold(os, object, FTAG, &db);
if (error)
fatal("dmu_bonus_hold(%llu) failed, errno %u",
object, error);
bonus = db->db_data;
bsize = db->db_size;
dn = ((dmu_buf_impl_t *)db)->db_dnode;
dn = DB_DNODE((dmu_buf_impl_t *)db);
}
dmu_object_info_from_dnode(dn, &doi);

Expand Down Expand Up @@ -1627,8 +1631,8 @@ dump_dir(objset_t *os)

dump_object(os, 0, verbosity, &print_header);
object_count = 0;
if (os->os_userused_dnode &&
os->os_userused_dnode->dn_type != 0) {
if (DMU_USERUSED_DNODE(os) != NULL &&
DMU_USERUSED_DNODE(os)->dn_type != 0) {
dump_object(os, DMU_USERUSED_OBJECT, verbosity, &print_header);
dump_object(os, DMU_GROUPUSED_OBJECT, verbosity, &print_header);
}
Expand Down Expand Up @@ -3072,8 +3076,11 @@ main(int argc, char **argv)
fatal("can't open '%s': %s",
target, strerror(ENOMEM));
}
if ((error = spa_import(name, cfg, NULL)) != 0)
error = spa_import_verbatim(name, cfg, NULL);
if ((error = spa_import(name, cfg, NULL,
ZFS_IMPORT_MISSING_LOG)) != 0) {
error = spa_import(name, cfg, NULL,
ZFS_IMPORT_VERBATIM);
}
}
}

Expand Down
Loading

0 comments on commit 572e285

Please sign in to comment.