Print this page
6198 Let's EOL cachefs

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/vfs.h
          +++ new/usr/src/uts/common/sys/vfs.h
↓ 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) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  23      - * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       23 + * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
  25   25  
  26   26  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  27   27  /*        All Rights Reserved   */
  28   28  
  29   29  /*
  30   30   * Portions of this source code were derived from Berkeley 4.3 BSD
  31   31   * under license from the Regents of the University of California.
  32   32   */
  33   33  
↓ open down ↓ 30 lines elided ↑ open up ↑
  64   64   */
  65   65  typedef struct {
  66   66          int val[2];                     /* file system id type */
  67   67  } fsid_t;
  68   68  
  69   69  /*
  70   70   * File identifier.  Should be unique per filesystem on a single
  71   71   * machine.  This is typically called by a stateless file server
  72   72   * in order to generate "file handles".
  73   73   *
  74      - * Do not change the definition of struct fid ... fid_t without
  75      - * letting the CacheFS group know about it!  They will have to do at
  76      - * least two things, in the same change that changes this structure:
  77      - *   1. change CFSVERSION in usr/src/uts/common/sys/fs/cachefs_fs.h
  78      - *   2. put the old version # in the canupgrade array
  79      - *      in cachfs_upgrade() in usr/src/cmd/fs.d/cachefs/fsck/fsck.c
  80      - * This is necessary because CacheFS stores FIDs on disk.
  81      - *
  82   74   * Many underlying file systems cast a struct fid into other
  83   75   * file system dependent structures which may require 4 byte alignment.
  84   76   * Because a fid starts with a short it may not be 4 byte aligned, the
  85   77   * fid_pad will force the alignment.
  86   78   */
  87   79  #define MAXFIDSZ        64
  88   80  #define OLD_MAXFIDSZ    16
  89   81  
  90   82  typedef struct fid {
  91   83          union {
↓ open down ↓ 530 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX