Lines Matching refs:rc

24 	int rc;
45 rc = smb3_parse_devname(path, ctx);
46 if (rc)
49 rc = dns_resolve_server_name_to_ip(path, (struct sockaddr *)&ctx->dstaddr, NULL);
53 return rc;
59 int rc;
62 rc = cifs_mount_get_session(mnt_ctx);
65 return rc;
89 int rc;
92 rc = ref_walk_get_tgt(rw, tgt);
93 if (!rc)
94 rc = dfs_parse_target_referral(fpath, tgt, ctx);
95 return rc;
105 int rc;
117 rc = PTR_ERR(ref_path);
119 return rc;
132 int rc = -ENOENT;
137 rc = dfs_get_referral(mnt_ctx, ref_walk_path(rw) + 1,
139 if (rc) {
140 rc = cifs_mount_get_tcon(mnt_ctx);
141 if (!rc)
142 rc = cifs_is_path_remote(mnt_ctx);
146 rc = -ENOENT;
152 rc = parse_dfs_target(ctx, rw, &tgt);
153 if (rc)
157 rc = get_session(mnt_ctx, ref_walk_path(rw));
158 if (rc)
166 rc = cifs_mount_get_tcon(mnt_ctx);
167 if (!rc)
168 rc = cifs_is_path_remote(mnt_ctx);
169 if (!rc)
171 if (rc != -EREMOTE)
178 rc = ref_walk_advance(rw);
179 if (!rc) {
180 rc = set_ref_paths(mnt_ctx, &tgt, rw);
181 if (!rc) {
182 rc = -EREMOTE;
186 if (rc != -ELOOP)
189 } while (rc && ref_walk_descend(rw));
193 return rc;
199 int rc;
206 rc = set_ref_paths(mnt_ctx, NULL, rw);
207 if (!rc)
208 rc = __dfs_referral_walk(mnt_ctx, rw);
210 return rc;
220 int rc;
226 rc = dfs_referral_walk(mnt_ctx);
227 if (!rc) {
233 rc = -EHOSTDOWN;
235 rc = -EACCES;
237 rc = -ENOENT;
239 if (rc)
259 return rc;
271 int rc = 0;
274 rc = dns_resolve_server_name_to_ip(ctx->source, addr, NULL);
275 if (!rc)
279 return rc;
286 int rc;
288 rc = update_fs_context_dstaddr(ctx);
289 if (rc)
290 return rc;
293 rc = get_session(mnt_ctx, NULL);
294 if (rc)
295 return rc;
305 rc = dfs_get_referral(mnt_ctx, ctx->UNC + 1, NULL, NULL);
306 if (rc) {
308 __func__, ctx->UNC + 1, rc);
314 rc = cifs_mount_get_tcon(mnt_ctx);
315 if (!rc)
316 rc = cifs_is_path_remote(mnt_ctx);
317 return rc;
322 rc = __dfs_mount_share(mnt_ctx);
324 return rc;
331 int rc = 0;
358 rc = PTR_ERR(npath);
367 return rc;
373 int rc = 0;
386 rc = match_target_ip(server, dfs_host, dfs_host_len, target_match);
387 if (rc)
388 cifs_dbg(VFS, "%s: failed to match target ip: %d\n", __func__, rc);
391 return rc;
400 int rc;
419 rc = server->ops->tree_connect(xid, ses, tree, tcon,
421 cifs_server_dbg(FYI, "%s: tree_reconnect %s: %d\n", __func__, tree, rc);
423 if (rc) {
446 int rc;
456 rc = -ENOENT;
470 rc = dfs_cache_get_tgt_share(server->leaf_fullpath + 1, tit, &share, &prefix);
471 if (rc) {
472 cifs_dbg(VFS, "%s: failed to parse target share: %d\n", __func__, rc);
476 rc = target_share_matches_server(server, share, &target_match);
477 if (rc)
480 rc = -EHOSTUNREACH;
489 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, cifs_sb->local_nls);
501 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, cifs_sb->local_nls);
502 if (rc)
505 rc = cifs_update_super_prepath(cifs_sb, prefix);
508 rc = update_server_fullpath(server, cifs_sb, target);
511 if (!rc) {
512 rc = -EREMOTE;
524 return rc;
531 int rc;
537 rc = __tree_connect_dfs_target(xid, tcon, cifs_sb, tree, islink, tl);
538 if (!rc || rc != -EREMOTE)
540 } while (rc = -ELOOP, ++num_links < MAX_NESTED_LINKS);
545 if (rc && server->leaf_fullpath != old_fullpath)
549 return rc;
554 int rc;
586 rc = -ENOMEM;
594 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, nlsc);
608 rc = ops->tree_connect(xid, tcon->ses, tcon->tree_name, tcon,
613 rc = tree_connect_dfs_target(xid, tcon, cifs_sb, tree, ref.server_type == DFS_TYPE_LINK,
621 if (rc) {
634 return rc;