From 52a0ce2f845b15a80e09624924331a0b70b306b5 Mon Sep 17 00:00:00 2001 From: kalpak Date: Sat, 19 Jul 2008 13:24:10 +0000 Subject: [PATCH] b=16199 i=adilger i=girish ctime should not be updated through filter_set_md() --- .../ext3-xattr-no-update-ctime-2.6-sles10.patch | 33 ++++++++++++++++++++++ .../kernel_patches/series/ldiskfs-2.6-rhel5.series | 1 + .../series/ldiskfs-2.6-sles10.series | 1 + .../series/ldiskfs-2.6.22-vanilla.series | 1 + 4 files changed, 36 insertions(+) create mode 100644 ldiskfs/kernel_patches/patches/ext3-xattr-no-update-ctime-2.6-sles10.patch diff --git a/ldiskfs/kernel_patches/patches/ext3-xattr-no-update-ctime-2.6-sles10.patch b/ldiskfs/kernel_patches/patches/ext3-xattr-no-update-ctime-2.6-sles10.patch new file mode 100644 index 0000000..8993522 --- /dev/null +++ b/ldiskfs/kernel_patches/patches/ext3-xattr-no-update-ctime-2.6-sles10.patch @@ -0,0 +1,33 @@ +Index: linux-2.6.18-53.1.14/include/linux/ext3_fs.h +=================================================================== +--- linux-2.6.18-53.1.14.orig/include/linux/ext3_fs.h ++++ linux-2.6.18-53.1.14/include/linux/ext3_fs.h +@@ -909,6 +909,13 @@ struct mmp_struct { + #define EXT3_MMP_MIN_CHECK_INTERVAL 5 + + /* ++ * Indicates that ctime should not be updated in ext3_xattr_set_handle() ++ */ ++#ifndef XATTR_NO_CTIME ++#define XATTR_NO_CTIME 0x80 ++#endif ++ ++/* + * Function prototypes + */ + +Index: linux-2.6.18-53.1.14/fs/ext3/xattr.c +=================================================================== +--- linux-2.6.18-53.1.14.orig/fs/ext3/xattr.c ++++ linux-2.6.18-53.1.14/fs/ext3/xattr.c +@@ -1031,7 +1031,8 @@ ext3_xattr_set_handle(handle_t *handle, + } + if (!error) { + ext3_xattr_update_super_block(handle, inode->i_sb); +- inode->i_ctime = ext3_current_time(inode); ++ if (!(flags & XATTR_NO_CTIME)) ++ inode->i_ctime = ext3_current_time(inode); + error = ext3_mark_iloc_dirty(handle, inode, &is.iloc); + if (!value) + EXT3_I(inode)->i_state &= ~EXT3_STATE_NO_EXPAND; + diff --git a/ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5.series b/ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5.series index 073b416..ba84f2f 100644 --- a/ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5.series +++ b/ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5.series @@ -25,3 +25,4 @@ ext3-orphans-delay.patch ext3-lookup-dotdot-2.6.9.patch ext3-max-dir-size.patch ext3-block-bitmap-validation-2.6-rhel5.patch +ext3-xattr-no-update-ctime-2.6-sles10.patch diff --git a/ldiskfs/kernel_patches/series/ldiskfs-2.6-sles10.series b/ldiskfs/kernel_patches/series/ldiskfs-2.6-sles10.series index acb9aa4..c1b45d8 100644 --- a/ldiskfs/kernel_patches/series/ldiskfs-2.6-sles10.series +++ b/ldiskfs/kernel_patches/series/ldiskfs-2.6-sles10.series @@ -30,3 +30,4 @@ ext3-statfs-2.6-sles10.patch ext3-lookup-dotdot-2.6.9.patch ext3-max-dir-size.patch ext3-block-bitmap-validation-2.6-sles10.patch +ext3-xattr-no-update-ctime-2.6-sles10.patch diff --git a/ldiskfs/kernel_patches/series/ldiskfs-2.6.22-vanilla.series b/ldiskfs/kernel_patches/series/ldiskfs-2.6.22-vanilla.series index e3bec68..22d17b5 100644 --- a/ldiskfs/kernel_patches/series/ldiskfs-2.6.22-vanilla.series +++ b/ldiskfs/kernel_patches/series/ldiskfs-2.6.22-vanilla.series @@ -25,3 +25,4 @@ ext3-lookup-dotdot-2.6.9.patch ext3-orphans-delay.patch ext3-export-journal-api.patch ext3-max-dir-size.patch +ext3-xattr-no-update-ctime-2.6-sles10.patch -- 1.8.3.1