Print this page
6536 zfs send: want a way to disable sending of free records
Reviewed by: Alexander Stetsenko <astetsenko@racktopsystems.com>
Reviewed by: Kim Shrier <kshrier@racktopsystems.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/dmu_send.h
          +++ new/usr/src/uts/common/fs/zfs/sys/dmu_send.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 (c) 2012, 2014 by Delphix. All rights reserved.
  25   25   * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  26   26   * Copyright (c) 2013, Joyent, Inc. All rights reserved.
       27 + * Copyright 2015 RackTop Systems.
  27   28   */
  28   29  
  29   30  #ifndef _DMU_SEND_H
  30   31  #define _DMU_SEND_H
  31   32  
  32   33  #include <sys/inttypes.h>
  33   34  #include <sys/spa.h>
  34   35  
  35   36  struct vnode;
  36   37  struct dsl_dataset;
  37   38  struct drr_begin;
  38   39  struct avl_tree;
  39   40  struct dmu_replay_record;
  40   41  
  41   42  extern const char *recv_clone_name;
  42   43  
  43   44  int dmu_send(const char *tosnap, const char *fromsnap, boolean_t embedok,
  44      -    boolean_t large_block_ok, int outfd, uint64_t resumeobj, uint64_t resumeoff,
  45      -    struct vnode *vp, offset_t *off);
       45 +    boolean_t large_block_ok, boolean_t skip_free, int outfd,
       46 +    uint64_t resumeobj, uint64_t resumeoff, struct vnode *vp, offset_t *off);
  46   47  int dmu_send_estimate(struct dsl_dataset *ds, struct dsl_dataset *fromds,
  47   48      uint64_t *sizep);
  48   49  int dmu_send_estimate_from_txg(struct dsl_dataset *ds, uint64_t fromtxg,
  49   50      uint64_t *sizep);
  50   51  int dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap,
  51      -    boolean_t embedok, boolean_t large_block_ok,
       52 +    boolean_t embedok, boolean_t large_block_ok, boolean_t skip_free,
  52   53      int outfd, struct vnode *vp, offset_t *off);
  53   54  
  54   55  typedef struct dmu_recv_cookie {
  55   56          struct dsl_dataset *drc_ds;
  56   57          struct dmu_replay_record *drc_drr_begin;
  57   58          struct drr_begin *drc_drrb;
  58   59          const char *drc_tofs;
  59   60          const char *drc_tosnap;
  60   61          boolean_t drc_newfs;
  61   62          boolean_t drc_byteswap;
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX