@@ -202,7 +202,7 @@ struct cifs_ses;
202
202
struct cifs_tcon ;
203
203
struct dfs_info3_param ;
204
204
struct cifs_fattr ;
205
- struct smb_vol ;
205
+ struct smb3_fs_context ;
206
206
struct cifs_fid ;
207
207
struct cifs_readdata ;
208
208
struct cifs_writedata ;
@@ -268,9 +268,9 @@ struct smb_version_operations {
268
268
/* negotiate to the server */
269
269
int (* negotiate )(const unsigned int , struct cifs_ses * );
270
270
/* set negotiated write size */
271
- unsigned int (* negotiate_wsize )(struct cifs_tcon * , struct smb_vol * );
271
+ unsigned int (* negotiate_wsize )(struct cifs_tcon * tcon , struct smb3_fs_context * ctx );
272
272
/* set negotiated read size */
273
- unsigned int (* negotiate_rsize )(struct cifs_tcon * , struct smb_vol * );
273
+ unsigned int (* negotiate_rsize )(struct cifs_tcon * tcon , struct smb3_fs_context * ctx );
274
274
/* setup smb sessionn */
275
275
int (* sess_setup )(const unsigned int , struct cifs_ses * ,
276
276
const struct nls_table * );
@@ -530,97 +530,6 @@ struct smb_version_values {
530
530
#define HEADER_SIZE (server ) (server->vals->header_size)
531
531
#define MAX_HEADER_SIZE (server ) (server->vals->max_header_size)
532
532
533
- struct smb_vol {
534
- char * username ;
535
- char * password ;
536
- char * domainname ;
537
- char * UNC ;
538
- char * iocharset ; /* local code page for mapping to and from Unicode */
539
- char source_rfc1001_name [RFC1001_NAME_LEN_WITH_NULL ]; /* clnt nb name */
540
- char target_rfc1001_name [RFC1001_NAME_LEN_WITH_NULL ]; /* srvr nb name */
541
- kuid_t cred_uid ;
542
- kuid_t linux_uid ;
543
- kgid_t linux_gid ;
544
- kuid_t backupuid ;
545
- kgid_t backupgid ;
546
- umode_t file_mode ;
547
- umode_t dir_mode ;
548
- enum securityEnum sectype ; /* sectype requested via mnt opts */
549
- bool sign ; /* was signing requested via mnt opts? */
550
- bool ignore_signature :1 ;
551
- bool retry :1 ;
552
- bool intr :1 ;
553
- bool setuids :1 ;
554
- bool setuidfromacl :1 ;
555
- bool override_uid :1 ;
556
- bool override_gid :1 ;
557
- bool dynperm :1 ;
558
- bool noperm :1 ;
559
- bool nodelete :1 ;
560
- bool mode_ace :1 ;
561
- bool no_psx_acl :1 ; /* set if posix acl support should be disabled */
562
- bool cifs_acl :1 ;
563
- bool backupuid_specified ; /* mount option backupuid is specified */
564
- bool backupgid_specified ; /* mount option backupgid is specified */
565
- bool no_xattr :1 ; /* set if xattr (EA) support should be disabled*/
566
- bool server_ino :1 ; /* use inode numbers from server ie UniqueId */
567
- bool direct_io :1 ;
568
- bool strict_io :1 ; /* strict cache behavior */
569
- bool cache_ro :1 ;
570
- bool cache_rw :1 ;
571
- bool remap :1 ; /* set to remap seven reserved chars in filenames */
572
- bool sfu_remap :1 ; /* remap seven reserved chars ala SFU */
573
- bool posix_paths :1 ; /* unset to not ask for posix pathnames. */
574
- bool no_linux_ext :1 ;
575
- bool linux_ext :1 ;
576
- bool sfu_emul :1 ;
577
- bool nullauth :1 ; /* attempt to authenticate with null user */
578
- bool nocase :1 ; /* request case insensitive filenames */
579
- bool nobrl :1 ; /* disable sending byte range locks to srv */
580
- bool nohandlecache :1 ; /* disable caching dir handles if srvr probs */
581
- bool mand_lock :1 ; /* send mandatory not posix byte range lock reqs */
582
- bool seal :1 ; /* request transport encryption on share */
583
- bool nodfs :1 ; /* Do not request DFS, even if available */
584
- bool local_lease :1 ; /* check leases only on local system, not remote */
585
- bool noblocksnd :1 ;
586
- bool noautotune :1 ;
587
- bool nostrictsync :1 ; /* do not force expensive SMBflush on every sync */
588
- bool no_lease :1 ; /* disable requesting leases */
589
- bool fsc :1 ; /* enable fscache */
590
- bool mfsymlinks :1 ; /* use Minshall+French Symlinks */
591
- bool multiuser :1 ;
592
- bool rwpidforward :1 ; /* pid forward for read/write operations */
593
- bool nosharesock :1 ;
594
- bool persistent :1 ;
595
- bool nopersistent :1 ;
596
- bool resilient :1 ; /* noresilient not required since not fored for CA */
597
- bool domainauto :1 ;
598
- bool rdma :1 ;
599
- bool multichannel :1 ;
600
- bool use_client_guid :1 ;
601
- /* reuse existing guid for multichannel */
602
- u8 client_guid [SMB2_CLIENT_GUID_SIZE ];
603
- unsigned int bsize ;
604
- unsigned int rsize ;
605
- unsigned int wsize ;
606
- unsigned int min_offload ;
607
- bool sockopt_tcp_nodelay :1 ;
608
- unsigned long actimeo ; /* attribute cache timeout (jiffies) */
609
- struct smb_version_operations * ops ;
610
- struct smb_version_values * vals ;
611
- char * prepath ;
612
- struct sockaddr_storage dstaddr ; /* destination address */
613
- struct sockaddr_storage srcaddr ; /* allow binding to a local IP */
614
- struct nls_table * local_nls ;
615
- unsigned int echo_interval ; /* echo interval in secs */
616
- __u64 snapshot_time ; /* needed for timewarp tokens */
617
- __u32 handle_timeout ; /* persistent and durable handle timeout in ms */
618
- unsigned int max_credits ; /* smb3 max_credits 10 < credits < 60000 */
619
- unsigned int max_channels ;
620
- __u16 compression ; /* compression algorithm 0xFFFF default 0=disabled */
621
- bool rootfs :1 ; /* if it's a SMB root file system */
622
- };
623
-
624
533
/**
625
534
* CIFS superblock mount flags (mnt_cifs_flags) to consider when
626
535
* trying to reuse existing superblock for a new mount
@@ -649,7 +558,7 @@ struct smb_vol {
649
558
650
559
struct cifs_mnt_data {
651
560
struct cifs_sb_info * cifs_sb ;
652
- struct smb_vol * vol ;
561
+ struct smb3_fs_context * ctx ;
653
562
int flags ;
654
563
};
655
564
0 commit comments