Skip to content

Commit

Permalink
first round of fixes and modifications after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Caputi committed Feb 10, 2017
1 parent ee782bc commit c4daa03
Show file tree
Hide file tree
Showing 71 changed files with 2,816 additions and 1,644 deletions.
7 changes: 5 additions & 2 deletions cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2489,7 +2489,7 @@ dump_one_dir(const char *dsname, void *arg)
}

dump_dir(os);
dmu_objset_disown(os, FTAG);
dmu_objset_disown(os, B_FALSE, FTAG);
fuid_table_destroy();
sa_loaded = B_FALSE;
return (0);
Expand Down Expand Up @@ -4122,7 +4122,10 @@ main(int argc, char **argv)
zdb_read_block(argv[i], spa);
}

(os != NULL) ? dmu_objset_disown(os, FTAG) : spa_close(spa, FTAG);
if (os != NULL)
dmu_objset_disown(os, B_FALSE, FTAG);
else
spa_close(spa, FTAG);

fuid_table_destroy();
sa_loaded = B_FALSE;
Expand Down
2 changes: 1 addition & 1 deletion cmd/zed/agents/zfs_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ zfs_enable_ds(void *arg)

assert(pool->uap_enable_tid = pthread_self());

(void) zpool_enable_datasets(pool->uap_zhp, NULL, 0, B_FALSE);
(void) zpool_enable_datasets(pool->uap_zhp, NULL, 0);
zpool_close(pool->uap_zhp);
pool->uap_zhp = NULL;

Expand Down
Loading

0 comments on commit c4daa03

Please sign in to comment.