Home
last modified time | relevance | path

Searched refs:cifs_sb (Results 1 – 25 of 30) sorted by relevance

12

/fs/cifs/
Dcifsfs.c158 struct cifs_sb_info *cifs_sb; in cifs_read_super() local
163 cifs_sb = CIFS_SB(sb); in cifs_read_super()
164 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_read_super()
166 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIXACL) in cifs_read_super()
213 if (cifs_sb->ctx->rsize == 0) in cifs_read_super()
214 cifs_sb->ctx->rsize = in cifs_read_super()
215 tcon->ses->server->ops->negotiate_rsize(tcon, cifs_sb->ctx); in cifs_read_super()
216 if (cifs_sb->ctx->rasize) in cifs_read_super()
217 sb->s_bdi->ra_pages = cifs_sb->ctx->rasize / PAGE_SIZE; in cifs_read_super()
219 sb->s_bdi->ra_pages = cifs_sb->ctx->rsize / PAGE_SIZE; in cifs_read_super()
[all …]
Dinode.c31 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local
36 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DIRECT_IO) {
37 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL)
41 } else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) {
42 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL)
46 } else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL)
53 if (cifs_sb_master_tcon(cifs_sb)->ses->server->max_read <
150 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local
178 !(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DYNPERM))
220 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); local
[all …]
Dlink.c174 struct cifs_sb_info *cifs_sb, const char *fromName, in create_mf_symlink() argument
191 cifs_sb, fromName, buf, &bytes_written); in create_mf_symlink()
207 struct cifs_sb_info *cifs_sb, const unsigned char *path, in query_mf_symlink() argument
221 cifs_sb, path, buf, &bytes_read); in query_mf_symlink()
241 struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, in check_mf_symlink() argument
259 cifs_sb, path, buf, &bytes_read); in check_mf_symlink()
295 struct cifs_sb_info *cifs_sb, const unsigned char *path, in cifs_query_mf_symlink() argument
307 oparms.cifs_sb = cifs_sb; in cifs_query_mf_symlink()
309 oparms.create_options = cifs_create_options(cifs_sb, CREATE_NOT_DIR); in cifs_query_mf_symlink()
339 struct cifs_sb_info *cifs_sb, const unsigned char *path, in cifs_create_mf_symlink() argument
[all …]
Dfs_context.c776 #define STEAL_STRING(cifs_sb, ctx, field) \ argument
779 ctx->field = cifs_sb->ctx->field; \
780 cifs_sb->ctx->field = NULL; \
787 struct cifs_sb_info *cifs_sb = CIFS_SB(root->d_sb); in smb3_reconfigure() local
790 rc = smb3_verify_reconfigure_ctx(fc, ctx, cifs_sb->ctx); in smb3_reconfigure()
799 STEAL_STRING(cifs_sb, ctx, UNC); in smb3_reconfigure()
800 STEAL_STRING(cifs_sb, ctx, source); in smb3_reconfigure()
801 STEAL_STRING(cifs_sb, ctx, username); in smb3_reconfigure()
802 STEAL_STRING(cifs_sb, ctx, password); in smb3_reconfigure()
803 STEAL_STRING(cifs_sb, ctx, domainname); in smb3_reconfigure()
[all …]
Dreaddir.c71 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_prime_dcache() local
103 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM)) in cifs_prime_dcache()
152 cifs_fill_common_info(struct cifs_fattr *fattr, struct cifs_sb_info *cifs_sb) in cifs_fill_common_info() argument
154 fattr->cf_uid = cifs_sb->ctx->linux_uid; in cifs_fill_common_info()
155 fattr->cf_gid = cifs_sb->ctx->linux_gid; in cifs_fill_common_info()
166 fattr->cf_mode = S_IFDIR | cifs_sb->ctx->dir_mode; in cifs_fill_common_info()
169 fattr->cf_mode |= S_IFLNK | cifs_sb->ctx->file_mode; in cifs_fill_common_info()
172 fattr->cf_mode |= S_IFIFO | cifs_sb->ctx->file_mode; in cifs_fill_common_info()
175 fattr->cf_mode |= S_IFSOCK | cifs_sb->ctx->file_mode; in cifs_fill_common_info()
178 fattr->cf_mode |= S_IFCHR | cifs_sb->ctx->file_mode; in cifs_fill_common_info()
[all …]
Dconnect.c65 struct cifs_sb_info *cifs_sb; member
2412 struct cifs_sb_info *new = mnt_data->cifs_sb; in compare_mount_options()
2460 struct cifs_sb_info *new = mnt_data->cifs_sb; in match_prepath()
2479 struct cifs_sb_info *cifs_sb; in cifs_match_super() local
2487 cifs_sb = CIFS_SB(sb); in cifs_match_super()
2490 if (CIFS_MOUNT_SHUTDOWN & cifs_sb->mnt_cifs_flags) { in cifs_match_super()
2495 tlink = cifs_get_tlink(cifs_sb_master_tlink(cifs_sb)); in cifs_match_super()
2794 struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx) in reset_cifs_unix_caps() argument
2854 if (cifs_sb) in reset_cifs_unix_caps()
2855 cifs_sb->mnt_cifs_flags |= in reset_cifs_unix_caps()
[all …]
Dxattr.c100 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()
214 ACL_TYPE_ACCESS, cifs_sb->local_nls, in cifs_xattr_set()
215 cifs_remap(cifs_sb)); in cifs_xattr_set()
226 ACL_TYPE_DEFAULT, cifs_sb->local_nls, in cifs_xattr_set()
227 cifs_remap(cifs_sb)); in cifs_xattr_set()
292 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_xattr_get() local
298 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_get()
[all …]
Dsmb1ops.c509 struct cifs_sb_info *cifs_sb) in cifs_qfs_tcon() argument
517 struct cifs_sb_info *cifs_sb, const char *full_path) in cifs_is_path_accessible() argument
527 0 /* not legacy */, cifs_sb->local_nls, in cifs_is_path_accessible()
528 cifs_remap(cifs_sb)); in cifs_is_path_accessible()
532 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_is_path_accessible()
539 struct cifs_sb_info *cifs_sb, const char *full_path, in cifs_query_path_info() argument
548 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_query_path_info()
556 cifs_sb->local_nls, in cifs_query_path_info()
557 cifs_remap(cifs_sb)); in cifs_query_path_info()
568 oparms.cifs_sb = cifs_sb; in cifs_query_path_info()
[all …]
Ddir.c38 cifs_build_path_to_root(struct smb3_fs_context *ctx, struct cifs_sb_info *cifs_sb, in cifs_build_path_to_root() argument
62 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root()
64 convert_delimiter(full_path, CIFS_DIR_SEP(cifs_sb)); in cifs_build_path_to_root()
72 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb); in build_path_from_dentry() local
73 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry()
86 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb); in build_path_from_dentry_optional_prefix() local
87 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry_optional_prefix()
88 char dirsep = CIFS_DIR_SEP(cifs_sb); in build_path_from_dentry_optional_prefix()
99 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_USE_PREFIX_PATH) 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()
[all …]
Dsmb2inode.c51 struct cifs_sb_info *cifs_sb, const char *full_path, in smb2_compound_op() argument
92 utf16_path = cifs_convert_path_to_utf16(full_path, cifs_sb); in smb2_compound_op()
101 vars->oparms.create_options = cifs_create_options(cifs_sb, create_options); in smb2_compound_op()
105 vars->oparms.cifs_sb = cifs_sb; in smb2_compound_op()
511 struct cifs_sb_info *cifs_sb, const char *full_path, in smb2_query_path_info() argument
529 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, &cfid); in smb2_query_path_info()
546 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
554 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
571 struct cifs_sb_info *cifs_sb, const char *full_path, in smb311_posix_query_path_info() argument
596 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb311_posix_query_path_info()
[all …]
Dcifsproto.h74 struct cifs_sb_info *cifs_sb,
192 struct cifs_sb_info *cifs_sb);
212 extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid,
214 extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb,
239 extern int cifs_setup_cifs_sb(struct cifs_sb_info *cifs_sb);
241 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx);
306 const char *searchName, struct cifs_sb_info *cifs_sb,
348 struct cifs_sb_info *cifs_sb,
367 struct cifs_sb_info *cifs_sb);
377 struct cifs_sb_info *cifs_sb, bool set_allocation);
[all …]
Dsmb2proto.h30 struct cifs_sb_info *cifs_sb);
59 struct cifs_sb_info *cifs_sb,
70 struct cifs_sb_info *cifs_sb, const char *path,
73 struct cifs_sb_info *cifs_sb,
78 struct cifs_sb_info *cifs_sb, bool set_alloc);
84 struct cifs_sb_info *cifs_sb);
87 const char *name, struct cifs_sb_info *cifs_sb);
89 struct cifs_sb_info *cifs_sb,
92 const char *name, struct cifs_sb_info *cifs_sb);
94 const char *name, struct cifs_sb_info *cifs_sb);
[all …]
Dcifsacl.c334 sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, in sid_to_id() argument
341 kuid_t fuid = cifs_sb->ctx->linux_uid; in sid_to_id()
342 kgid_t fgid = cifs_sb->ctx->linux_gid; in sid_to_id()
354 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UID_FROM_ACL) || in sid_to_id()
355 (cifs_sb_master_tcon(cifs_sb)->posix_extensions)) { in sid_to_id()
1188 static int parse_sec_desc(struct cifs_sb_info *cifs_sb, in parse_sec_desc() argument
1217 rc = sid_to_id(cifs_sb, owner_sid_ptr, fattr, SIDOWNER); in parse_sec_desc()
1230 rc = sid_to_id(cifs_sb, group_sid_ptr, fattr, SIDGROUP); in parse_sec_desc()
1382 struct cifs_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifs_sb, in get_cifs_acl_by_fid() argument
1389 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_fid()
[all …]
Dfile.c110 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_posix_open() local
121 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open()
132 poplock, full_path, cifs_sb->local_nls, in cifs_posix_open()
133 cifs_remap(cifs_sb)); in cifs_posix_open()
145 cifs_unix_basic_to_fattr(&fattr, presp_data, cifs_sb); in cifs_posix_open()
166 cifs_nt_open(const char *full_path, struct inode *inode, struct cifs_sb_info *cifs_sb, in cifs_nt_open() argument
223 oparms.cifs_sb = cifs_sb; in cifs_nt_open()
225 oparms.create_options = cifs_create_options(cifs_sb, create_options); in cifs_nt_open()
445 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in _cifsFileInfo_put() local
480 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) in _cifsFileInfo_put()
[all …]
Dmisc.c517 cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb) in cifs_autodisable_serverino() argument
519 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) { in cifs_autodisable_serverino()
522 if (cifs_sb->master_tlink) in cifs_autodisable_serverino()
523 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_autodisable_serverino()
525 cifs_sb->mnt_cifs_flags &= ~CIFS_MOUNT_SERVER_INUM; in cifs_autodisable_serverino()
526 cifs_sb->mnt_cifs_serverino_autodisabled = true; in cifs_autodisable_serverino()
624 backup_cred(struct cifs_sb_info *cifs_sb) in backup_cred() argument
626 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_BACKUPUID) { in backup_cred()
627 if (uid_eq(cifs_sb->ctx->backupuid, current_fsuid())) in backup_cred()
630 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_BACKUPGID) { in backup_cred()
[all …]
Dsmb2ops.c746 struct cifs_sb_info *cifs_sb, in open_cached_dir() argument
771 if (cifs_sb->root == NULL) in open_cached_dir()
777 dentry = cifs_sb->root; in open_cached_dir()
816 oparms.create_options = cifs_create_options(cifs_sb, 0); in open_cached_dir()
963 struct cifs_sb_info *cifs_sb) in smb3_qfs_tcon() argument
976 .create_options = cifs_create_options(cifs_sb, 0), in smb3_qfs_tcon()
980 rc = open_cached_dir(xid, tcon, "", cifs_sb, &cfid); in smb3_qfs_tcon()
1007 struct cifs_sb_info *cifs_sb) in smb2_qfs_tcon() argument
1018 oparms.create_options = cifs_create_options(cifs_sb, 0); in smb2_qfs_tcon()
1036 struct cifs_sb_info *cifs_sb, const char *full_path) in smb2_is_path_accessible() argument
[all …]
Dioctl.c30 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_ioctl_query_info() local
31 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_ioctl_query_info()
50 utf16_path = cifs_convert_path_to_utf16(path + 1, cifs_sb); in cifs_ioctl_query_info()
59 xid, tcon, cifs_sb, utf16_path, in cifs_ioctl_query_info()
322 struct cifs_sb_info *cifs_sb; in cifs_ioctl() local
476 cifs_sb = CIFS_SB(inode->i_sb); in cifs_ioctl()
477 tlink = cifs_sb_tlink(cifs_sb); in cifs_ioctl()
Dcifs_dfs_ref.c269 struct cifs_sb_info *cifs_sb; in cifs_dfs_do_automount() local
285 cifs_sb = CIFS_SB(mntpt->d_sb); in cifs_dfs_do_automount()
286 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_DFS) in cifs_dfs_do_automount()
289 cur_ctx = cifs_sb->ctx; in cifs_dfs_do_automount()
Dfscache.c150 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_fscache_enable_inode_cookie() local
151 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_fscache_enable_inode_cookie()
156 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_FSCACHE)) in cifs_fscache_enable_inode_cookie()
212 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_fscache_reset_inode_cookie() local
213 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_fscache_reset_inode_cookie()
Dcifsglob.h299 struct cifs_sb_info *cifs_sb, const char *path,
324 struct cifs_sb_info *cifs_sb);
485 struct cifs_sb_info *cifs_sb,
558 struct cifs_sb_info *cifs_sb; member
1138 extern struct tcon_link *cifs_sb_tlink(struct cifs_sb_info *cifs_sb);
1148 cifs_sb_master_tlink(struct cifs_sb_info *cifs_sb) in cifs_sb_master_tlink() argument
1150 return cifs_sb->master_tlink; in cifs_sb_master_tlink()
1164 extern struct cifs_tcon *cifs_sb_master_tcon(struct cifs_sb_info *cifs_sb);
1220 struct cifs_sb_info *cifs_sb; member
1460 static inline char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb) in CIFS_DIR_SEP() argument
[all …]
Dsmb2misc.c439 cifs_convert_path_to_utf16(const char *from, struct cifs_sb_info *cifs_sb) in cifs_convert_path_to_utf16() argument
446 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SFM_CHR) in cifs_convert_path_to_utf16()
448 else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR) in cifs_convert_path_to_utf16()
458 else if (cifs_sb_master_tlink(cifs_sb) && in cifs_convert_path_to_utf16()
459 cifs_sb_master_tcon(cifs_sb)->posix_extensions && in cifs_convert_path_to_utf16()
466 cifs_sb->local_nls, map_type); in cifs_convert_path_to_utf16()
Dcifssmb.c808 struct cifs_sb_info *cifs_sb) in CIFSSMBDelFile() argument
815 int remap = cifs_remap(cifs_sb); in CIFSSMBDelFile()
825 PATH_MAX, cifs_sb->local_nls, in CIFSSMBDelFile()
852 struct cifs_sb_info *cifs_sb) in CIFSSMBRmDir() argument
859 int remap = cifs_remap(cifs_sb); in CIFSSMBRmDir()
870 PATH_MAX, cifs_sb->local_nls, in CIFSSMBRmDir()
896 struct cifs_sb_info *cifs_sb) in CIFSSMBMkDir() argument
903 int remap = cifs_remap(cifs_sb); in CIFSSMBMkDir()
914 PATH_MAX, cifs_sb->local_nls, in CIFSSMBMkDir()
1217 struct cifs_sb_info *cifs_sb = oparms->cifs_sb; in CIFS_open() local
[all …]
Dcifs_unicode.c16 int cifs_remap(struct cifs_sb_info *cifs_sb) in cifs_remap() argument
20 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SFM_CHR) in cifs_remap()
22 else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR) in cifs_remap()
Ddfs_cache.c1453 int dfs_cache_remount_fs(struct cifs_sb_info *cifs_sb) in dfs_cache_remount_fs() argument
1461 if (!cifs_sb || !cifs_sb->master_tlink) in dfs_cache_remount_fs()
1464 tcon = cifs_sb_master_tcon(cifs_sb); in dfs_cache_remount_fs()
1472 if (uuid_is_null(&cifs_sb->dfs_mount_id)) { in dfs_cache_remount_fs()
1478 mg = find_mount_group_locked(&cifs_sb->dfs_mount_id); in dfs_cache_remount_fs()
1495 cifs_autodisable_serverino(cifs_sb); in dfs_cache_remount_fs()
1500 cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_USE_PREFIX_PATH; in dfs_cache_remount_fs()
Dsess.c25 cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses,
69 int cifs_try_adding_channels(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses) in cifs_try_adding_channels() argument
147 rc = cifs_ses_add_channel(cifs_sb, ses, iface); in cifs_try_adding_channels()
186 cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses, in cifs_ses_add_channel() argument
251 ctx.local_nls = cifs_sb->local_nls; in cifs_ses_add_channel()
296 rc = cifs_setup_session(xid, ses, cifs_sb->local_nls); in cifs_ses_add_channel()

12