projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50aff04
)
ocfs2: update ctime when changing the file's permission by setfacl
author
Tao Ma
<
[email protected]
>
Mon, 13 Sep 2010 06:00:23 +0000
(14:00 +0800)
committer
Joel Becker
<
[email protected]
>
Thu, 23 Sep 2010 21:16:21 +0000
(14:16 -0700)
In commit
30e2bab
, ext3 fixed it. So change it accordingly in ocfs2.
Steps to reproduce:
# touch aaa
# stat -c %Z aaa
1283760364
# setfacl -m 'u::x,g::x,o::x' aaa
# stat -c %Z aaa
1283760364
Signed-off-by: Tao Ma <
[email protected]
>
Signed-off-by: Joel Becker <
[email protected]
>
fs/ocfs2/acl.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/acl.c
b/fs/ocfs2/acl.c
index a76e0aa5cd3fc5188a392639618858a7e7e34092..391915093fe1c494a58ec8feae54cd576fd2464a 100644
(file)
--- a/
fs/ocfs2/acl.c
+++ b/
fs/ocfs2/acl.c
@@
-209,7
+209,10
@@
static int ocfs2_acl_set_mode(struct inode *inode, struct buffer_head *di_bh,
}
inode->i_mode = new_mode;
+ inode->i_ctime = CURRENT_TIME;
di->i_mode = cpu_to_le16(inode->i_mode);
+ di->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec);
+ di->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec);
ocfs2_journal_dirty(handle, di_bh);