Print this page
*** NO COMMENTS ***

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/lofi.h
          +++ new/usr/src/uts/common/sys/lofi.h
↓ open down ↓ 120 lines elided ↑ open up ↑
 121  121  
 122  122  typedef enum    iv_method {
 123  123          IVM_NONE,       /* no iv needed, iv is null */
 124  124          IVM_ENC_BLKNO   /* iv is logical block no. encrypted */
 125  125  } iv_method_t;
 126  126  
 127  127  struct lofi_ioctl {
 128  128          uint32_t        li_minor;
 129  129          boolean_t       li_force;
 130  130          boolean_t       li_cleanup;
      131 +        boolean_t       li_readonly;
 131  132          char    li_filename[MAXPATHLEN];
 132  133  
 133  134          /* the following fields are required for compression support */
 134  135          char    li_algorithm[MAXALGLEN];
 135  136  
 136  137          /* the following fields are required for encryption support */
 137  138          boolean_t       li_crypto_enabled;
 138  139          crypto_mech_name_t      li_cipher;      /* for data */
 139  140          uint32_t        li_key_len;             /* for data */
 140  141          char            li_key[56];     /* for data: max 448-bit Blowfish key */
↓ open down ↓ 75 lines elided ↑ open up ↑
 216  217          kmutex_t        ls_vp_lock;     /* protects ls_vp */
 217  218          kcondvar_t      ls_vp_cv;       /* signal changes to ls_vp */
 218  219          uint32_t        ls_vp_iocount;  /* # pending I/O requests */
 219  220          boolean_t       ls_vp_closereq; /* force close requested */
 220  221          u_offset_t      ls_vp_size;
 221  222          uint32_t        ls_blk_open;
 222  223          uint32_t        ls_chr_open;
 223  224          uint32_t        ls_lyr_open_count;
 224  225          int             ls_openflag;
 225  226          boolean_t       ls_cleanup;     /* cleanup on close */
      227 +        boolean_t       ls_readonly;
 226  228          taskq_t         *ls_taskq;
 227  229          kstat_t         *ls_kstat;
 228  230          kmutex_t        ls_kstat_lock;
 229  231          struct dk_geom  ls_dkg;
 230  232          struct vtoc     ls_vtoc;
 231  233          struct dk_cinfo ls_ci;
 232  234          zone_ref_t      ls_zone;
 233  235          list_node_t     ls_list;        /* all lofis */
 234  236          dev_t           ls_dev;         /* this node's dev_t */
 235  237  
↓ open down ↓ 67 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX