Lines Matching defs:mode
180 /* if dynperm is set, don't clobber existing mode */
621 * Fetch mode bits as provided by SFU.
631 __u32 mode;
652 mode = le32_to_cpu(*((__le32 *)ea_value));
654 cifs_dbg(FYI, "special bits 0%o org mode 0%o\n",
655 mode, fattr->cf_mode);
656 fattr->cf_mode = (mode & SFBITS_MASK) | fattr->cf_mode;
657 cifs_dbg(FYI, "special mode bits 0%o\n", mode);
722 cifs_dbg(FYI, "POSIX query info: mode 0x%x uniqueid 0x%llx nlink %d\n",
1239 cifs_dbg(FYI, "%s: Get mode from SID failed. rc=%d\n",
1255 /* fill in remaining high mode bits e.g. SUID, VTX */
1888 cifs_mkdir_qinfo(struct inode *parent, struct dentry *dentry, umode_t mode,
1926 mode &= ~current_umask();
1929 mode |= S_ISGID;
1934 .mode = mode,
1959 (mode & S_IWUGO) == 0 && server->ops->mkdir_setinfo)
1963 inode->i_mode = (mode | S_IFDIR);
1979 cifs_posix_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode,
1995 mode &= ~current_umask();
1996 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
2036 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
2043 struct dentry *direntry, umode_t mode)
2054 cifs_dbg(FYI, "In cifs_mkdir, mode = %04ho inode = 0x%p\n",
2055 mode, inode);
2077 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
2086 rc = cifs_posix_mkdir(inode, direntry, mode, full_path, cifs_sb,
2098 /* BB add setting the equivalent of mode via CreateX w/ACLs */
2099 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
2107 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
2483 * @mode: the task state to sleep in
2486 cifs_wait_bit_killable(struct wait_bit_key *key, int mode)
2489 if (signal_pending_state(mode, current))
2896 * ownership or mode then we may also need to do this. Here, we take
2919 /* skip mode change if it's just for clearing setuid/setgid */
2931 args->mode = attrs->ia_mode;
2933 args->mode = NO_CHANGE_64;
3024 __u64 mode = NO_CHANGE_64;
3094 mode = NO_CHANGE_64;
3095 rc = id_mode_to_cifs_acl(inode, full_path, &mode,
3107 /* skip mode change if it's just for clearing setuid/setgid */
3112 mode = attrs->ia_mode;
3116 rc = id_mode_to_cifs_acl(inode, full_path, &mode,
3126 * Pick up the actual mode bits that were set.
3128 if (mode != attrs->ia_mode)
3129 attrs->ia_mode = mode;
3131 if (((mode & S_IWUGO) == 0) &&
3136 /* fix up mode if we're not using dynperm */
3139 } else if ((mode & S_IWUGO) &&
3158 /* ignore mode change - ATTR_READONLY hasn't changed */
3166 /* BB: check for rc = -EOPNOTSUPP and switch to legacy mode */