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


  77 
  78 /* Mask values for smbmount structure sm_status field */
  79 #define SM_STATUS_STATFS_BUSY 0x00000001 /* statvfs is in progress */
  80 #define SM_STATUS_STATFS_WANT 0x00000002 /* statvfs wakeup is wanted */
  81 #define SM_STATUS_TIMEO 0x00000004 /* this mount is not responding */
  82 #define SM_STATUS_DEAD  0x00000010 /* connection gone - unmount this */
  83 
  84 extern const struct fs_operation_def    smbfs_vnodeops_template[];
  85 extern struct vnodeops                  *smbfs_vnodeops;
  86 
  87 struct smbnode;
  88 struct smb_share;
  89 
  90 /*
  91  * The values for smi_flags (from nfs_clnt.h)
  92  */
  93 #define SMI_INT         0x04            /* interrupts allowed */
  94 #define SMI_NOAC        0x10            /* don't cache attributes */
  95 #define SMI_LLOCK       0x80            /* local locking only */
  96 #define SMI_ACL         0x2000          /* share supports ACLs */

  97 #define SMI_EXTATTR     0x80000         /* share supports ext. attrs */
  98 #define SMI_DEAD        0x200000        /* mount has been terminated */
  99 
 100 /*
 101  * Stuff returned by smbfs_smb_qfsattr
 102  * See [CIFS] SMB_QUERY_FS_ATTRIBUTE_INFO
 103  */
 104 typedef struct smb_fs_attr_info {
 105         uint32_t        fsa_aflags;     /* Attr. flags [CIFS 4.1.6.6] */
 106         uint32_t        fsa_maxname;    /* max. component length */
 107         char            fsa_tname[FSTYPSZ]; /* type name, i.e. "NTFS" */
 108 } smb_fs_attr_info_t;
 109 
 110 /*
 111  * Corresponds to Darwin: struct smbmount
 112  */
 113 typedef struct smbmntinfo {
 114         struct vfs              *smi_vfsp;      /* mount back pointer to vfs */
 115         struct smbnode          *smi_root;      /* the root node */
 116         struct smb_share        *smi_share;     /* netsmb SMB share conn data */




  77 
  78 /* Mask values for smbmount structure sm_status field */
  79 #define SM_STATUS_STATFS_BUSY 0x00000001 /* statvfs is in progress */
  80 #define SM_STATUS_STATFS_WANT 0x00000002 /* statvfs wakeup is wanted */
  81 #define SM_STATUS_TIMEO 0x00000004 /* this mount is not responding */
  82 #define SM_STATUS_DEAD  0x00000010 /* connection gone - unmount this */
  83 
  84 extern const struct fs_operation_def    smbfs_vnodeops_template[];
  85 extern struct vnodeops                  *smbfs_vnodeops;
  86 
  87 struct smbnode;
  88 struct smb_share;
  89 
  90 /*
  91  * The values for smi_flags (from nfs_clnt.h)
  92  */
  93 #define SMI_INT         0x04            /* interrupts allowed */
  94 #define SMI_NOAC        0x10            /* don't cache attributes */
  95 #define SMI_LLOCK       0x80            /* local locking only */
  96 #define SMI_ACL         0x2000          /* share supports ACLs */
  97 #define SMI_DIRECTIO    0x40000         /* do direct I/O */
  98 #define SMI_EXTATTR     0x80000         /* share supports ext. attrs */
  99 #define SMI_DEAD        0x200000        /* mount has been terminated */
 100 
 101 /*
 102  * Stuff returned by smbfs_smb_qfsattr
 103  * See [CIFS] SMB_QUERY_FS_ATTRIBUTE_INFO
 104  */
 105 typedef struct smb_fs_attr_info {
 106         uint32_t        fsa_aflags;     /* Attr. flags [CIFS 4.1.6.6] */
 107         uint32_t        fsa_maxname;    /* max. component length */
 108         char            fsa_tname[FSTYPSZ]; /* type name, i.e. "NTFS" */
 109 } smb_fs_attr_info_t;
 110 
 111 /*
 112  * Corresponds to Darwin: struct smbmount
 113  */
 114 typedef struct smbmntinfo {
 115         struct vfs              *smi_vfsp;      /* mount back pointer to vfs */
 116         struct smbnode          *smi_root;      /* the root node */
 117         struct smb_share        *smi_share;     /* netsmb SMB share conn data */