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
c6667949
Commit
c6667949
authored
Nov 17, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Devfs was broken by the nanosecond inode times. Fix properly.
parent
4808433a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
fs/devfs/base.c
fs/devfs/base.c
+9
-12
No files found.
fs/devfs/base.c
View file @
c6667949
...
...
@@ -799,9 +799,9 @@ struct symlink_type
struct
devfs_inode
/* This structure is for "persistent" inode storage */
{
struct
dentry
*
dentry
;
time_t
atime
;
time_t
mtime
;
time_t
ctime
;
struct
timespec
atime
;
struct
timespec
mtime
;
struct
timespec
ctime
;
unsigned
int
ino
;
/* Inode number as seen in the VFS */
uid_t
uid
;
gid_t
gid
;
...
...
@@ -2509,9 +2509,9 @@ static int devfs_notify_change (struct dentry *dentry, struct iattr *iattr)
de
->
mode
=
inode
->
i_mode
;
de
->
inode
.
uid
=
inode
->
i_uid
;
de
->
inode
.
gid
=
inode
->
i_gid
;
de
->
inode
.
atime
=
inode
->
i_atime
.
tv_sec
;
de
->
inode
.
mtime
=
inode
->
i_mtime
.
tv_sec
;
de
->
inode
.
ctime
=
inode
->
i_ctime
.
tv_sec
;
de
->
inode
.
atime
=
inode
->
i_atime
;
de
->
inode
.
mtime
=
inode
->
i_mtime
;
de
->
inode
.
ctime
=
inode
->
i_ctime
;
if
(
(
iattr
->
ia_valid
&
(
ATTR_MODE
|
ATTR_UID
|
ATTR_GID
)
)
&&
!
is_devfsd_or_child
(
fs_info
)
)
devfsd_notify_de
(
de
,
DEVFSD_NOTIFY_CHANGE
,
inode
->
i_mode
,
...
...
@@ -2610,12 +2610,9 @@ static struct inode *_devfs_get_vfs_inode (struct super_block *sb,
inode
->
i_mode
=
de
->
mode
;
inode
->
i_uid
=
de
->
inode
.
uid
;
inode
->
i_gid
=
de
->
inode
.
gid
;
inode
->
i_atime
.
tv_sec
=
de
->
inode
.
atime
;
inode
->
i_mtime
.
tv_sec
=
de
->
inode
.
mtime
;
inode
->
i_ctime
.
tv_sec
=
de
->
inode
.
ctime
;
inode
->
i_atime
.
tv_nsec
=
0
;
inode
->
i_mtime
.
tv_nsec
=
0
;
inode
->
i_ctime
.
tv_nsec
=
0
;
inode
->
i_atime
=
de
->
inode
.
atime
;
inode
->
i_mtime
=
de
->
inode
.
mtime
;
inode
->
i_ctime
=
de
->
inode
.
ctime
;
DPRINTK
(
DEBUG_I_GET
,
"(): mode: 0%o uid: %d gid: %d
\n
"
,
(
int
)
inode
->
i_mode
,
(
int
)
inode
->
i_uid
,
(
int
)
inode
->
i_gid
);
return
inode
;
...
...
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