* [PATCH] ramfs needs to update directory m/ctime on symlink
@ 2006-03-02 21:09 Peter Staubach
0 siblings, 0 replies; only message in thread
From: Peter Staubach @ 2006-03-02 21:09 UTC (permalink / raw)
To: Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 572 bytes --]
Hi.
Attached is a patch which addresses a problem in ramfs where it neglects
to update the directory mtime and ctime fields when creating a new symbolic
link. Ramfs was modified in 2.6.15 to update these fields when other types
of entries are created. The symlink support is separate from that other
support, so that change did not cover quite all of the possibilities.
All of the directory content manipulation entry points now seem to be
covered with respect to these time field updates.
Thanx...
ps
Signed-off-by: Peter Staubach <staubach@redhat.com>
[-- Attachment #2: ramfs.devel --]
[-- Type: text/plain, Size: 310 bytes --]
--- linux-2.6.15.x86_64/fs/ramfs/inode.c.org
+++ linux-2.6.15.x86_64/fs/ramfs/inode.c
@@ -137,6 +137,7 @@ static int ramfs_symlink(struct inode *
inode->i_gid = dir->i_gid;
d_instantiate(dentry, inode);
dget(dentry);
+ dir->i_mtime = dir->i_ctime = CURRENT_TIME;
} else
iput(inode);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-02 21:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-02 21:09 [PATCH] ramfs needs to update directory m/ctime on symlink Peter Staubach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).