Skip to content

Commit

Permalink
Illumos openzfs#1346: zfs incremental receive may leave behind tempor…
Browse files Browse the repository at this point in the history
…ary clones

1356 zfs dataset prefetch code not working
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: Dan McDonald <[email protected]>
Approved by: Gordon Ross <[email protected]>

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

Ported-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#647
  • Loading branch information
mmatuska authored and behlendorf committed Apr 11, 2012
1 parent 22cd4a4 commit 7d5cd71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1923,8 +1923,10 @@ zfs_ioc_dataset_list_next(zfs_cmd_t *zc)
uint64_t cookie = 0;
int len = sizeof (zc->zc_name) - (p - zc->zc_name);

while (dmu_dir_list_next(os, len, p, NULL, &cookie) == 0)
(void) dmu_objset_prefetch(p, NULL);
while (dmu_dir_list_next(os, len, p, NULL, &cookie) == 0) {
if (!dataset_name_hidden(zc->zc_name))
(void) dmu_objset_prefetch(zc->zc_name, NULL);
}
}

do {
Expand Down

0 comments on commit 7d5cd71

Please sign in to comment.