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


   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  25  * Copyright (c) 2012 by Delphix. All rights reserved.
  26  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  27  * Copyright (c) 2013 Steven Hartland. All rights reserved.

  28  */
  29 
  30 #ifndef _LIBZFS_H
  31 #define _LIBZFS_H
  32 
  33 #include <assert.h>
  34 #include <libnvpair.h>
  35 #include <sys/mnttab.h>
  36 #include <sys/param.h>
  37 #include <sys/types.h>
  38 #include <sys/varargs.h>
  39 #include <sys/fs/zfs.h>
  40 #include <sys/avl.h>
  41 #include <ucred.h>
  42 
  43 #ifdef  __cplusplus
  44 extern "C" {
  45 #endif
  46 
  47 /*


 582         boolean_t dryrun;
 583 
 584         /* parsable verbose output (ie. -P) */
 585         boolean_t parsable;
 586 
 587         /* show progress (ie. -v) */
 588         boolean_t progress;
 589 } sendflags_t;
 590 
 591 typedef boolean_t (snapfilter_cb_t)(zfs_handle_t *, void *);
 592 
 593 extern int zfs_send(zfs_handle_t *, const char *, const char *,
 594     sendflags_t *, int, snapfilter_cb_t, void *, nvlist_t **);
 595 
 596 extern int zfs_promote(zfs_handle_t *);
 597 extern int zfs_hold(zfs_handle_t *, const char *, const char *,
 598     boolean_t, int);
 599 extern int zfs_hold_nvl(zfs_handle_t *, int, nvlist_t *);
 600 extern int zfs_release(zfs_handle_t *, const char *, const char *, boolean_t);
 601 extern int zfs_get_holds(zfs_handle_t *, nvlist_t **);
 602 extern uint64_t zvol_volsize_to_reservation(uint64_t, nvlist_t *);

 603 
 604 typedef int (*zfs_userspace_cb_t)(void *arg, const char *domain,
 605     uid_t rid, uint64_t space);
 606 
 607 extern int zfs_userspace(zfs_handle_t *, zfs_userquota_prop_t,
 608     zfs_userspace_cb_t, void *);
 609 
 610 extern int zfs_get_fsacl(zfs_handle_t *, nvlist_t **);
 611 extern int zfs_set_fsacl(zfs_handle_t *, boolean_t, nvlist_t *);
 612 
 613 typedef struct recvflags {
 614         /* print informational messages (ie, -v was specified) */
 615         boolean_t verbose;
 616 
 617         /* the destination is a prefix, not the exact fs (ie, -d) */
 618         boolean_t isprefix;
 619 
 620         /*
 621          * Only the tail of the sent snapshot path is appended to the
 622          * destination to determine the received snapshot name (ie, -e).




   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  25  * Copyright (c) 2012 by Delphix. All rights reserved.
  26  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  27  * Copyright (c) 2013 Steven Hartland. All rights reserved.
  28  * Copyright 2013 DEY Storage Systems, Inc.
  29  */
  30 
  31 #ifndef _LIBZFS_H
  32 #define _LIBZFS_H
  33 
  34 #include <assert.h>
  35 #include <libnvpair.h>
  36 #include <sys/mnttab.h>
  37 #include <sys/param.h>
  38 #include <sys/types.h>
  39 #include <sys/varargs.h>
  40 #include <sys/fs/zfs.h>
  41 #include <sys/avl.h>
  42 #include <ucred.h>
  43 
  44 #ifdef  __cplusplus
  45 extern "C" {
  46 #endif
  47 
  48 /*


 583         boolean_t dryrun;
 584 
 585         /* parsable verbose output (ie. -P) */
 586         boolean_t parsable;
 587 
 588         /* show progress (ie. -v) */
 589         boolean_t progress;
 590 } sendflags_t;
 591 
 592 typedef boolean_t (snapfilter_cb_t)(zfs_handle_t *, void *);
 593 
 594 extern int zfs_send(zfs_handle_t *, const char *, const char *,
 595     sendflags_t *, int, snapfilter_cb_t, void *, nvlist_t **);
 596 
 597 extern int zfs_promote(zfs_handle_t *);
 598 extern int zfs_hold(zfs_handle_t *, const char *, const char *,
 599     boolean_t, int);
 600 extern int zfs_hold_nvl(zfs_handle_t *, int, nvlist_t *);
 601 extern int zfs_release(zfs_handle_t *, const char *, const char *, boolean_t);
 602 extern int zfs_get_holds(zfs_handle_t *, nvlist_t **);
 603 extern uint64_t zvol_volsize_to_reservation(uint64_t volsize,
 604     uint64_t volblocksize, int ncopies);
 605 
 606 typedef int (*zfs_userspace_cb_t)(void *arg, const char *domain,
 607     uid_t rid, uint64_t space);
 608 
 609 extern int zfs_userspace(zfs_handle_t *, zfs_userquota_prop_t,
 610     zfs_userspace_cb_t, void *);
 611 
 612 extern int zfs_get_fsacl(zfs_handle_t *, nvlist_t **);
 613 extern int zfs_set_fsacl(zfs_handle_t *, boolean_t, nvlist_t *);
 614 
 615 typedef struct recvflags {
 616         /* print informational messages (ie, -v was specified) */
 617         boolean_t verbose;
 618 
 619         /* the destination is a prefix, not the exact fs (ie, -d) */
 620         boolean_t isprefix;
 621 
 622         /*
 623          * Only the tail of the sent snapshot path is appended to the
 624          * destination to determine the received snapshot name (ie, -e).