patch-2.3.40 linux/fs/ext2/namei.c
Next file: linux/fs/fat/dir.c
Previous file: linux/fs/ext2/inode.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Thu Jan 20 10:48:35 2000
- Orig file:
v2.3.39/linux/fs/ext2/namei.c
- Orig date:
Tue Dec 14 01:27:24 1999
diff -u --recursive --new-file v2.3.39/linux/fs/ext2/namei.c linux/fs/ext2/namei.c
@@ -832,6 +832,13 @@
new_dir->i_version = ++event;
/*
+ * Like most other Unix systems, set the ctime for inodes on a
+ * rename.
+ */
+ old_inode->i_ctime = CURRENT_TIME;
+ mark_inode_dirty(old_inode);
+
+ /*
* ok, that's it
*/
new_de->inode = le32_to_cpu(old_inode->i_ino);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)