diff options
author | Gordon Ross <Gordon.Ross@Sun.COM> | 2009-07-02 12:58:38 -0400 |
---|---|---|
committer | Gordon Ross <Gordon.Ross@Sun.COM> | 2009-07-02 12:58:38 -0400 |
commit | 613a2f6ba31e891e3d947a356daf5e563d43c1ce (patch) | |
tree | 0f7f3438a5792c05ed156a43e8cd84f25695d7f2 /usr/src/uts/common/fs/smbclnt/smbfs/smbfs.h | |
parent | bf73eaa5a8ea69ac16a1e6e7b736f09286d073f9 (diff) | |
download | illumos-joyent-613a2f6ba31e891e3d947a356daf5e563d43c1ce.tar.gz |
6584198 SMB Client needs authentication improvements
6587713 Need to reconnect after server disconnect
--HG--
rename : usr/src/lib/libsmbfs/netsmb/smbfs_isec.h => usr/src/lib/libsmbfs/smb/acl_nt.h
Diffstat (limited to 'usr/src/uts/common/fs/smbclnt/smbfs/smbfs.h')
-rw-r--r-- | usr/src/uts/common/fs/smbclnt/smbfs/smbfs.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs.h b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs.h index 4770ee6e84..9eb6cdbed3 100644 --- a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs.h +++ b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs.h @@ -48,11 +48,21 @@ * but that's now in sys/fs/smbfs_mount.h */ +#include <sys/param.h> +#include <sys/fstyp.h> #include <sys/list.h> #include <sys/vfs.h> -#include <sys/vfs_opreg.h> #include <sys/fs/smbfs_mount.h> +/* + * Path component length + * + * The generic fs code uses MAXNAMELEN to represent + * what the largest component length is, but note: + * that length DOES include the terminating NULL. + * SMB_MAXFNAMELEN does NOT include the NULL. + */ +#define SMB_MAXFNAMELEN (MAXNAMELEN-1) /* 255 */ /* * SM_MAX_STATFSTIME is the maximum time to cache statvfs data. Since this @@ -82,6 +92,16 @@ struct smb_share; #define SMI_LLOCK 0x80 /* local locking only */ /* + * Stuff returned by smbfs_smb_qfsattr + * See [CIFS] SMB_QUERY_FS_ATTRIBUTE_INFO + */ +typedef struct smb_fs_attr_info { + uint32_t fsa_aflags; /* Attr. flags [CIFS 4.1.6.6] */ + uint32_t fsa_maxname; /* max. component length */ + char fsa_tname[FSTYPSZ]; /* type name, i.e. "NTFS" */ +} smb_fs_attr_info_t; + +/* * Corresponds to Darwin: struct smbmount */ typedef struct smbmntinfo { @@ -90,11 +110,12 @@ typedef struct smbmntinfo { struct smb_share *smi_share; /* netsmb SMB share conn data */ kmutex_t smi_lock; /* mutex for flags, etc. */ uint32_t smi_flags; /* NFS-derived flag bits */ - uint32_t smi_fsattr; /* acls & streams opts */ uint32_t smi_status; /* status bits for this mount */ hrtime_t smi_statfstime; /* sm_statvfsbuf cache time */ statvfs64_t smi_statvfsbuf; /* cached statvfs data */ kcondvar_t smi_statvfs_cv; + smb_fs_attr_info_t smi_fsa; /* SMB FS attributes. */ +#define smi_fsattr smi_fsa.fsa_aflags /* * Kstat statistics |