diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 03:22:14 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:55:09 -0500 |
commit | 5206efd62ce49cf5c7940d81c22bc556fc843de2 (patch) | |
tree | 4cb981a87d6981cd9746953d0d9224403d29c887 /fs/cifs | |
parent | dacd0e7b392dfaf888461741dbcaccf8b6a15bac (diff) |
cifs: propagate umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifs_fs_sb.h | 4 | ||||
-rw-r--r-- | fs/cifs/cifsfs.c | 2 | ||||
-rw-r--r-- | fs/cifs/cifsglob.h | 4 | ||||
-rw-r--r-- | fs/cifs/connect.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/fs/cifs/cifs_fs_sb.h b/fs/cifs/cifs_fs_sb.h index 500d65859279..c865bfdfe819 100644 --- a/fs/cifs/cifs_fs_sb.h +++ b/fs/cifs/cifs_fs_sb.h | |||
@@ -59,8 +59,8 @@ struct cifs_sb_info { | |||
59 | gid_t mnt_gid; | 59 | gid_t mnt_gid; |
60 | uid_t mnt_backupuid; | 60 | uid_t mnt_backupuid; |
61 | gid_t mnt_backupgid; | 61 | gid_t mnt_backupgid; |
62 | mode_t mnt_file_mode; | 62 | umode_t mnt_file_mode; |
63 | mode_t mnt_dir_mode; | 63 | umode_t mnt_dir_mode; |
64 | unsigned int mnt_cifs_flags; | 64 | unsigned int mnt_cifs_flags; |
65 | char *mountdata; /* options received at mount time or via DFS refs */ | 65 | char *mountdata; /* options received at mount time or via DFS refs */ |
66 | struct backing_dev_info bdi; | 66 | struct backing_dev_info bdi; |
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 8f1fe324162b..5bb961c13c4d 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -393,7 +393,7 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m) | |||
393 | cifs_show_address(s, tcon->ses->server); | 393 | cifs_show_address(s, tcon->ses->server); |
394 | 394 | ||
395 | if (!tcon->unix_ext) | 395 | if (!tcon->unix_ext) |
396 | seq_printf(s, ",file_mode=0%o,dir_mode=0%o", | 396 | seq_printf(s, ",file_mode=0%ho,dir_mode=0%ho", |
397 | cifs_sb->mnt_file_mode, | 397 | cifs_sb->mnt_file_mode, |
398 | cifs_sb->mnt_dir_mode); | 398 | cifs_sb->mnt_dir_mode); |
399 | if (tcon->seal) | 399 | if (tcon->seal) |
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 8238aa13e01c..ba53c1c6c6cc 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -169,8 +169,8 @@ struct smb_vol { | |||
169 | gid_t linux_gid; | 169 | gid_t linux_gid; |
170 | uid_t backupuid; | 170 | uid_t backupuid; |
171 | gid_t backupgid; | 171 | gid_t backupgid; |
172 | mode_t file_mode; | 172 | umode_t file_mode; |
173 | mode_t dir_mode; | 173 | umode_t dir_mode; |
174 | unsigned secFlg; | 174 | unsigned secFlg; |
175 | bool retry:1; | 175 | bool retry:1; |
176 | bool intr:1; | 176 | bool intr:1; |
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 8cd4b52d4217..be1e8f91c0ad 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -2819,7 +2819,7 @@ void cifs_setup_cifs_sb(struct smb_vol *pvolume_info, | |||
2819 | cifs_sb->mnt_backupgid = pvolume_info->backupgid; | 2819 | cifs_sb->mnt_backupgid = pvolume_info->backupgid; |
2820 | cifs_sb->mnt_file_mode = pvolume_info->file_mode; | 2820 | cifs_sb->mnt_file_mode = pvolume_info->file_mode; |
2821 | cifs_sb->mnt_dir_mode = pvolume_info->dir_mode; | 2821 | cifs_sb->mnt_dir_mode = pvolume_info->dir_mode; |
2822 | cFYI(1, "file mode: 0x%x dir mode: 0x%x", | 2822 | cFYI(1, "file mode: 0x%hx dir mode: 0x%hx", |
2823 | cifs_sb->mnt_file_mode, cifs_sb->mnt_dir_mode); | 2823 | cifs_sb->mnt_file_mode, cifs_sb->mnt_dir_mode); |
2824 | 2824 | ||
2825 | cifs_sb->actimeo = pvolume_info->actimeo; | 2825 | cifs_sb->actimeo = pvolume_info->actimeo; |