Print this page
4012 Upper limit of zfs set bounds check for refreservation on volumes is too low

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 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   27   * Copyright (c) 2013 Steven Hartland. All rights reserved.
       28 + * Copyright 2013 DEY Storage Systems, Inc.
  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 ↓ 555 lines elided ↑ open up ↑
 593  594  extern int zfs_send(zfs_handle_t *, const char *, const char *,
 594  595      sendflags_t *, int, snapfilter_cb_t, void *, nvlist_t **);
 595  596  
 596  597  extern int zfs_promote(zfs_handle_t *);
 597  598  extern int zfs_hold(zfs_handle_t *, const char *, const char *,
 598  599      boolean_t, int);
 599  600  extern int zfs_hold_nvl(zfs_handle_t *, int, nvlist_t *);
 600  601  extern int zfs_release(zfs_handle_t *, const char *, const char *, boolean_t);
 601  602  extern int zfs_get_holds(zfs_handle_t *, nvlist_t **);
 602  603  extern uint64_t zvol_volsize_to_reservation(uint64_t, nvlist_t *);
      604 +extern uint64_t zvol_volsize_to_reservation_impl(uint64_t volsize,
      605 +    uint64_t volblocksize, int ncopies);
 603  606  
 604  607  typedef int (*zfs_userspace_cb_t)(void *arg, const char *domain,
 605  608      uid_t rid, uint64_t space);
 606  609  
 607  610  extern int zfs_userspace(zfs_handle_t *, zfs_userquota_prop_t,
 608  611      zfs_userspace_cb_t, void *);
 609  612  
 610  613  extern int zfs_get_fsacl(zfs_handle_t *, nvlist_t **);
 611  614  extern int zfs_set_fsacl(zfs_handle_t *, boolean_t, nvlist_t *);
 612  615  
↓ open down ↓ 147 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX