lkml.org 
[lkml]   [2006]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 27/39] [PATCH] ramfs: update dir mtime and ctime
    -stable review patch.  If anyone has any objections, please let us know.
    ------------------

    Phil Marek <philipp.marek@bmlv.gv.at> points out that ramfs forgets to update
    a directory's mtime and ctime when it is modified.

    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    ---

    fs/ramfs/inode.c | 2 ++
    1 files changed, 2 insertions(+)

    --- linux-2.6.15.4.orig/fs/ramfs/inode.c
    +++ linux-2.6.15.4/fs/ramfs/inode.c
    @@ -27,6 +27,7 @@
    #include <linux/fs.h>
    #include <linux/pagemap.h>
    #include <linux/highmem.h>
    +#include <linux/time.h>
    #include <linux/init.h>
    #include <linux/string.h>
    #include <linux/smp_lock.h>
    @@ -105,6 +106,7 @@ ramfs_mknod(struct inode *dir, struct de
    d_instantiate(dentry, inode);
    dget(dentry); /* Extra count - pin the dentry in core */
    error = 0;
    + dir->i_mtime = dir->i_ctime = CURRENT_TIME;
    }
    return error;
    }
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-02-27 23:38    [W:0.020 / U:29.428 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site