]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: add kunit test for decoding extended timestamps
authorIurii Zaikin <yzaikin@google.com>
Thu, 17 Oct 2019 22:12:33 +0000 (15:12 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 23 Oct 2019 16:28:23 +0000 (10:28 -0600)
commit1cbeab1b242d16fdb22dc3dab6a7d6afe746ae6d
tree34cc768521b4563af29f2b9312ea7095487cfac6
parentd460623c5fa126dc51bb2571dd7714ca75b0116c
ext4: add kunit test for decoding extended timestamps

KUnit tests for decoding extended 64 bit timestamps that verify the
seconds part of [a/c/m] timestamps in ext4 inode structs are decoded
correctly.

Test data is derived from the table in the Inode Timestamps section of
Documentation/filesystems/ext4/inodes.rst.

KUnit tests run during boot and output the results to the debug log
in TAP format (http://testanything.org/). Only useful for kernel devs
running KUnit test harness and are not for inclusion into a production
build.

Signed-off-by: Iurii Zaikin <yzaikin@google.com>
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Tested-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
fs/ext4/Kconfig
fs/ext4/Makefile
fs/ext4/inode-test.c [new file with mode: 0644]