diff options
author | ahrens <none@none> | 2006-11-03 11:39:28 -0800 |
---|---|---|
committer | ahrens <none@none> | 2006-11-03 11:39:28 -0800 |
commit | 614409b5be5411058e7e9b6cc93dddaff9fb13f7 (patch) | |
tree | 994d814287dee3e4d808d3f845b3f62e5c99acbc /usr/src/cmd/zdb | |
parent | ada9354b28215e27f2a3b25b9c352681c9cbdfa1 (diff) | |
download | illumos-gate-614409b5be5411058e7e9b6cc93dddaff9fb13f7.tar.gz |
6472021 vdev knobs can not be turned
Diffstat (limited to 'usr/src/cmd/zdb')
-rw-r--r-- | usr/src/cmd/zdb/zdb.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/src/cmd/zdb/zdb.c b/usr/src/cmd/zdb/zdb.c index 1fa0a6b408..a834f95e12 100644 --- a/usr/src/cmd/zdb/zdb.c +++ b/usr/src/cmd/zdb/zdb.c @@ -2056,6 +2056,8 @@ out: int main(int argc, char **argv) { + extern int zfs_vdev_cache_size; + int i, c; struct rlimit rl = { 1024, 1024 }; spa_t *spa; @@ -2065,7 +2067,6 @@ main(int argc, char **argv) int verbose = 0; int error; int flag, set; - vdev_knob_t *vk; (void) setrlimit(RLIMIT_NOFILE, &rl); (void) enable_extended_FILE_stdio(-1, -1); @@ -2147,10 +2148,7 @@ main(int argc, char **argv) * Disable vdev caching. If we don't do this, live pool traversal * won't make progress because it will never see disk updates. */ - for (vk = vdev_knob_next(NULL); vk != NULL; vk = vdev_knob_next(vk)) { - if (strcmp(vk->vk_name, "cache_size") == 0) - vk->vk_default = 0; - } + zfs_vdev_cache_size = 0; for (c = 0; c < 256; c++) { if (dump_all && c != 'L' && c != 'l' && c != 'R') |