Print this page
3740 Poor ZFS send / receive performance due to snapshot hold / release processing
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzfs/common/libzfs.h
          +++ new/usr/src/lib/libzfs/common/libzfs.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  25   25   * Copyright (c) 2012 by Delphix. All rights reserved.
  26   26   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
       27 + * Copyright (c) 2013 Steven Hartland. All rights reserved.
  27   28   */
  28   29  
  29   30  #ifndef _LIBZFS_H
  30   31  #define _LIBZFS_H
  31   32  
  32   33  #include <assert.h>
  33   34  #include <libnvpair.h>
  34   35  #include <sys/mnttab.h>
  35   36  #include <sys/param.h>
  36   37  #include <sys/types.h>
↓ open down ↓ 550 lines elided ↑ open up ↑
 587  588          boolean_t progress;
 588  589  } sendflags_t;
 589  590  
 590  591  typedef boolean_t (snapfilter_cb_t)(zfs_handle_t *, void *);
 591  592  
 592  593  extern int zfs_send(zfs_handle_t *, const char *, const char *,
 593  594      sendflags_t *, int, snapfilter_cb_t, void *, nvlist_t **);
 594  595  
 595  596  extern int zfs_promote(zfs_handle_t *);
 596  597  extern int zfs_hold(zfs_handle_t *, const char *, const char *,
 597      -    boolean_t, boolean_t, int);
      598 +    boolean_t, int);
      599 +extern int zfs_hold_nvl(zfs_handle_t *, int, nvlist_t *);
 598  600  extern int zfs_release(zfs_handle_t *, const char *, const char *, boolean_t);
 599  601  extern int zfs_get_holds(zfs_handle_t *, nvlist_t **);
 600  602  extern uint64_t zvol_volsize_to_reservation(uint64_t, nvlist_t *);
 601  603  
 602  604  typedef int (*zfs_userspace_cb_t)(void *arg, const char *domain,
 603  605      uid_t rid, uint64_t space);
 604  606  
 605  607  extern int zfs_userspace(zfs_handle_t *, zfs_userquota_prop_t,
 606  608      zfs_userspace_cb_t, void *);
 607  609  
↓ open down ↓ 150 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX