Print this page
    
6198 Let's EOL cachefs
    
      
        | Split | Close | 
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/uts/common/sys/filio.h
          +++ new/usr/src/uts/common/sys/filio.h
   1    1  /*
   2    2   * CDDL HEADER START
   3    3   *
   4    4   * The contents of this file are subject to the terms of the
   5    5   * Common Development and Distribution License (the "License").
   6    6   * You may not use this file except in compliance with the License.
   7    7   *
   8    8   * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9   * or http://www.opensolaris.org/os/licensing.
  10   10   * See the License for the specific language governing permissions
  11   11   * and limitations under the License.
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  
    | ↓ open down ↓ | 13 lines elided | ↑ open up ↑ | 
  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 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  24   25   */
  25   26  
  26   27  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  27   28  /*        All Rights Reserved   */
  28   29  
  29   30  /*
  30   31   * University Copyright- Copyright (c) 1982, 1986, 1988
  31   32   * The Regents of the University of California
  32   33   * All Rights Reserved
  33   34   *
  34   35   * University Acknowledgment- Portions of this document are derived from
  35   36   * software developed by the University of California, Berkeley, and its
  36   37   * contributors.
  37   38   */
  38   39  
  39   40  /*
  40   41   * Copyright (c) 2013 by Delphix. All rights reserved.
  41   42   */
  42   43  
  43   44  #ifndef _SYS_FILIO_H
  44   45  #define _SYS_FILIO_H
  45   46  
  46   47  /*
  47   48   * General file ioctl definitions.
  48   49   */
  49   50  
  50   51  #include <sys/ioccom.h>
  51   52  
  52   53  #ifdef  __cplusplus
  53   54  extern "C" {
  54   55  #endif
  55   56  
  56   57  #define FIOCLEX         _IO('f', 1)             /* set exclusive use on fd */
  57   58  #define FIONCLEX        _IO('f', 2)             /* remove exclusive use */
  58   59  /* another local */
  59   60  #define FIONREAD        _IOR('f', 127, int)     /* get # bytes to read */
  60   61  #define FIONBIO         _IOW('f', 126, int)     /* set/clear non-blocking i/o */
  61   62  #define FIOASYNC        _IOW('f', 125, int)     /* set/clear async i/o */
  62   63  #define FIOSETOWN       _IOW('f', 124, int)     /* set owner */
  63   64  #define FIOGETOWN       _IOR('f', 123, int)     /* get owner */
  64   65  
  65   66  /*
  66   67   * ioctl's for Online: DiskSuite.
  67   68   * WARNING - the support for these ioctls may be withdrawn
  68   69   * in future OS releases.
  69   70   */
  70   71  #define _FIOLFS         _IO('f', 64)            /* file system lock */
  71   72  #define _FIOLFSS        _IO('f', 65)            /* file system lock status */
  72   73  #define _FIOFFS         _IO('f', 66)            /* file system flush */
  73   74  #define _FIOAI          _FIOOBSOLETE67          /* get allocation info is */
  74   75  #define _FIOOBSOLETE67  _IO('f', 67)            /* obsolete and unsupported */
  75   76  #define _FIOSATIME      _IO('f', 68)            /* set atime */
  76   77  #define _FIOSDIO        _IO('f', 69)            /* set delayed io */
  77   78  #define _FIOGDIO        _IO('f', 70)            /* get delayed io */
  78   79  #define _FIOIO          _IO('f', 71)            /* inode open */
  79   80  #define _FIOISLOG       _IO('f', 72)            /* disksuite/ufs protocol */
  80   81  #define _FIOISLOGOK     _IO('f', 73)            /* disksuite/ufs protocol */
  
    | ↓ open down ↓ | 47 lines elided | ↑ open up ↑ | 
  81   82  #define _FIOLOGRESET    _IO('f', 74)            /* disksuite/ufs protocol */
  82   83  
  83   84  /*
  84   85   * Contract-private ioctl()
  85   86   */
  86   87  #define _FIOISBUSY      _IO('f', 75)            /* networker/ufs protocol */
  87   88  #define _FIODIRECTIO    _IO('f', 76)            /* directio */
  88   89  #define _FIOTUNE        _IO('f', 77)            /* tuning */
  89   90  
  90   91  /*
  91      - * WARNING: These 'f' ioctls are also defined in sys/fs/cachefs_fs.h
  92      - * It currently defines 78-86.
  93      - */
  94      -
  95      -/*
  96   92   * Internal Logging UFS
  97   93   */
  98   94  #define _FIOLOGENABLE   _IO('f', 87)            /* logging/ufs protocol */
  99   95  #define _FIOLOGDISABLE  _IO('f', 88)            /* logging/ufs protocol */
 100   96  
 101   97  /*
 102   98   * File system snapshot ioctls (see sys/fs/ufs_snap.h)
 103   99   * (there is another snapshot ioctl, _FIOSNAPSHOTCREATE_MULTI,
 104  100   * defined farther down in this file.)
 105  101   */
 106  102  #define _FIOSNAPSHOTCREATE      _IO('f', 89)    /* create a snapshot */
 107  103  #define _FIOSNAPSHOTDELETE      _IO('f', 90)    /* delete a snapshot */
 108  104  
 109  105  /*
 110  106   * Return the current superblock of size SBSIZE
 111  107   */
 112  108  #define _FIOGETSUPERBLOCK       _IO('f', 91)
 113  109  
 114  110  /*
 115  111   * Contract private ioctl
 116  112   */
 117  113  #define _FIOGETMAXPHYS          _IO('f', 92)
 118  114  
 119  115  /*
 120  116   * TSufs support
 121  117   */
 122  118  #define _FIO_SET_LUFS_DEBUG     _IO('f', 93) /* set lufs_debug */
 123  119  #define _FIO_SET_LUFS_ERROR     _IO('f', 94) /* set a lufs error */
 124  120  #define _FIO_GET_TOP_STATS      _IO('f', 95) /* get lufs tranaction stats */
 125  121  
 126  122  /*
 127  123   * create a snapshot with multiple backing files
 128  124   */
 129  125  #define _FIOSNAPSHOTCREATE_MULTI        _IO('f', 96)
 130  126  
 131  127  /*
 132  128   * handle lseek SEEK_DATA and SEEK_HOLE for holey file knowledge
 133  129   */
 134  130  #define _FIO_SEEK_DATA          _IO('f', 97) /* SEEK_DATA */
 135  131  #define _FIO_SEEK_HOLE          _IO('f', 98) /* SEEK_HOLE */
 136  132  
 137  133  /*
 138  134   * boot archive compression
 139  135   */
 140  136  #define _FIO_COMPRESSED         _IO('f', 99) /* mark file as compressed */
 141  137  
 142  138  /*
 143  139   * Expose fill information through ioctl
 144  140   */
 145  141  #define _FIO_COUNT_FILLED       _IO('f', 100)   /* count holes in a file */
 146  142  
 147  143  #ifdef  __cplusplus
 148  144  }
 149  145  #endif
 150  146  
 151  147  #endif  /* _SYS_FILIO_H */
  
    | ↓ open down ↓ | 46 lines elided | ↑ open up ↑ | 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX