/linux/fs/smb/client/ |
H A D | cifsfs.c | 295 if (cifs_sb->root) { in cifs_kill_sb() 299 dput(cifs_sb->root); in cifs_kill_sb() 729 if (cifs_sb->ctx->acdirmax == cifs_sb->ctx->acregmax) in cifs_show_options() 928 cifs_sb = kzalloc(sizeof(*cifs_sb), GFP_KERNEL); in cifs_smb3_do_mount() 929 if (!cifs_sb) in cifs_smb3_do_mount() 949 rc = cifs_mount(cifs_sb, cifs_sb->ctx); in cifs_smb3_do_mount() 959 mnt_data.cifs_sb = cifs_sb; in cifs_smb3_do_mount() 974 cifs_sb = NULL; in cifs_smb3_do_mount() 985 root = cifs_get_root(cifs_sb ? cifs_sb->ctx : old_ctx, sb); in cifs_smb3_do_mount() 989 if (cifs_sb) in cifs_smb3_do_mount() [all …]
|
H A D | inode.c | 454 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_get_unix_fattr() 480 cifs_sb, full_path, in cifs_get_unix_fattr() 561 .cifs_sb = cifs_sb, in cifs_sfu_type() 708 cifs_sb); in cifs_sfu_mode() 1695 .cifs_sb = cifs_sb, in cifs_rename_pending_delete() 1778 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_rename_pending_delete() 1857 cifs_remap(cifs_sb)); in cifs_unlink() 2048 cifs_sb->local_nls, cifs_remap(cifs_sb)); 2128 cifs_sb); 2297 .cifs_sb = cifs_sb, [all …]
|
H A D | link.c | 264 .cifs_sb = cifs_sb, in cifs_query_mf_symlink() 307 .cifs_sb = cifs_sb, in cifs_create_mf_symlink() 350 .cifs_sb = cifs_sb, in smb3_query_mf_symlink() 418 .cifs_sb = cifs_sb, in smb3_create_mf_symlink() 479 tlink = cifs_sb_tlink(cifs_sb); 502 cifs_sb->local_nls, 503 cifs_remap(cifs_sb)); 514 from_name, to_name, cifs_sb); 588 tlink = cifs_sb_tlink(cifs_sb); 615 cifs_sb->local_nls, [all …]
|
H A D | fs_context.c | 882 ctx->field = cifs_sb->ctx->field; \ 883 cifs_sb->ctx->field = NULL; \ 890 cifs_sb->ctx->field = NULL; \ 915 STEAL_STRING(cifs_sb, ctx, UNC); in smb3_reconfigure() 916 STEAL_STRING(cifs_sb, ctx, source); in smb3_reconfigure() 917 STEAL_STRING(cifs_sb, ctx, username); in smb3_reconfigure() 934 STEAL_STRING(cifs_sb, ctx, nodename); in smb3_reconfigure() 939 ctx->rsize = cifs_sb->ctx->rsize; in smb3_reconfigure() 941 ctx->wsize = cifs_sb->ctx->wsize; in smb3_reconfigure() 946 smb3_update_mnt_flags(cifs_sb); in smb3_reconfigure() [all …]
|
H A D | dfs.c | 103 struct cifs_sb_info *cifs_sb = mnt_ctx->cifs_sb; in setup_dfs_ref() local 113 ref_path = dfs_get_path(cifs_sb, ctx->UNC); in setup_dfs_ref() 213 struct cifs_sb_info *cifs_sb = mnt_ctx->cifs_sb; in __dfs_mount_share() local 351 npath = dfs_cache_canonical_path(refpath, cifs_sb->local_nls, cifs_remap(cifs_sb)); in update_server_fullpath() 392 struct cifs_sb_info *cifs_sb, in __tree_connect_ipc() argument 417 cifs_sb->local_nls); in __tree_connect_ipc() 430 struct cifs_sb_info *cifs_sb, in tree_connect_ipc() argument 496 if (dfs_cache_find(xid, root_ses, cifs_sb->local_nls, cifs_remap(cifs_sb), target, in __tree_connect_dfs_target() 555 struct cifs_sb_info *cifs_sb = NULL; in cifs_tree_connect() local 597 cifs_sb = CIFS_SB(sb); in cifs_tree_connect() [all …]
|
H A D | readdir.c | 226 struct cifs_sb_info *cifs_sb) in cifs_posix_to_fattr() argument 289 struct cifs_sb_info *cifs_sb) in cifs_dir_info_to_fattr() argument 343 tlink = cifs_sb_tlink(cifs_sb); in _initiate_cifs_search() 391 if (backup_cred(cifs_sb)) in _initiate_cifs_search() 736 if (backup_cred(cifs_sb)) in find_cifs_entry() 947 map_type = cifs_remap(cifs_sb); in cifs_filldir() 964 cifs_sb); in cifs_filldir() 969 cifs_sb); in cifs_filldir() 976 cifs_sb); in cifs_filldir() 985 cifs_sb); in cifs_filldir() [all …]
|
H A D | reparse.h | 28 static inline kuid_t wsl_make_kuid(struct cifs_sb_info *cifs_sb, in wsl_make_kuid() argument 33 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID) in wsl_make_kuid() 34 return cifs_sb->ctx->linux_uid; in wsl_make_kuid() 38 static inline kgid_t wsl_make_kgid(struct cifs_sb_info *cifs_sb, in wsl_make_kgid() argument 43 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID) in wsl_make_kgid() 44 return cifs_sb->ctx->linux_gid; in wsl_make_kgid() 109 bool cifs_reparse_point_to_fattr(struct cifs_sb_info *cifs_sb, 118 int smb2_parse_reparse_point(struct cifs_sb_info *cifs_sb, struct kvec *rsp_iov,
|
H A D | dir.c | 63 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root() 88 char dirsep = CIFS_DIR_SEP(cifs_sb); in __build_path_from_dentry_optional_prefix() 100 pplen = cifs_sb->prepath ? strlen(cifs_sb->prepath) + 1 : 0; in __build_path_from_dentry_optional_prefix() 112 memcpy(s + 1, cifs_sb->prepath, pplen - 1); in __build_path_from_dentry_optional_prefix() 317 .cifs_sb = cifs_sb, 603 struct cifs_sb_info *cifs_sb; local 612 cifs_sb = CIFS_SB(inode->i_sb); 616 tlink = cifs_sb_tlink(cifs_sb); 654 struct cifs_sb_info *cifs_sb; local 669 cifs_sb = CIFS_SB(parent_dir_inode->i_sb); [all …]
|
H A D | smb1ops.c | 536 cifs_remap(cifs_sb)); in cifs_is_path_accessible() 540 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_is_path_accessible() 559 cifs_remap(cifs_sb)); in cifs_query_path_info() 567 cifs_remap(cifs_sb)); in cifs_query_path_info() 584 .cifs_sb = cifs_sb, in cifs_query_path_info() 619 cifs_sb->local_nls, in cifs_get_srv_inum() 718 cifs_sb); in cifs_mkdir_setinfo() 822 cifs_sb); in smb_set_file_info() 832 .cifs_sb = cifs_sb, in smb_set_file_info() 989 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_query_symlink() [all …]
|
H A D | smb2inode.c | 830 struct cifs_sb_info *cifs_sb, in parse_create_response() argument 861 struct cifs_sb_info *cifs_sb, in smb2_query_path_info() argument 891 cifs_sb, false, &cfid); in smb2_query_path_info() 986 struct cifs_sb_info *cifs_sb) in smb2_mkdir() argument 1029 struct cifs_sb_info *cifs_sb) in smb2_rmdir() argument 1066 struct cifs_sb_info *cifs_sb, in smb2_set_path_attr() argument 1097 struct cifs_sb_info *cifs_sb) in smb2_rename_path() argument 1121 struct cifs_sb_info *cifs_sb) in smb2_create_hardlink() argument 1126 cifs_sb, co, FILE_READ_ATTRIBUTES, in smb2_create_hardlink() 1180 tlink = cifs_sb_tlink(cifs_sb); in smb2_set_file_info() [all …]
|
H A D | reparse.c | 34 char *sym, sep = CIFS_DIR_SEP(cifs_sb); in smb2_create_reparse_symlink() 110 char sep = CIFS_DIR_SEP(cifs_sb); in detect_directory_symlink_target() 159 tlink = cifs_sb_tlink(cifs_sb); in detect_directory_symlink_target() 475 struct cifs_sb_info *cifs_sb, in parse_reparse_posix() argument 505 cifs_sb->local_nls); in parse_reparse_posix() 537 struct cifs_sb_info *cifs_sb, in parse_reparse_symlink() argument 554 cifs_sb->local_nls); in parse_reparse_symlink() 565 u32 plen, struct cifs_sb_info *cifs_sb, in parse_reparse_point() argument 576 cifs_sb, data); in parse_reparse_point() 580 plen, unicode, cifs_sb, data); in parse_reparse_point() [all …]
|
H A D | smb2proto.h | 30 struct cifs_sb_info *cifs_sb); 57 struct cifs_sb_info *cifs_sb, const char *path, 69 struct cifs_sb_info *cifs_sb, 75 struct cifs_sb_info *cifs_sb, 87 struct cifs_sb_info *cifs_sb); 92 struct cifs_sb_info *cifs_sb, 103 struct cifs_sb_info *cifs_sb); 108 struct cifs_sb_info *cifs_sb); 113 struct cifs_sb_info *cifs_sb, 304 struct cifs_sb_info *cifs_sb); [all …]
|
H A D | connect.c | 2863 cifs_sb = CIFS_SB(sb); in cifs_match_super() 3233 if (cifs_sb) in reset_cifs_unix_caps() 3242 if (cifs_sb) in reset_cifs_unix_caps() 3405 !mnt_ctx->cifs_sb)) { in cifs_mount_get_tcon() 3411 cifs_sb = mnt_ctx->cifs_sb; in cifs_mount_get_tcon() 3467 cifs_sb->ctx->wsize = in cifs_mount_get_tcon() 3576 struct cifs_sb_info *cifs_sb = mnt_ctx->cifs_sb; in cifs_is_path_remote() local 3619 struct cifs_mount_ctx mnt_ctx = { .cifs_sb = cifs_sb, .fs_ctx = ctx, }; in cifs_mount() 3659 struct cifs_mount_ctx mnt_ctx = { .cifs_sb = cifs_sb, .fs_ctx = ctx, }; in cifs_mount() 3848 kfree(cifs_sb); in delayed_free() [all …]
|
H A D | xattr.c | 100 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_xattr_set() local 106 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_set() 150 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_XATTR) in cifs_xattr_set() 156 cifs_sb->local_nls, cifs_sb); in cifs_xattr_set() 268 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_xattr_get() local 274 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_get() 307 full_path, name, value, size, cifs_sb); in cifs_xattr_get() 328 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get() 373 if (unlikely(cifs_forced_shutdown(cifs_sb))) in cifs_listxattr() 379 tlink = cifs_sb_tlink(cifs_sb); in cifs_listxattr() [all …]
|
H A D | cifsproto.h | 78 struct cifs_sb_info *cifs_sb, 376 struct cifs_sb_info *cifs_sb, 395 struct cifs_sb_info *cifs_sb); 447 struct cifs_sb_info *cifs_sb); 472 struct cifs_sb_info *cifs_sb, 567 struct cifs_sb_info *cifs_sb); 606 struct cifs_sb_info *cifs_sb, 610 struct cifs_sb_info *cifs_sb, 693 struct cifs_sb_info *cifs_sb, 699 struct cifs_sb_info *cifs_sb, in cifs_inval_name_dfs_link_error() argument [all …]
|
H A D | cifsacl.c | 1433 .cifs_sb = cifs_sb, in get_cifs_acl_by_path() 1500 .cifs_sb = cifs_sb, in set_cifs_acl() 1693 tlink = cifs_sb_tlink(cifs_sb); in cifs_get_acl() 1713 cifs_sb->local_nls, in cifs_get_acl() 1714 cifs_remap(cifs_sb)); in cifs_get_acl() 1721 cifs_sb->local_nls, in cifs_get_acl() 1722 cifs_remap(cifs_sb)); in cifs_get_acl() 1790 cifs_sb->local_nls, in cifs_set_acl() 1791 cifs_remap(cifs_sb)); in cifs_set_acl() 1798 cifs_sb->local_nls, in cifs_set_acl() [all …]
|
H A D | misc.c | 549 if (cifs_sb->master_tlink) in cifs_autodisable_serverino() 1104 struct cifs_sb_info *cifs_sb; in tcon_super_cb() local 1110 cifs_sb = CIFS_SB(sb); in tcon_super_cb() 1208 kfree(cifs_sb->prepath); in cifs_update_super_prepath() 1209 cifs_sb->prepath = NULL; in cifs_update_super_prepath() 1213 if (IS_ERR(cifs_sb->prepath)) { in cifs_update_super_prepath() 1215 cifs_sb->prepath = NULL; in cifs_update_super_prepath() 1218 if (cifs_sb->prepath) in cifs_update_super_prepath() 1219 convert_delimiter(cifs_sb->prepath, CIFS_DIR_SEP(cifs_sb)); in cifs_update_super_prepath() 1273 cifs_remap(cifs_sb)); in cifs_inval_name_dfs_link_error() [all …]
|
H A D | cached_dir.c | 73 sep = CIFS_DIR_SEP(cifs_sb); in path_to_dentry() 74 dentry = dget(cifs_sb->root); in path_to_dentry() 113 cifs_sb->prepath) { in path_no_prefix() 114 len = strlen(cifs_sb->prepath) + 1; in path_no_prefix() 127 struct cifs_sb_info *cifs_sb, in open_cached_dir() argument 157 if (cifs_sb->root == NULL) in open_cached_dir() 169 utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); in open_cached_dir() 199 npath = path_no_prefix(cifs_sb, path); in open_cached_dir() 206 dentry = dget(cifs_sb->root); in open_cached_dir() 208 dentry = path_to_dentry(cifs_sb, npath); in open_cached_dir() [all …]
|
H A D | dfs.h | 143 static inline char *dfs_get_path(struct cifs_sb_info *cifs_sb, const char *path) in dfs_get_path() argument 145 return dfs_cache_canonical_path(path, cifs_sb->local_nls, cifs_remap(cifs_sb)); in dfs_get_path() 152 struct cifs_sb_info *cifs_sb = mnt_ctx->cifs_sb; in dfs_get_referral() local 155 return dfs_cache_find(mnt_ctx->xid, rses, cifs_sb->local_nls, in dfs_get_referral() 156 cifs_remap(cifs_sb), path, ref, tl); in dfs_get_referral()
|
H A D | ioctl.c | 59 xid, tcon, cifs_sb, utf16_path, in cifs_ioctl_query_info() 361 struct cifs_sb_info *cifs_sb; in cifs_ioctl() local 462 cifs_sb = CIFS_SB(inode->i_sb); in cifs_ioctl() 463 tlink = cifs_sb_tlink(cifs_sb); in cifs_ioctl() 496 cifs_sb = CIFS_SB(inode->i_sb); in cifs_ioctl() 497 tlink = cifs_sb_tlink(cifs_sb); in cifs_ioctl() 534 cifs_sb = CIFS_SB(inode->i_sb); in cifs_ioctl() 535 tlink = cifs_sb_tlink(cifs_sb); in cifs_ioctl() 551 cifs_sb = CIFS_SB(inode->i_sb); in cifs_ioctl() 552 tlink = cifs_sb_tlink(cifs_sb); in cifs_ioctl() [all …]
|
H A D | file.c | 161 if (cifs_sb->ctx->rsize == 0) in cifs_prepare_read() 162 cifs_sb->ctx->rsize = in cifs_prepare_read() 164 cifs_sb->ctx); in cifs_prepare_read() 481 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open() 493 cifs_remap(cifs_sb)); in cifs_posix_open() 585 .cifs_sb = cifs_sb, in cifs_nt_open() 946 struct cifs_sb_info *cifs_sb; in cifs_open() local 1145 struct cifs_sb_info *cifs_sb; in cifs_reopen_file() local 1239 .cifs_sb = cifs_sb, in cifs_reopen_file() 2293 struct cifs_sb_info *cifs_sb; in cifs_flock() local [all …]
|
H A D | cached_dir.h | 67 struct cifs_sb_info *cifs_sb, 76 struct cifs_sb_info *cifs_sb); 77 extern void close_all_cached_dirs(struct cifs_sb_info *cifs_sb);
|
H A D | namespace.c | 122 struct cifs_sb_info *cifs_sb = CIFS_SB(dentry->d_sb); in is_dfs_mount() local 123 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in is_dfs_mount() 135 struct cifs_sb_info *cifs_sb = CIFS_SB(dentry->d_sb); in automount_fullpath() local 136 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in automount_fullpath()
|
H A D | cifsglob.h | 364 struct cifs_sb_info *cifs_sb, 373 struct cifs_sb_info *cifs_sb, 401 struct cifs_sb_info *cifs_sb); 423 struct cifs_sb_info *cifs_sb); 433 struct cifs_sb_info *cifs_sb, 570 struct cifs_sb_info *cifs_sb, 654 struct cifs_sb_info *cifs_sb; member 1327 return cifs_sb->master_tlink; in cifs_sb_master_tlink() 1397 struct cifs_sb_info *cifs_sb; member 1766 struct cifs_sb_info *cifs_sb; member [all …]
|
H A D | smb2file.c | 66 int smb2_parse_symlink_response(struct cifs_sb_info *cifs_sb, const struct kvec *iov, char **path) in smb2_parse_symlink_response() argument 73 if (!cifs_sb || !iov || !iov->iov_base || !iov->iov_len || !path) in smb2_parse_symlink_response() 90 cifs_sb->local_nls); in smb2_parse_symlink_response() 113 smb2_path = cifs_convert_path_to_utf16(oparms->path, oparms->cifs_sb); in smb2_open_file() 128 rc = smb2_parse_symlink_response(oparms->cifs_sb, &err_iov, in smb2_open_file()
|