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>

Split Close
Expand all
Collapse all
          --- old/usr/src/common/zfs/zfs_comutil.c
          +++ new/usr/src/common/zfs/zfs_comutil.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright (c) 2012 by Delphix. All rights reserved.
  23   24   */
  24   25  
  25   26  /*
  26   27   * This file is intended for functions that ought to be common between user
  27   28   * land (libzfs) and the kernel. When many common routines need to be shared
  28   29   * then a separate file should to be created.
  29   30   */
  30   31  
  31   32  #if defined(_KERNEL)
  32   33  #include <sys/systm.h>
↓ open down ↓ 117 lines elided ↑ open up ↑
 150  151          int version = -1;
 151  152  
 152  153          for (i = 0; zfs_version_table[i].version_zpl; i++) {
 153  154                  if (zfs_version_table[i].version_zpl >= zpl_version)
 154  155                          return (zfs_version_table[i].version_spa);
 155  156          }
 156  157  
 157  158          return (version);
 158  159  }
 159  160  
 160      -const char *zfs_history_event_names[LOG_END] = {
      161 +/*
      162 + * This is the table of legacy internal event names; it should not be modified.
      163 + * The internal events are now stored in the history log as strings.
      164 + */
      165 +const char *zfs_history_event_names[ZFS_NUM_LEGACY_HISTORY_EVENTS] = {
 161  166          "invalid event",
 162  167          "pool create",
 163  168          "vdev add",
 164  169          "pool remove",
 165  170          "pool destroy",
 166  171          "pool export",
 167  172          "pool import",
 168  173          "vdev attach",
 169  174          "vdev replace",
 170  175          "vdev detach",
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX