Illumos #1346: zfs incremental receive may leave behind temporary clones

1356 zfs dataset prefetch code not working
Reviewed by: Matthew Ahrens <matt@delphix.com>
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Approved by: Gordon Ross <gwr@nexenta.com>

References to Illumos issue:
  https://www.illumos.org/issues/1346
  https://www.illumos.org/issues/1356

Ported-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #647
This commit is contained in:
Martin Matuska 2012-04-08 13:16:46 -04:00 committed by Brian Behlendorf
parent 22cd4a4653
commit 7d5cd71da6
1 changed files with 4 additions and 2 deletions

View File

@ -1923,8 +1923,10 @@ top:
uint64_t cookie = 0; uint64_t cookie = 0;
int len = sizeof (zc->zc_name) - (p - zc->zc_name); int len = sizeof (zc->zc_name) - (p - zc->zc_name);
while (dmu_dir_list_next(os, len, p, NULL, &cookie) == 0) while (dmu_dir_list_next(os, len, p, NULL, &cookie) == 0) {
(void) dmu_objset_prefetch(p, NULL); if (!dataset_name_hidden(zc->zc_name))
(void) dmu_objset_prefetch(zc->zc_name, NULL);
}
} }
do { do {