Print this page
2882 implement libzfs_core
2883 changing "canmount" property to "on" should not always remount dataset
2900 "zfs snapshot" should be able to create multiple, arbitrary snapshots at once
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Chris Siden <christopher.siden@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Bill Pijewski <wdp@joyent.com>
Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com>


   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   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) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.

  25  */
  26 
  27 #ifndef _SYS_SUNDDI_H
  28 #define _SYS_SUNDDI_H
  29 
  30 /*
  31  * Sun Specific DDI definitions
  32  */
  33 
  34 #include <sys/isa_defs.h>
  35 #include <sys/dditypes.h>
  36 #include <sys/ddipropdefs.h>
  37 #include <sys/devops.h>
  38 #include <sys/time.h>
  39 #include <sys/cmn_err.h>
  40 #include <sys/ddidevmap.h>
  41 #include <sys/ddi_impldefs.h>
  42 #include <sys/ddi_implfuncs.h>
  43 #include <sys/ddi_isa.h>
  44 #include <sys/model.h>


 443 #if __cplusplus >= 199711L
 444 extern const char *strchr(const char *, int);
 445 #ifndef _STRCHR_INLINE
 446 #define _STRCHR_INLINE
 447 extern  "C++" {
 448         inline char *strchr(char *__s, int __c) {
 449                 return (char *)strchr((const char *)__s, __c);
 450         }
 451 }
 452 #endif  /* _STRCHR_INLINE */
 453 #else
 454 extern char *strchr(const char *, int);
 455 #endif  /* __cplusplus >= 199711L */
 456 #define DDI_STRSAME(s1, s2)     ((*(s1) == *(s2)) && (strcmp((s1), (s2)) == 0))
 457 extern int strcmp(const char *, const char *) __PURE;
 458 extern int strncmp(const char *, const char *, size_t) __PURE;
 459 extern char *strncat(char *, const char *, size_t);
 460 extern size_t strlcat(char *, const char *, size_t);
 461 extern size_t strlcpy(char *, const char *, size_t);
 462 extern size_t strspn(const char *, const char *);

 463 extern int bcmp(const void *, const void *, size_t) __PURE;
 464 extern int stoi(char **);
 465 extern void numtos(ulong_t, char *);
 466 extern void bcopy(const void *, void *, size_t);
 467 extern void bzero(void *, size_t);
 468 
 469 extern void *memcpy(void *, const  void  *, size_t);
 470 extern void *memset(void *, int, size_t);
 471 extern void *memmove(void *, const void *, size_t);
 472 extern int memcmp(const void *, const void *, size_t) __PURE;
 473 /* Need to be consistent with <string.h> C++ definition for memchr() */
 474 #if __cplusplus >= 199711L
 475 extern const void *memchr(const void *, int, size_t);
 476 #ifndef _MEMCHR_INLINE
 477 #define _MEMCHR_INLINE
 478 extern "C++" {
 479         inline void *memchr(void * __s, int __c, size_t __n) {
 480                 return (void *)memchr((const void *)__s, __c, __n);
 481         }
 482 }




   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   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) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.
  25  * Copyright (c) 2012 by Delphix. All rights reserved.
  26  */
  27 
  28 #ifndef _SYS_SUNDDI_H
  29 #define _SYS_SUNDDI_H
  30 
  31 /*
  32  * Sun Specific DDI definitions
  33  */
  34 
  35 #include <sys/isa_defs.h>
  36 #include <sys/dditypes.h>
  37 #include <sys/ddipropdefs.h>
  38 #include <sys/devops.h>
  39 #include <sys/time.h>
  40 #include <sys/cmn_err.h>
  41 #include <sys/ddidevmap.h>
  42 #include <sys/ddi_impldefs.h>
  43 #include <sys/ddi_implfuncs.h>
  44 #include <sys/ddi_isa.h>
  45 #include <sys/model.h>


 444 #if __cplusplus >= 199711L
 445 extern const char *strchr(const char *, int);
 446 #ifndef _STRCHR_INLINE
 447 #define _STRCHR_INLINE
 448 extern  "C++" {
 449         inline char *strchr(char *__s, int __c) {
 450                 return (char *)strchr((const char *)__s, __c);
 451         }
 452 }
 453 #endif  /* _STRCHR_INLINE */
 454 #else
 455 extern char *strchr(const char *, int);
 456 #endif  /* __cplusplus >= 199711L */
 457 #define DDI_STRSAME(s1, s2)     ((*(s1) == *(s2)) && (strcmp((s1), (s2)) == 0))
 458 extern int strcmp(const char *, const char *) __PURE;
 459 extern int strncmp(const char *, const char *, size_t) __PURE;
 460 extern char *strncat(char *, const char *, size_t);
 461 extern size_t strlcat(char *, const char *, size_t);
 462 extern size_t strlcpy(char *, const char *, size_t);
 463 extern size_t strspn(const char *, const char *);
 464 extern size_t strcspn(const char *, const char *);
 465 extern int bcmp(const void *, const void *, size_t) __PURE;
 466 extern int stoi(char **);
 467 extern void numtos(ulong_t, char *);
 468 extern void bcopy(const void *, void *, size_t);
 469 extern void bzero(void *, size_t);
 470 
 471 extern void *memcpy(void *, const  void  *, size_t);
 472 extern void *memset(void *, int, size_t);
 473 extern void *memmove(void *, const void *, size_t);
 474 extern int memcmp(const void *, const void *, size_t) __PURE;
 475 /* Need to be consistent with <string.h> C++ definition for memchr() */
 476 #if __cplusplus >= 199711L
 477 extern const void *memchr(const void *, int, size_t);
 478 #ifndef _MEMCHR_INLINE
 479 #define _MEMCHR_INLINE
 480 extern "C++" {
 481         inline void *memchr(void * __s, int __c, size_t __n) {
 482                 return (void *)memchr((const void *)__s, __c, __n);
 483         }
 484 }