• Home
  • Raw
  • Download

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()
3097 if (volume_info->username) { in cifs_get_smb_ses()
3098 ses->user_name = kstrdup(volume_info->username, GFP_KERNEL); in cifs_get_smb_ses()
3104 if (volume_info->password) { in cifs_get_smb_ses()
3105 ses->password = kstrdup(volume_info->password, GFP_KERNEL); in cifs_get_smb_ses()
3109 if (volume_info->domainname) { in cifs_get_smb_ses()
3110 ses->domainName = kstrdup(volume_info->domainname, GFP_KERNEL); in cifs_get_smb_ses()
3114 if (volume_info->domainauto) in cifs_get_smb_ses()
3115 ses->domainAuto = volume_info->domainauto; in cifs_get_smb_ses()
3116 ses->cred_uid = volume_info->cred_uid; in cifs_get_smb_ses()
3117 ses->linux_uid = volume_info->linux_uid; in cifs_get_smb_ses()
3119 ses->sectype = volume_info->sectype; in cifs_get_smb_ses()
3120 ses->sign = volume_info->sign; in cifs_get_smb_ses()
3126 ses->chan_max = volume_info->multichannel ? volume_info->max_channels:1; in cifs_get_smb_ses()
3130 rc = cifs_setup_session(xid, ses, volume_info->local_nls); in cifs_get_smb_ses()
3147 cifs_setup_ipc(ses, volume_info); in cifs_get_smb_ses()
3157 static int match_tcon(struct cifs_tcon *tcon, struct smb_vol *volume_info) in match_tcon() argument
3161 if (strncmp(tcon->treeName, volume_info->UNC, MAX_TREE_SIZE)) in match_tcon()
3163 if (tcon->seal != volume_info->seal) in match_tcon()
3165 if (tcon->snapshot_time != volume_info->snapshot_time) in match_tcon()
3167 if (tcon->handle_timeout != volume_info->handle_timeout) in match_tcon()
3169 if (tcon->no_lease != volume_info->no_lease) in match_tcon()
3171 if (tcon->nodelete != volume_info->nodelete) in match_tcon()
3177 cifs_find_tcon(struct cifs_ses *ses, struct smb_vol *volume_info) in cifs_find_tcon() argument
3189 if (!match_tcon(tcon, volume_info)) in cifs_find_tcon()
3254 cifs_get_tcon(struct cifs_ses *ses, struct smb_vol *volume_info) in cifs_get_tcon() argument
3259 tcon = cifs_find_tcon(ses, volume_info); in cifs_get_tcon()
3281 if (volume_info->snapshot_time) { in cifs_get_tcon()
3288 tcon->snapshot_time = volume_info->snapshot_time; in cifs_get_tcon()
3291 if (volume_info->handle_timeout) { in cifs_get_tcon()
3298 tcon->handle_timeout = volume_info->handle_timeout; in cifs_get_tcon()
3302 if (volume_info->password) { in cifs_get_tcon()
3303 tcon->password = kstrdup(volume_info->password, GFP_KERNEL); in cifs_get_tcon()
3310 if (volume_info->seal) { in cifs_get_tcon()
3326 if (volume_info->linux_ext) { in cifs_get_tcon()
3342 rc = ses->server->ops->tree_connect(xid, ses, volume_info->UNC, tcon, in cifs_get_tcon()
3343 volume_info->local_nls); in cifs_get_tcon()
3351 if (volume_info->persistent) { in cifs_get_tcon()
3368 && (volume_info->nopersistent == false)) { in cifs_get_tcon()
3371 } else if (volume_info->resilient) { in cifs_get_tcon()
3383 if (volume_info->cache_ro) in cifs_get_tcon()
3385 else if (volume_info->cache_rw) in cifs_get_tcon()
3389 if (volume_info->no_lease) { in cifs_get_tcon()
3396 tcon->no_lease = volume_info->no_lease; in cifs_get_tcon()
3404 tcon->retry = volume_info->retry; in cifs_get_tcon()
3405 tcon->nocase = volume_info->nocase; in cifs_get_tcon()
3407 tcon->nohandlecache = volume_info->nohandlecache; in cifs_get_tcon()
3410 tcon->nodelete = volume_info->nodelete; in cifs_get_tcon()
3411 tcon->local_lease = volume_info->local_lease; in cifs_get_tcon()
3510 struct smb_vol *volume_info; in cifs_match_super() local
3530 volume_info = mnt_data->vol; in cifs_match_super()
3532 if (!match_server(tcp_srv, volume_info) || in cifs_match_super()
3533 !match_session(ses, volume_info) || in cifs_match_super()
3534 !match_tcon(tcon, volume_info) || in cifs_match_super()
4041 cifs_cleanup_volume_info_contents(struct smb_vol *volume_info) in cifs_cleanup_volume_info_contents() argument
4043 kfree(volume_info->username); in cifs_cleanup_volume_info_contents()
4044 kfree_sensitive(volume_info->password); in cifs_cleanup_volume_info_contents()
4045 kfree(volume_info->UNC); in cifs_cleanup_volume_info_contents()
4046 kfree(volume_info->domainname); in cifs_cleanup_volume_info_contents()
4047 kfree(volume_info->iocharset); in cifs_cleanup_volume_info_contents()
4048 kfree(volume_info->prepath); in cifs_cleanup_volume_info_contents()
4052 cifs_cleanup_volume_info(struct smb_vol *volume_info) in cifs_cleanup_volume_info() argument
4054 if (!volume_info) in cifs_cleanup_volume_info()
4056 cifs_cleanup_volume_info_contents(volume_info); in cifs_cleanup_volume_info()
4057 kfree(volume_info); in cifs_cleanup_volume_info()
4241 struct smb_vol *volume_info, struct cifs_sb_info *cifs_sb, in expand_dfs_referral() argument
4251 full_path = build_unc_path_to_root(volume_info, cifs_sb, true); in expand_dfs_referral()
4269 cifs_cleanup_volume_info_contents(volume_info); in expand_dfs_referral()
4270 rc = cifs_setup_volume_info(volume_info, mdata, in expand_dfs_referral()
4412 cifs_setup_volume_info(struct smb_vol *volume_info, char *mount_data, in cifs_setup_volume_info() argument
4417 if (cifs_parse_mount_options(mount_data, devname, volume_info, is_smb3)) in cifs_setup_volume_info()
4420 if (volume_info->nullauth) { in cifs_setup_volume_info()
4422 kfree(volume_info->username); in cifs_setup_volume_info()
4423 volume_info->username = NULL; in cifs_setup_volume_info()
4424 } else if (volume_info->username) { in cifs_setup_volume_info()
4426 cifs_dbg(FYI, "Username: %s\n", volume_info->username); in cifs_setup_volume_info()
4435 if (volume_info->iocharset == NULL) { in cifs_setup_volume_info()
4437 volume_info->local_nls = load_nls_default(); in cifs_setup_volume_info()
4439 volume_info->local_nls = load_nls(volume_info->iocharset); in cifs_setup_volume_info()
4440 if (volume_info->local_nls == NULL) { in cifs_setup_volume_info()
4442 volume_info->iocharset); in cifs_setup_volume_info()
4454 struct smb_vol *volume_info; in cifs_get_volume_info() local
4456 volume_info = kmalloc(sizeof(struct smb_vol), GFP_KERNEL); in cifs_get_volume_info()
4457 if (!volume_info) in cifs_get_volume_info()
4460 rc = cifs_setup_volume_info(volume_info, mount_data, devname, is_smb3); in cifs_get_volume_info()
4462 cifs_cleanup_volume_info(volume_info); in cifs_get_volume_info()
4463 volume_info = ERR_PTR(rc); in cifs_get_volume_info()
4466 return volume_info; in cifs_get_volume_info()