Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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>
  • Loading branch information...
commit 261098908fcb99e5ce7add8e4d24de3a07443d48 1 parent 2ce9d0e
Richard Yao authored

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +5 2 module/zfs/zfs_ioctl.c
7 module/zfs/zfs_ioctl.c
@@ -20,6 +20,7 @@
20 20 */
21 21 /*
22 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23 + * Portions Copyright 2011 Martin Matuska
23 24 */
24 25
25 26 #include <sys/types.h>
@@ -1921,8 +1922,10 @@ zfs_ioc_dataset_list_next(zfs_cmd_t *zc)
1921 1922 uint64_t cookie = 0;
1922 1923 int len = sizeof (zc->zc_name) - (p - zc->zc_name);
1923 1924
1924   - while (dmu_dir_list_next(os, len, p, NULL, &cookie) == 0)
1925   - (void) dmu_objset_prefetch(p, NULL);
  1925 + while (dmu_dir_list_next(os, len, p, NULL, &cookie) == 0) {
  1926 + if (!dataset_name_hidden(zc->zc_name))
  1927 + (void) dmu_objset_prefetch(zc->zc_name, NULL);
  1928 + }
1926 1929 }
1927 1930
1928 1931 do {

0 comments on commit 2610989

Please sign in to comment.
Something went wrong with that request. Please try again.