All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] ramfs needs to update directory m/ctime on symlink
Date: Thu, 02 Mar 2006 16:09:48 -0500	[thread overview]
Message-ID: <44075F1C.6030201@redhat.com> (raw)

[-- 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);
 	}

                 reply	other threads:[~2006-03-02 21:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44075F1C.6030201@redhat.com \
    --to=staubach@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.