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
8c592f24
Commit
8c592f24
authored
Jul 12, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set DevMajor/DevMinor when querying info on remote char/block devices
Signed-off-by: Steve French (sfrench@us.ibm.com)
parent
c1c67b31
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
fs/cifs/CHANGES
fs/cifs/CHANGES
+2
-1
fs/cifs/file.c
fs/cifs/file.c
+4
-0
fs/cifs/inode.c
fs/cifs/inode.c
+4
-0
No files found.
fs/cifs/CHANGES
View file @
8c592f24
...
...
@@ -4,7 +4,8 @@ Make transaction counts more consistent. Merge /proc/fs/cifs/SimultaneousOps
info into /proc/fs/cifs/DebugData. Fix oops in rare oops in readdir
(in build_wildcard_path_from_dentry). Fix mknod to pass type field
(block/char/fifo) properly. Remove spurious mount warning log entry when
credentials passed as mount argument.
credentials passed as mount argument. Set major/minor device number in
inode for block and char devices when unix extensions enabled.
Version 1.19
------------
...
...
fs/cifs/file.c
View file @
8c592f24
...
...
@@ -1463,9 +1463,13 @@ unix_fill_in_inode(struct inode *tmp_inode,
}
else
if
(
pfindData
->
Type
==
UNIX_CHARDEV
)
{
*
pobject_type
=
DT_CHR
;
tmp_inode
->
i_mode
|=
S_IFCHR
;
tmp_inode
->
i_rdev
=
MKDEV
(
le64_to_cpu
(
pfindData
->
DevMajor
),
le64_to_cpu
(
pfindData
->
DevMinor
)
&
MINORMASK
);
}
else
if
(
pfindData
->
Type
==
UNIX_BLOCKDEV
)
{
*
pobject_type
=
DT_BLK
;
tmp_inode
->
i_mode
|=
S_IFBLK
;
tmp_inode
->
i_rdev
=
MKDEV
(
le64_to_cpu
(
pfindData
->
DevMajor
),
le64_to_cpu
(
pfindData
->
DevMinor
)
&
MINORMASK
);
}
else
if
(
pfindData
->
Type
==
UNIX_FIFO
)
{
*
pobject_type
=
DT_FIFO
;
tmp_inode
->
i_mode
|=
S_IFIFO
;
...
...
fs/cifs/inode.c
View file @
8c592f24
...
...
@@ -110,8 +110,12 @@ cifs_get_inode_info_unix(struct inode **pinode,
inode
->
i_mode
|=
S_IFDIR
;
}
else
if
(
findData
.
Type
==
UNIX_CHARDEV
)
{
inode
->
i_mode
|=
S_IFCHR
;
inode
->
i_rdev
=
MKDEV
(
le64_to_cpu
(
findData
.
DevMajor
),
le64_to_cpu
(
findData
.
DevMinor
)
&
MINORMASK
);
}
else
if
(
findData
.
Type
==
UNIX_BLOCKDEV
)
{
inode
->
i_mode
|=
S_IFBLK
;
inode
->
i_rdev
=
MKDEV
(
le64_to_cpu
(
findData
.
DevMajor
),
le64_to_cpu
(
findData
.
DevMinor
)
&
MINORMASK
);
}
else
if
(
findData
.
Type
==
UNIX_FIFO
)
{
inode
->
i_mode
|=
S_IFIFO
;
}
else
if
(
findData
.
Type
==
UNIX_SOCKET
)
{
...
...
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