/fs/cifs/ |
D | inode.c | 44 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local 49 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DIRECT_IO) { 50 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) 54 } else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) { 55 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) 59 } else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) 66 if (cifs_sb_master_tcon(cifs_sb)->ses->server->max_read < 163 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local 185 !(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DYNPERM)) 226 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); local [all …]
|
D | cifsfs.c | 162 struct cifs_sb_info *cifs_sb; in cifs_read_super() local 167 cifs_sb = CIFS_SB(sb); in cifs_read_super() 168 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_read_super() 170 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIXACL) in cifs_read_super() 217 sb->s_bdi->ra_pages = cifs_sb->rsize / PAGE_SIZE; in cifs_read_super() 240 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) { in cifs_read_super() 255 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_kill_sb() local 257 cifs_umount(cifs_sb); in cifs_kill_sb() 264 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_statfs() local 265 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_statfs() [all …]
|
D | link.c | 186 struct cifs_sb_info *cifs_sb, const char *fromName, in create_mf_symlink() argument 203 cifs_sb, fromName, buf, &bytes_written); in create_mf_symlink() 219 struct cifs_sb_info *cifs_sb, const unsigned char *path, in query_mf_symlink() argument 233 cifs_sb, path, buf, &bytes_read); in query_mf_symlink() 253 struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, in check_mf_symlink() argument 271 cifs_sb, path, buf, &bytes_read); in check_mf_symlink() 307 struct cifs_sb_info *cifs_sb, const unsigned char *path, in cifs_query_mf_symlink() argument 319 oparms.cifs_sb = cifs_sb; in cifs_query_mf_symlink() 321 oparms.create_options = cifs_create_options(cifs_sb, CREATE_NOT_DIR); in cifs_query_mf_symlink() 351 struct cifs_sb_info *cifs_sb, const unsigned char *path, in cifs_create_mf_symlink() argument [all …]
|
D | connect.c | 341 struct cifs_sb_info *cifs_sb, in reconn_set_next_dfs_target() argument 347 if (!cifs_sb || !cifs_sb->origin_fullpath) in reconn_set_next_dfs_target() 358 cifs_dbg(FYI, "%s: UNC: %s\n", __func__, cifs_sb->origin_fullpath); in reconn_set_next_dfs_target() 372 static inline int reconn_setup_dfs_targets(struct cifs_sb_info *cifs_sb, in reconn_setup_dfs_targets() argument 375 if (!cifs_sb->origin_fullpath) in reconn_setup_dfs_targets() 377 return dfs_cache_noreq_find(cifs_sb->origin_fullpath + 1, NULL, tl); in reconn_setup_dfs_targets() 400 struct cifs_sb_info *cifs_sb = NULL; in cifs_reconnect() local 416 cifs_sb = CIFS_SB(sb); in cifs_reconnect() 417 rc = reconn_setup_dfs_targets(cifs_sb, &tgt_list); in cifs_reconnect() 419 cifs_sb = NULL; in cifs_reconnect() [all …]
|
D | readdir.c | 83 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_prime_dcache() local 115 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM)) in cifs_prime_dcache() 166 cifs_fill_common_info(struct cifs_fattr *fattr, struct cifs_sb_info *cifs_sb) in cifs_fill_common_info() argument 168 fattr->cf_uid = cifs_sb->mnt_uid; in cifs_fill_common_info() 169 fattr->cf_gid = cifs_sb->mnt_gid; in cifs_fill_common_info() 180 fattr->cf_mode = S_IFDIR | cifs_sb->mnt_dir_mode; in cifs_fill_common_info() 183 fattr->cf_mode |= S_IFLNK | cifs_sb->mnt_file_mode; in cifs_fill_common_info() 186 fattr->cf_mode |= S_IFIFO | cifs_sb->mnt_file_mode; in cifs_fill_common_info() 189 fattr->cf_mode |= S_IFSOCK | cifs_sb->mnt_file_mode; in cifs_fill_common_info() 192 fattr->cf_mode |= S_IFCHR | cifs_sb->mnt_file_mode; in cifs_fill_common_info() [all …]
|
D | xattr.c | 109 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_xattr_set() local 114 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_set() 157 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_XATTR) in cifs_xattr_set() 163 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 297 tlink = cifs_sb_tlink(cifs_sb); in cifs_xattr_get() [all …]
|
D | smb1ops.c | 508 struct cifs_sb_info *cifs_sb) in cifs_qfs_tcon() argument 516 struct cifs_sb_info *cifs_sb, const char *full_path) in cifs_is_path_accessible() argument 526 0 /* not legacy */, cifs_sb->local_nls, in cifs_is_path_accessible() 527 cifs_remap(cifs_sb)); in cifs_is_path_accessible() 531 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_is_path_accessible() 538 struct cifs_sb_info *cifs_sb, const char *full_path, in cifs_query_path_info() argument 547 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_query_path_info() 555 cifs_sb->local_nls, in cifs_query_path_info() 556 cifs_remap(cifs_sb)); in cifs_query_path_info() 567 oparms.cifs_sb = cifs_sb; in cifs_query_path_info() [all …]
|
D | dir.c | 49 cifs_build_path_to_root(struct smb_vol *vol, struct cifs_sb_info *cifs_sb, in cifs_build_path_to_root() argument 73 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root() 75 convert_delimiter(full_path, CIFS_DIR_SEP(cifs_sb)); in cifs_build_path_to_root() 83 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb); in build_path_from_dentry() local 84 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() 100 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb); in build_path_from_dentry_optional_prefix() local 101 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry_optional_prefix() 104 dirsep = CIFS_DIR_SEP(cifs_sb); in build_path_from_dentry_optional_prefix() 110 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_USE_PREFIX_PATH) in build_path_from_dentry_optional_prefix() 111 pplen = cifs_sb->prepath ? strlen(cifs_sb->prepath) + 1 : 0; in build_path_from_dentry_optional_prefix() [all …]
|
D | smb2inode.c | 64 struct cifs_sb_info *cifs_sb, const char *full_path, in smb2_compound_op() argument 105 utf16_path = cifs_convert_path_to_utf16(full_path, cifs_sb); in smb2_compound_op() 114 vars->oparms.create_options = cifs_create_options(cifs_sb, create_options); in smb2_compound_op() 118 vars->oparms.cifs_sb = cifs_sb; in smb2_compound_op() 524 struct cifs_sb_info *cifs_sb, const char *full_path, in smb2_query_path_info() argument 544 rc = open_shroot(xid, tcon, cifs_sb, &cfid); in smb2_query_path_info() 563 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info() 571 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info() 588 struct cifs_sb_info *cifs_sb, const char *full_path, in smb311_posix_query_path_info() argument 613 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb311_posix_query_path_info() [all …]
|
D | cifs_dfs_ref.c | 268 struct cifs_sb_info *cifs_sb, in cifs_dfs_do_mount() argument 282 mountdata = cifs_compose_mount_options(cifs_sb->mountdata, in cifs_dfs_do_mount() 300 struct cifs_sb_info *cifs_sb; in cifs_dfs_do_automount() local 319 cifs_sb = CIFS_SB(mntpt->d_sb); in cifs_dfs_do_automount() 320 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_DFS) { in cifs_dfs_do_automount() 334 if (!cifs_sb_master_tlink(cifs_sb)) { in cifs_dfs_do_automount() 339 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_dfs_do_automount() 359 rc = dfs_cache_find(xid, ses, cifs_sb->local_nls, cifs_remap(cifs_sb), in cifs_dfs_do_automount() 362 rc = dfs_cache_find(xid, ses, cifs_sb->local_nls, in cifs_dfs_do_automount() 363 cifs_remap(cifs_sb), full_path + 1, in cifs_dfs_do_automount() [all …]
|
D | misc.c | 530 cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb) in cifs_autodisable_serverino() argument 532 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) { in cifs_autodisable_serverino() 535 if (cifs_sb->master_tlink) in cifs_autodisable_serverino() 536 tcon = cifs_sb_master_tcon(cifs_sb); in cifs_autodisable_serverino() 538 cifs_sb->mnt_cifs_flags &= ~CIFS_MOUNT_SERVER_INUM; in cifs_autodisable_serverino() 539 cifs_sb->mnt_cifs_serverino_autodisabled = true; in cifs_autodisable_serverino() 636 backup_cred(struct cifs_sb_info *cifs_sb) in backup_cred() argument 638 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_BACKUPUID) { in backup_cred() 639 if (uid_eq(cifs_sb->mnt_backupuid, current_fsuid())) in backup_cred() 642 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_BACKUPGID) { in backup_cred() [all …]
|
D | cifsacl.c | 342 sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, in sid_to_id() argument 349 kuid_t fuid = cifs_sb->mnt_uid; in sid_to_id() 350 kgid_t fgid = cifs_sb->mnt_gid; in sid_to_id() 362 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UID_FROM_ACL) || in sid_to_id() 363 (cifs_sb_master_tcon(cifs_sb)->posix_extensions)) { in sid_to_id() 943 static int parse_sec_desc(struct cifs_sb_info *cifs_sb, in parse_sec_desc() argument 972 rc = sid_to_id(cifs_sb, owner_sid_ptr, fattr, SIDOWNER); in parse_sec_desc() 985 rc = sid_to_id(cifs_sb, group_sid_ptr, fattr, SIDGROUP); in parse_sec_desc() 1103 struct cifs_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifs_sb, in get_cifs_acl_by_fid() argument 1109 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_fid() [all …]
|
D | cifsproto.h | 76 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, 240 struct cifs_sb_info *cifs_sb); 245 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol); 294 const char *searchName, struct cifs_sb_info *cifs_sb, 336 struct cifs_sb_info *cifs_sb, 355 struct cifs_sb_info *cifs_sb); 370 struct cifs_sb_info *cifs_sb, bool set_allocation); [all …]
|
D | smb2proto.h | 43 struct cifs_sb_info *cifs_sb); 73 struct cifs_sb_info *cifs_sb, 81 struct cifs_sb_info *cifs_sb, const char *path, 84 struct cifs_sb_info *cifs_sb, 89 struct cifs_sb_info *cifs_sb, bool set_alloc); 95 struct cifs_sb_info *cifs_sb); 98 const char *name, struct cifs_sb_info *cifs_sb); 100 struct cifs_sb_info *cifs_sb, 103 const char *name, struct cifs_sb_info *cifs_sb); 105 const char *name, struct cifs_sb_info *cifs_sb); [all …]
|
D | file.c | 121 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_posix_open() local 132 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open() 143 poplock, full_path, cifs_sb->local_nls, in cifs_posix_open() 144 cifs_remap(cifs_sb)); in cifs_posix_open() 156 cifs_unix_basic_to_fattr(&fattr, presp_data, cifs_sb); in cifs_posix_open() 177 cifs_nt_open(char *full_path, struct inode *inode, struct cifs_sb_info *cifs_sb, in cifs_nt_open() argument 234 oparms.cifs_sb = cifs_sb; in cifs_nt_open() 236 oparms.create_options = cifs_create_options(cifs_sb, create_options); in cifs_nt_open() 447 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in _cifsFileInfo_put() local 482 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) in _cifsFileInfo_put() [all …]
|
D | ioctl.c | 42 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_ioctl_query_info() local 43 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_ioctl_query_info() 59 utf16_path = cifs_convert_path_to_utf16(path + 1, cifs_sb); in cifs_ioctl_query_info() 68 xid, tcon, cifs_sb, utf16_path, in cifs_ioctl_query_info() 173 struct cifs_sb_info *cifs_sb; in cifs_ioctl() local 310 cifs_sb = CIFS_SB(inode->i_sb); in cifs_ioctl() 311 tlink = cifs_sb_tlink(cifs_sb); in cifs_ioctl()
|
D | smb2ops.c | 674 struct cifs_sb_info *cifs_sb, in open_shroot() argument 729 oparms.create_options = cifs_create_options(cifs_sb, 0); in open_shroot() 855 struct cifs_sb_info *cifs_sb) in smb3_qfs_tcon() argument 869 .create_options = cifs_create_options(cifs_sb, 0), in smb3_qfs_tcon() 877 rc = open_shroot(xid, tcon, cifs_sb, &cfid); in smb3_qfs_tcon() 902 struct cifs_sb_info *cifs_sb) in smb2_qfs_tcon() argument 913 oparms.create_options = cifs_create_options(cifs_sb, 0); in smb2_qfs_tcon() 931 struct cifs_sb_info *cifs_sb, const char *full_path) in smb2_is_path_accessible() argument 942 utf16_path = cifs_convert_path_to_utf16(full_path, cifs_sb); in smb2_is_path_accessible() 949 oparms.create_options = cifs_create_options(cifs_sb, 0); in smb2_is_path_accessible() [all …]
|
D | fscache.c | 161 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_fscache_enable_inode_cookie() local 162 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_fscache_enable_inode_cookie() 167 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_FSCACHE)) in cifs_fscache_enable_inode_cookie() 218 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_fscache_reset_inode_cookie() local 219 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_fscache_reset_inode_cookie()
|
D | cifsglob.h | 306 struct cifs_sb_info *cifs_sb, const char *path, 331 struct cifs_sb_info *cifs_sb); 492 struct cifs_sb_info *cifs_sb, 654 struct cifs_sb_info *cifs_sb; member 1203 extern struct tcon_link *cifs_sb_tlink(struct cifs_sb_info *cifs_sb); 1213 cifs_sb_master_tlink(struct cifs_sb_info *cifs_sb) in cifs_sb_master_tlink() argument 1215 return cifs_sb->master_tlink; in cifs_sb_master_tlink() 1229 extern struct cifs_tcon *cifs_sb_master_tcon(struct cifs_sb_info *cifs_sb); 1277 struct cifs_sb_info *cifs_sb; member 1514 static inline char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb) in CIFS_DIR_SEP() argument [all …]
|
D | smb2misc.c | 446 cifs_convert_path_to_utf16(const char *from, struct cifs_sb_info *cifs_sb) in cifs_convert_path_to_utf16() argument 453 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SFM_CHR) in cifs_convert_path_to_utf16() 455 else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR) in cifs_convert_path_to_utf16() 465 else if (cifs_sb_master_tlink(cifs_sb) && in cifs_convert_path_to_utf16() 466 cifs_sb_master_tcon(cifs_sb)->posix_extensions && in cifs_convert_path_to_utf16() 473 cifs_sb->local_nls, map_type); in cifs_convert_path_to_utf16()
|
D | cifssmb.c | 922 struct cifs_sb_info *cifs_sb) in CIFSSMBDelFile() argument 929 int remap = cifs_remap(cifs_sb); in CIFSSMBDelFile() 939 PATH_MAX, cifs_sb->local_nls, in CIFSSMBDelFile() 966 struct cifs_sb_info *cifs_sb) in CIFSSMBRmDir() argument 973 int remap = cifs_remap(cifs_sb); in CIFSSMBRmDir() 984 PATH_MAX, cifs_sb->local_nls, in CIFSSMBRmDir() 1010 struct cifs_sb_info *cifs_sb) in CIFSSMBMkDir() argument 1017 int remap = cifs_remap(cifs_sb); in CIFSSMBMkDir() 1028 PATH_MAX, cifs_sb->local_nls, in CIFSSMBMkDir() 1330 struct cifs_sb_info *cifs_sb = oparms->cifs_sb; in CIFS_open() local [all …]
|
D | cifs_unicode.c | 17 int cifs_remap(struct cifs_sb_info *cifs_sb) in cifs_remap() argument 21 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SFM_CHR) in cifs_remap() 23 else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR) in cifs_remap()
|
D | cifs_unicode.h | 103 extern int cifs_remap(struct cifs_sb_info *cifs_sb);
|
D | smb2file.c | 48 smb2_path = cifs_convert_path_to_utf16(oparms->path, oparms->cifs_sb); in smb2_open_file()
|
D | smb2pdu.c | 2512 struct cifs_sb_info *cifs_sb) in smb311_posix_mkdir() argument 2536 utf16_path = cifs_convert_path_to_utf16(full_path, cifs_sb); in smb311_posix_mkdir() 2798 if ((oparms->disposition != FILE_OPEN) && (oparms->cifs_sb)) { in SMB2_open_init() 2802 if ((oparms->cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MODE_FROM_SID) && in SMB2_open_init() 2810 if (oparms->cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UID_FROM_ACL) in SMB2_open_init()
|