[LTP] [PATCH v3 ltp 3/4] fs/ext4: bug fix - incorect argument ctime vs mtime

Yixin Zhang yixin.zhang@intel.com
Thu Jul 26 11:22:18 CEST 2018


nsec_ctime2 should call ext4_file_time with argument ctime, not mtime.

Signed-off-by: Yixin Zhang <yixin.zhang@intel.com>
---
 .../ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh b/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh
index fdf64fde8..e44b9f62e 100755
--- a/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh
+++ b/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh
@@ -139,7 +139,7 @@ ext4_test_nsec_timestamps()
 
 	nsec_atime2=`ext4_file_time mnt_point/tmp_file atime nsec`
 	nsec_mtime2=`ext4_file_time mnt_point/tmp_file mtime nsec`
-	nsec_ctime2=`ext4_file_time mnt_point/tmp_file mtime nsec`
+	nsec_ctime2=`ext4_file_time mnt_point/tmp_file ctime nsec`
 
 	if [ $nsec_atime -ne $nsec_atime2 -o $nsec_ctime -ne $nsec_ctime2 -o \
 	     $nsec_mtime -ne $nsec_mtime2 ]; then
-- 
2.14.1



More information about the ltp mailing list