Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzfs/common/libzfs.h
          +++ new/usr/src/lib/libzfs/common/libzfs.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2011 Pawel Jakub Dawidek. All rights reserved.
  25      - * Copyright (c) 2011, 2015 by Delphix. All rights reserved.
       25 + * Copyright (c) 2011, 2016 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   28   * Copyright (c) 2014 Integros [integros.com]
  29   29   * Copyright 2016 Nexenta Systems, Inc.
  30   30   * Copyright (c) 2017 Datto Inc.
  31   31   */
  32   32  
  33   33  #ifndef _LIBZFS_H
  34   34  #define _LIBZFS_H
  35   35  
↓ open down ↓ 517 lines elided ↑ open up ↑
 553  553  extern int zfs_iter_filesystems(zfs_handle_t *, zfs_iter_f, void *);
 554  554  extern int zfs_iter_snapshots(zfs_handle_t *, boolean_t, zfs_iter_f, void *);
 555  555  extern int zfs_iter_snapshots_sorted(zfs_handle_t *, zfs_iter_f, void *);
 556  556  extern int zfs_iter_snapspec(zfs_handle_t *, const char *, zfs_iter_f, void *);
 557  557  extern int zfs_iter_bookmarks(zfs_handle_t *, zfs_iter_f, void *);
 558  558  
 559  559  typedef struct get_all_cb {
 560  560          zfs_handle_t    **cb_handles;
 561  561          size_t          cb_alloc;
 562  562          size_t          cb_used;
 563      -        boolean_t       cb_verbose;
 564      -        int             (*cb_getone)(zfs_handle_t *, void *);
 565  563  } get_all_cb_t;
 566  564  
      565 +void zfs_foreach_mountpoint(libzfs_handle_t *, zfs_handle_t **, size_t,
      566 +    zfs_iter_f, void *, boolean_t);
 567  567  void libzfs_add_handle(get_all_cb_t *, zfs_handle_t *);
 568      -int libzfs_dataset_cmp(const void *, const void *);
 569  568  
 570  569  /*
 571  570   * Functions to create and destroy datasets.
 572  571   */
 573  572  extern int zfs_create(libzfs_handle_t *, const char *, zfs_type_t,
 574  573      nvlist_t *);
 575  574  extern int zfs_create_ancestors(libzfs_handle_t *, const char *);
 576  575  extern int zfs_destroy(zfs_handle_t *, boolean_t);
 577  576  extern int zfs_destroy_snaps(zfs_handle_t *, char *, boolean_t);
 578  577  extern int zfs_destroy_snaps_nvl(libzfs_handle_t *, nvlist_t *, boolean_t);
↓ open down ↓ 239 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX