Lines Matching refs:volume_info

2530 cifs_get_tcp_session(struct smb_vol *volume_info)  in cifs_get_tcp_session()  argument
2535 cifs_dbg(FYI, "UNC: %s\n", volume_info->UNC); in cifs_get_tcp_session()
2538 tcp_ses = cifs_find_tcp_session(volume_info); in cifs_get_tcp_session()
2548 tcp_ses->ops = volume_info->ops; in cifs_get_tcp_session()
2549 tcp_ses->vals = volume_info->vals; in cifs_get_tcp_session()
2551 tcp_ses->hostname = extract_hostname(volume_info->UNC); in cifs_get_tcp_session()
2557 tcp_ses->noblockcnt = volume_info->rootfs; in cifs_get_tcp_session()
2558 tcp_ses->noblocksnd = volume_info->noblocksnd || volume_info->rootfs; in cifs_get_tcp_session()
2559 tcp_ses->noautotune = volume_info->noautotune; in cifs_get_tcp_session()
2560 tcp_ses->tcp_nodelay = volume_info->sockopt_tcp_nodelay; in cifs_get_tcp_session()
2561 tcp_ses->rdma = volume_info->rdma; in cifs_get_tcp_session()
2570 volume_info->source_rfc1001_name, RFC1001_NAME_LEN_WITH_NULL); in cifs_get_tcp_session()
2572 volume_info->target_rfc1001_name, RFC1001_NAME_LEN_WITH_NULL); in cifs_get_tcp_session()
2577 tcp_ses->compress_algorithm = cpu_to_le16(volume_info->compression); in cifs_get_tcp_session()
2584 memcpy(&tcp_ses->srcaddr, &volume_info->srcaddr, in cifs_get_tcp_session()
2586 memcpy(&tcp_ses->dstaddr, &volume_info->dstaddr, in cifs_get_tcp_session()
2588 if (volume_info->use_client_guid) in cifs_get_tcp_session()
2589 memcpy(tcp_ses->client_guid, volume_info->client_guid, in cifs_get_tcp_session()
2601 if (volume_info->echo_interval >= SMB_ECHO_INTERVAL_MIN && in cifs_get_tcp_session()
2602 volume_info->echo_interval <= SMB_ECHO_INTERVAL_MAX) in cifs_get_tcp_session()
2603 tcp_ses->echo_interval = volume_info->echo_interval * HZ; in cifs_get_tcp_session()
2613 tcp_ses, (struct sockaddr *)&volume_info->dstaddr); in cifs_get_tcp_session()
2642 tcp_ses->min_offload = volume_info->min_offload; in cifs_get_tcp_session()
2645 if ((volume_info->max_credits < 20) || (volume_info->max_credits > 60000)) in cifs_get_tcp_session()
2648 tcp_ses->max_credits = volume_info->max_credits; in cifs_get_tcp_session()
2651 tcp_ses->ignore_signature = volume_info->ignore_signature; in cifs_get_tcp_session()
2728 cifs_setup_ipc(struct cifs_ses *ses, struct smb_vol *volume_info) in cifs_setup_ipc() argument
2741 if (volume_info->seal) { in cifs_setup_ipc()
3039 cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info) in cifs_get_smb_ses() argument
3049 ses = cifs_find_smb_ses(server, volume_info); in cifs_get_smb_ses()
3066 volume_info->local_nls); in cifs_get_smb_ses()
3095 if (volume_info->username) { in cifs_get_smb_ses()
3096 ses->user_name = kstrdup(volume_info->username, GFP_KERNEL); in cifs_get_smb_ses()
3102 if (volume_info->password) { in cifs_get_smb_ses()
3103 ses->password = kstrdup(volume_info->password, GFP_KERNEL); in cifs_get_smb_ses()
3107 if (volume_info->domainname) { in cifs_get_smb_ses()
3108 ses->domainName = kstrdup(volume_info->domainname, GFP_KERNEL); in cifs_get_smb_ses()
3112 if (volume_info->domainauto) in cifs_get_smb_ses()
3113 ses->domainAuto = volume_info->domainauto; in cifs_get_smb_ses()
3114 ses->cred_uid = volume_info->cred_uid; in cifs_get_smb_ses()
3115 ses->linux_uid = volume_info->linux_uid; in cifs_get_smb_ses()
3117 ses->sectype = volume_info->sectype; in cifs_get_smb_ses()
3118 ses->sign = volume_info->sign; in cifs_get_smb_ses()
3124 ses->chan_max = volume_info->multichannel ? volume_info->max_channels:1; in cifs_get_smb_ses()
3128 rc = cifs_setup_session(xid, ses, volume_info->local_nls); in cifs_get_smb_ses()
3145 cifs_setup_ipc(ses, volume_info); in cifs_get_smb_ses()
3155 static int match_tcon(struct cifs_tcon *tcon, struct smb_vol *volume_info) in match_tcon() argument
3159 if (strncmp(tcon->treeName, volume_info->UNC, MAX_TREE_SIZE)) in match_tcon()
3161 if (tcon->seal != volume_info->seal) in match_tcon()
3163 if (tcon->snapshot_time != volume_info->snapshot_time) in match_tcon()
3165 if (tcon->handle_timeout != volume_info->handle_timeout) in match_tcon()
3167 if (tcon->no_lease != volume_info->no_lease) in match_tcon()
3169 if (tcon->nodelete != volume_info->nodelete) in match_tcon()
3175 cifs_find_tcon(struct cifs_ses *ses, struct smb_vol *volume_info) in cifs_find_tcon() argument
3187 if (!match_tcon(tcon, volume_info)) in cifs_find_tcon()
3252 cifs_get_tcon(struct cifs_ses *ses, struct smb_vol *volume_info) in cifs_get_tcon() argument
3257 tcon = cifs_find_tcon(ses, volume_info); in cifs_get_tcon()
3279 if (volume_info->snapshot_time) { in cifs_get_tcon()
3286 tcon->snapshot_time = volume_info->snapshot_time; in cifs_get_tcon()
3289 if (volume_info->handle_timeout) { in cifs_get_tcon()
3296 tcon->handle_timeout = volume_info->handle_timeout; in cifs_get_tcon()
3300 if (volume_info->password) { in cifs_get_tcon()
3301 tcon->password = kstrdup(volume_info->password, GFP_KERNEL); in cifs_get_tcon()
3308 if (volume_info->seal) { in cifs_get_tcon()
3324 if (volume_info->linux_ext) { in cifs_get_tcon()
3340 rc = ses->server->ops->tree_connect(xid, ses, volume_info->UNC, tcon, in cifs_get_tcon()
3341 volume_info->local_nls); in cifs_get_tcon()
3349 if (volume_info->persistent) { in cifs_get_tcon()
3366 && (volume_info->nopersistent == false)) { in cifs_get_tcon()
3369 } else if (volume_info->resilient) { in cifs_get_tcon()
3381 if (volume_info->cache_ro) in cifs_get_tcon()
3383 else if (volume_info->cache_rw) in cifs_get_tcon()
3387 if (volume_info->no_lease) { in cifs_get_tcon()
3394 tcon->no_lease = volume_info->no_lease; in cifs_get_tcon()
3402 tcon->retry = volume_info->retry; in cifs_get_tcon()
3403 tcon->nocase = volume_info->nocase; in cifs_get_tcon()
3405 tcon->nohandlecache = volume_info->nohandlecache; in cifs_get_tcon()
3408 tcon->nodelete = volume_info->nodelete; in cifs_get_tcon()
3409 tcon->local_lease = volume_info->local_lease; in cifs_get_tcon()
3508 struct smb_vol *volume_info; in cifs_match_super() local
3528 volume_info = mnt_data->vol; in cifs_match_super()
3530 if (!match_server(tcp_srv, volume_info) || in cifs_match_super()
3531 !match_session(ses, volume_info) || in cifs_match_super()
3532 !match_tcon(tcon, volume_info) || in cifs_match_super()
4039 cifs_cleanup_volume_info_contents(struct smb_vol *volume_info) in cifs_cleanup_volume_info_contents() argument
4041 kfree(volume_info->username); in cifs_cleanup_volume_info_contents()
4042 kfree_sensitive(volume_info->password); in cifs_cleanup_volume_info_contents()
4043 kfree(volume_info->UNC); in cifs_cleanup_volume_info_contents()
4044 kfree(volume_info->domainname); in cifs_cleanup_volume_info_contents()
4045 kfree(volume_info->iocharset); in cifs_cleanup_volume_info_contents()
4046 kfree(volume_info->prepath); in cifs_cleanup_volume_info_contents()
4050 cifs_cleanup_volume_info(struct smb_vol *volume_info) in cifs_cleanup_volume_info() argument
4052 if (!volume_info) in cifs_cleanup_volume_info()
4054 cifs_cleanup_volume_info_contents(volume_info); in cifs_cleanup_volume_info()
4055 kfree(volume_info); in cifs_cleanup_volume_info()
4239 struct smb_vol *volume_info, struct cifs_sb_info *cifs_sb, in expand_dfs_referral() argument
4249 full_path = build_unc_path_to_root(volume_info, cifs_sb, true); in expand_dfs_referral()
4267 cifs_cleanup_volume_info_contents(volume_info); in expand_dfs_referral()
4268 rc = cifs_setup_volume_info(volume_info, mdata, in expand_dfs_referral()
4410 cifs_setup_volume_info(struct smb_vol *volume_info, char *mount_data, in cifs_setup_volume_info() argument
4415 if (cifs_parse_mount_options(mount_data, devname, volume_info, is_smb3)) in cifs_setup_volume_info()
4418 if (volume_info->nullauth) { in cifs_setup_volume_info()
4420 kfree(volume_info->username); in cifs_setup_volume_info()
4421 volume_info->username = NULL; in cifs_setup_volume_info()
4422 } else if (volume_info->username) { in cifs_setup_volume_info()
4424 cifs_dbg(FYI, "Username: %s\n", volume_info->username); in cifs_setup_volume_info()
4433 if (volume_info->iocharset == NULL) { in cifs_setup_volume_info()
4435 volume_info->local_nls = load_nls_default(); in cifs_setup_volume_info()
4437 volume_info->local_nls = load_nls(volume_info->iocharset); in cifs_setup_volume_info()
4438 if (volume_info->local_nls == NULL) { in cifs_setup_volume_info()
4440 volume_info->iocharset); in cifs_setup_volume_info()
4452 struct smb_vol *volume_info; in cifs_get_volume_info() local
4454 volume_info = kmalloc(sizeof(struct smb_vol), GFP_KERNEL); in cifs_get_volume_info()
4455 if (!volume_info) in cifs_get_volume_info()
4458 rc = cifs_setup_volume_info(volume_info, mount_data, devname, is_smb3); in cifs_get_volume_info()
4460 cifs_cleanup_volume_info(volume_info); in cifs_get_volume_info()
4461 volume_info = ERR_PTR(rc); in cifs_get_volume_info()
4464 return volume_info; in cifs_get_volume_info()