Print this page
5404 smbfs needs mmap support
Portions contributed by: Gordon Ross <gordon.w.ross@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_node.h
          +++ new/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_node.h
↓ open down ↓ 224 lines elided ↑ open up ↑
 225  225          enum vtype      n_ovtype;       /* vnode type opened */
 226  226          uint32_t        n_rights;       /* granted rights */
 227  227          int             n_vcgenid;      /* gereration no. (reconnect) */
 228  228  
 229  229          /*
 230  230           * Misc. bookkeeping
 231  231           */
 232  232          cred_t          *r_cred;        /* current credentials */
 233  233          u_offset_t      r_nextr;        /* next read offset (read-ahead) */
 234  234          long            r_mapcnt;       /* count of mmapped pages */
      235 +        uint_t          r_inmap;        /* to serialize read/write and mmap */
 235  236          uint_t          r_count;        /* # of refs not reflect in v_count */
 236  237          uint_t          r_awcount;      /* # of outstanding async write */
 237  238          uint_t          r_gcount;       /* getattrs waiting to flush pages */
 238  239          uint_t          r_flags;        /* flags, see below */
 239      -        uint32_t        n_flag;         /* NXXX flags below */
      240 +        uint32_t        n_flag;         /* N--- flags below */
 240  241          uint_t          r_error;        /* async write error */
 241  242          kcondvar_t      r_cv;           /* condvar for blocked threads */
 242  243          avl_tree_t      r_dir;          /* cache of readdir responses */
 243  244          rddir_cache     *r_direof;      /* pointer to the EOF entry */
      245 +        u_offset_t      r_modaddr;      /* address for page in writenp */
 244  246          kthread_t       *r_serial;      /* id of purging thread */
 245  247          list_t          r_indelmap;     /* list of delmap callers */
 246  248  
 247  249          /*
 248  250           * Attributes: local, and as last seen on the server.
 249  251           * See notes above re: r_size vs r_attr.fa_size, etc.
 250  252           */
 251  253          smbfattr_t      r_attr;         /* attributes from the server */
 252  254          hrtime_t        r_attrtime;     /* time attributes become invalid */
 253  255          hrtime_t        r_mtime;        /* client time file last modified */
↓ open down ↓ 70 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX