Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1f9ccaab
Commit
1f9ccaab
authored
Apr 27, 2003
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cifs_show_options to display mount options in a way that is more
consistent with other filesystems
parent
afbf875b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
13 deletions
+22
-13
fs/cifs/CHANGES
fs/cifs/CHANGES
+5
-0
fs/cifs/cifs_fs_sb.h
fs/cifs/cifs_fs_sb.h
+2
-2
fs/cifs/cifsfs.c
fs/cifs/cifsfs.c
+11
-7
fs/cifs/cifsglob.h
fs/cifs/cifsglob.h
+2
-2
fs/cifs/connect.c
fs/cifs/connect.c
+2
-2
No files found.
fs/cifs/CHANGES
View file @
1f9ccaab
Version 0.76
------------
Clean up options displayed in /proc/mounts by show_options to
be more consistent with other filesystems.
Version 0.75
------------
Fix delete of readonly file to Windows servers. Reflect
...
...
fs/cifs/cifs_fs_sb.h
View file @
1f9ccaab
...
...
@@ -22,7 +22,7 @@ struct cifs_sb_info {
struct
cifsTconInfo
*
tcon
;
/* primary mount */
struct
list_head
nested_tcon_q
;
struct
nls_table
*
local_nls
;
unsigned
int
rsize
;
unsigned
int
wsize
;
unsigned
int
rsize
;
unsigned
int
wsize
;
};
#endif
/* _CIFS_FS_SB_H */
fs/cifs/cifsfs.c
View file @
1f9ccaab
...
...
@@ -209,8 +209,8 @@ cifs_destroy_inode(struct inode *inode)
/*
* cifs_show_options() is for displaying mount options in /proc/mounts.
*
It tries to avoid showing settings that were not changed from their
*
defaults
.
*
Not all settable options are displayed but most of the important
*
ones are
.
*/
static
int
cifs_show_options
(
struct
seq_file
*
s
,
struct
vfsmount
*
m
)
...
...
@@ -219,15 +219,19 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
cifs_sb
=
CIFS_SB
(
m
->
mnt_sb
);
if
(
cifs_sb
)
if
(
cifs_sb
)
{
if
(
cifs_sb
->
tcon
)
{
seq_printf
(
s
,
", TARGET: %s "
,
cifs_sb
->
tcon
->
treeName
);
seq_printf
(
s
,
"FS TYPE: %s "
,
cifs_sb
->
tcon
->
nativeFileSystem
);
seq_printf
(
s
,
",unc=%s"
,
cifs_sb
->
tcon
->
treeName
);
if
(
cifs_sb
->
tcon
->
ses
->
userName
)
seq_printf
(
s
,
"
USER: %s
"
,
seq_printf
(
s
,
"
,username=%s
"
,
cifs_sb
->
tcon
->
ses
->
userName
);
if
(
cifs_sb
->
tcon
->
ses
->
domainName
)
seq_printf
(
s
,
",domain=%s"
,
cifs_sb
->
tcon
->
ses
->
domainName
);
}
seq_printf
(
s
,
",rsize=%d"
,
cifs_sb
->
rsize
);
seq_printf
(
s
,
",wsize=%d"
,
cifs_sb
->
wsize
);
}
return
0
;
}
...
...
fs/cifs/cifsglob.h
View file @
1f9ccaab
...
...
@@ -157,8 +157,8 @@ struct cifsSesInfo {
int
capabilities
;
char
serverName
[
SERVER_NAME_LEN_WITH_NULL
*
2
];
/* BB make bigger for tcp names - will ipv6 and sctp addresses fit here?? */
char
userName
[
MAX_USERNAME_SIZE
+
1
];
char
domainName
[
MAX_USERNAME_SIZE
+
1
];
char
password_with_pad
[
CIFS_ENCPWD_SIZE
];
char
domainName
[
MAX_USERNAME_SIZE
+
1
];
char
password_with_pad
[
CIFS_ENCPWD_SIZE
];
};
/*
...
...
fs/cifs/connect.c
View file @
1f9ccaab
...
...
@@ -57,8 +57,8 @@ struct smb_vol {
mode_t
file_mode
;
mode_t
dir_mode
;
int
rw
;
unsigned
int
rsize
;
unsigned
int
wsize
;
unsigned
int
rsize
;
unsigned
int
wsize
;
unsigned
short
int
port
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment