From 13c4f853e6655e6b1c759255bea4f63c77806cdc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Aug 2011 19:25:59 +0000 Subject: 2011-08-02 Joel Sherrill PR 1877/cpukit * libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/memfile.c, sapi/inline/rtems/rbtree.inl, score/include/rtems/score/rbtree.h, score/inline/rtems/score/rbtree.inl, score/src/rbtree.c, score/src/rbtreefind.c, score/src/rbtreeinsert.c: Add comparison function for RBTrees. --- cpukit/libfs/src/imfs/imfs_mknod.c | 2 ++ cpukit/libfs/src/imfs/memfile.c | 3 +++ 2 files changed, 5 insertions(+) (limited to 'cpukit/libfs') diff --git a/cpukit/libfs/src/imfs/imfs_mknod.c b/cpukit/libfs/src/imfs/imfs_mknod.c index 1a0175af0a..2d09c73db5 100644 --- a/cpukit/libfs/src/imfs/imfs_mknod.c +++ b/cpukit/libfs/src/imfs/imfs_mknod.c @@ -72,5 +72,7 @@ int IMFS_mknod( if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); + IMFS_update_ctime(new_node->Parent); + IMFS_update_mtime(new_node->Parent); return 0; } diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c index 56722a186c..069d352606 100644 --- a/cpukit/libfs/src/imfs/memfile.c +++ b/cpukit/libfs/src/imfs/memfile.c @@ -326,6 +326,9 @@ MEMFILE_STATIC int IMFS_memfile_extend( * Set the new length of the file. */ the_jnode->info.file.size = new_length; + + IMFS_update_ctime(the_jnode); + IMFS_update_mtime(the_jnode); return 0; } -- cgit v1.2.3