Print this page
6536 zfs send: want a way to disable setting of DRR_FLAG_FREERECORDS
Reviewed by: Anil Vijarnia <avijarnia@racktopsystems.com>
Reviewed by: Kim Shrier <kshrier@racktopsystems.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/zfs_ioctl.h
          +++ new/usr/src/uts/common/fs/zfs/sys/zfs_ioctl.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright (c) 2012, 2015 by Delphix. All rights reserved.
       24 + * Copyright 2016 RackTop Systems.
  24   25   */
  25   26  
  26   27  #ifndef _SYS_ZFS_IOCTL_H
  27   28  #define _SYS_ZFS_IOCTL_H
  28   29  
  29   30  #include <sys/cred.h>
  30   31  #include <sys/dmu.h>
  31   32  #include <sys/zio.h>
  32   33  #include <sys/dsl_deleg.h>
  33   34  #include <sys/spa.h>
↓ open down ↓ 83 lines elided ↑ open up ↑
 117  118   * The low order two bits indicate the header type: SUBSTREAM (0x1)
 118  119   * or COMPOUNDSTREAM (0x2).  Using two bits for this is historical:
 119  120   * this field used to be a version number, where the two version types
 120  121   * were 1 and 2.  Using two bits for this allows earlier versions of
 121  122   * the code to be able to recognize send streams that don't use any
 122  123   * of the features indicated by feature flags.
 123  124   */
 124  125  
 125  126  #define DMU_BACKUP_MAGIC 0x2F5bacbacULL
 126  127  
      128 +/*
      129 + * Send stream flags.  Bits 24-31 are reserved for vendor-specific
      130 + * implementations and should not be used.
      131 + */
 127  132  #define DRR_FLAG_CLONE          (1<<0)
 128  133  #define DRR_FLAG_CI_DATA        (1<<1)
 129  134  /*
 130  135   * This send stream, if it is a full send, includes the FREE and FREEOBJECT
 131  136   * records that are created by the sending process.  This means that the send
 132  137   * stream can be received as a clone, even though it is not an incremental.
 133  138   * This is not implemented as a feature flag, because the receiving side does
 134  139   * not need to have implemented it to receive this stream; it is fully backwards
 135  140   * compatible.  We need a flag, though, because full send streams without it
 136  141   * cannot necessarily be received as a clone correctly.
↓ open down ↓ 295 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX