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/lib/libzfs/common/libzfs.h
          +++ new/usr/src/lib/libzfs/common/libzfs.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  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) 2011, 2015 by Delphix. All rights reserved.
  25   25   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  26   26   * Copyright (c) 2013 Steven Hartland. All rights reserved.
  27   27   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       28 + * Copyright 2015 RackTop Systems.
  28   29   */
  29   30  
  30   31  #ifndef _LIBZFS_H
  31   32  #define _LIBZFS_H
  32   33  
  33   34  #include <assert.h>
  34   35  #include <libnvpair.h>
  35   36  #include <sys/mnttab.h>
  36   37  #include <sys/param.h>
  37   38  #include <sys/types.h>
↓ open down ↓ 552 lines elided ↑ open up ↑
 590  591          boolean_t parsable;
 591  592  
 592  593          /* show progress (ie. -v) */
 593  594          boolean_t progress;
 594  595  
 595  596          /* large blocks (>128K) are permitted */
 596  597          boolean_t largeblock;
 597  598  
 598  599          /* WRITE_EMBEDDED records of type DATA are permitted */
 599  600          boolean_t embed_data;
      601 +
      602 +        /* skip free records, not receivable as a clone */
      603 +        boolean_t skip_free;
 600  604  } sendflags_t;
 601  605  
 602  606  typedef boolean_t (snapfilter_cb_t)(zfs_handle_t *, void *);
 603  607  
 604  608  extern int zfs_send(zfs_handle_t *, const char *, const char *,
 605  609      sendflags_t *, int, snapfilter_cb_t, void *, nvlist_t **);
 606  610  extern int zfs_send_one(zfs_handle_t *, const char *, int, enum lzc_send_flags);
 607  611  extern int zfs_send_resume(libzfs_handle_t *, sendflags_t *, int outfd,
 608  612      const char *);
 609  613  extern nvlist_t *zfs_send_resume_token_to_nvlist(libzfs_handle_t *hdl,
↓ open down ↓ 175 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX