Skip to contentSkip to conversation

Add new testcases for ext4 new features - V3

PATCH In review Miao Xie 5 participants 20 messages Oct 26, 2009 – Dec 9, 2009 2 messages not in the archive

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

PATCH 1/1 Add new testcases for ext4 new features - V3

This is the patch of testcases for the ext4 new features test. It contains multi-block alloc/delayed alloc test, inode version test, journal checksumming test, nanosec timestamps test, online defrag test, persist prealloc test, subdirectory limit test and uninit groups test of ext4.

In this test suite, there is two FAIL in the subdirectory limit test. It is because we cann't create more than 32000 subdirectory when block size is small, such as 1024, and the name of every subdirectory is very long, such as every name is 255 bytes. I think it is the bug of the ext4.

Note: Your MUST run configure in the directory
testcases/kernel/fs/ext4-new-features
to config the tool of ffsb, and specify a partition to be used for test before compiling the tool. The data on the specified partition would be DESTROYED.

---
  README                                             |   18 +
  runtest/fs_ext4                                    |    1 +
  testcases/kernel/fs/Makefile                       |    4 +-
  testcases/kernel/fs/ext4-new-features/Makefile     |   38 +
  testcases/kernel/fs/ext4-new-features/README       |  147 +
  testcases/kernel/fs/ext4-new-features/configure    |   23 +
  .../ext4-delalloc-mballoc/Makefile                 |   25 +
  .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |  167 +
  .../fs/ext4-new-features/ext4-ffsb-config/Makefile |   25 +
  .../ext4-ffsb-config/ffsb-config0                  |   23 +
  .../ext4-ffsb-config/ffsb-config1                  |   23 +
  .../ext4-ffsb-config/ffsb-config2                  |   23 +
  .../ext4-ffsb-config/ffsb-config3                  |   29 +
  .../ext4-ffsb-config/ffsb-config4                  |   29 +
  .../ext4-ffsb-config/ffsb-config5                  |   29 +
  .../ext4-ffsb-config/ffsb-config6                  |   29 +
  .../ext4-ffsb-config/ffsb-config7                  |   29 +
  .../ext4-new-features/ext4-inode-version/Makefile  |   25 +
  .../ext4-inode-version/ext4_get_inode_version.sh   |   41 +
  .../ext4-inode-version/ext4_inode_version_test.sh  |  205 +
  .../ext4-inode-version/ext4_test_inode_version.c   |  219 +
  .../ext4-journal-checksum/Makefile                 |   25 +
  .../ext4-journal-checksum/ext4_journal_checksum.sh |  148 +
  .../ext4-nsec-timestamps/Makefile                  |   25 +
  .../ext4-nsec-timestamps/ext4_file_time.c          |   70 +
  .../ext4_nsec_timestamps_test.sh                   |  196 +
  .../ext4-new-features/ext4-online-defrag/Makefile  |   25 +
  .../ext4-online-defrag/e4defrag.c                  | 2171 ++++++
  .../ext4-online-defrag/ext4_online_defrag_test.sh  |  192 +
  .../ext4-persist-prealloc/Makefile                 |   25 +
  .../ext4_persist_prealloc_test.sh                  |  113 +
  .../ext4-new-features/ext4-subdir-limit/Makefile   |   25 +
  .../ext4-subdir-limit/create_long_dirs.c           |  156 +
  .../ext4-subdir-limit/create_short_dirs.c          |  158 +
  .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |  167 +
  .../ext4-new-features/ext4-uninit-groups/Makefile  |   25 +
  .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |  161 +
  .../kernel/fs/ext4-new-features/ext4_funcs.sh      |   47 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS      |    7 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/COPYING      |  340 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/INSTALL      |  182 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/LICENSE      |  347 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/Makefile.am  |   46 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/Makefile.in  |  628 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/README       |  413 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/aclocal.m4   |  880 +++
  .../fs/ext4-new-features/ffsb-6.0-rc2/cirlist.c    |  107 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/cirlist.h    |   41 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/config.guess | 1450 ++++
  .../fs/ext4-new-features/ffsb-6.0-rc2/config.h.in  |  130 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/config.sub   | 1545 +++++
  .../fs/ext4-new-features/ffsb-6.0-rc2/configure    | 7000 ++++++++++++++++++++
  .../fs/ext4-new-features/ffsb-6.0-rc2/configure.in |   49 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/depcomp      |  472 ++
  .../ffsb-6.0-rc2/examples/profile_everything       |  119 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb.h       |  105 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fc.c    |  112 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.c    |  634 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.h    |  184 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.c    |  178 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.h    |  102 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.c |  241 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.h |  109 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.c    |  369 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.h    |  206 +
  .../ext4-new-features/ffsb-6.0-rc2/ffsb_thread.c   |  171 +
  .../ext4-new-features/ffsb-6.0-rc2/ffsb_thread.h   |  108 +
  .../kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.c  |  278 +
  .../kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.h  |   41 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/filelist.c   |  503 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/filelist.h   |  145 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/fileops.c    |  547 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/fileops.h    |   51 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/install-sh   |  250 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/list.c       |   55 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/list.h       |   53 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/main.c       |  258 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/metaops.c    |  112 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/metaops.h    |   28 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/missing      |  336 +
  .../ext4-new-features/ffsb-6.0-rc2/mkinstalldirs   |   40 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/parser.c     | 1034 +++
  .../fs/ext4-new-features/ffsb-6.0-rc2/parser.h     |  151 +
  .../ffsb-6.0-rc2/public-description                |    4 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/rand.c       |  188 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/rand.h       |   60 +
  .../kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.c | 1040 +++
  .../kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.h |  316 +
  .../ffsb-6.0-rc2/registration-description          |    7 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/rwlock.c     |  109 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/rwlock.h     |   51 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in   |    1 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/util.c       |  351 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/util.h       |   94 +
  .../kernel/fs/ext4-new-features/run_ext4_test.sh   |  179 +
  95 files changed, 27437 insertions(+), 1 deletions(-)

create mode 100644 runtest/fs_ext4
create mode 100644 testcases/kernel/fs/ext4-new-features/Makefile
create mode 100644 testcases/kernel/fs/ext4-new-features/README
create mode 100755 testcases/kernel/fs/ext4-new-features/configure
create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/Makefile
create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config0 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config1 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config2 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config3 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config4 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config5 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config6 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config7 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-inode-version/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_test_inode_version.c create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/Makefile create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_file_time.c create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-online-defrag/Makefile create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-online-defrag/e4defrag.c create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/Makefile
create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_long_dirs.c create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_short_dirs.c create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh create mode 100755 testcases/kernel/fs/ext4-new-features/ext4_funcs.sh
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/COPYING
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/INSTALL
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/LICENSE
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.am
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.in
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/README
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/aclocal.m4
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.guess
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.h.in
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.sub
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure.in
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/depcomp
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/examples/profile_everything create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fc.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/install-sh
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/main.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/missing
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/mkinstalldirs
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/public-description create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/registration-description create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.h
create mode 100755 testcases/kernel/fs/ext4-new-features/run_ext4_test.sh

README +18 -0
index cec6e36..e98827c 100644
@@ -405,3 +405,21 @@ end
  1) Add as many framework as they get added/modifed in the kernel
  ---------------------------------
 
+---------------------------------
+Enabling Kernel Configuration to test ext4 new features
+---------------------------------
+CONFIG_EXT4_FS=y
+CONFIG_EXT4DEV_COMPAT=y
+CONFIG_EXT4_FS_XATTR=y
+CONFIG_EXT4_FS_POSIX_ACL=y
+CONFIG_EXT4_FS_SECURITY=y
+
+Beside that, the following packages are necessary.
+  e2fsprogs
+  e2fsprogs-devel
+  e2fsprogs-libs
+And the version of packages must be 1.41.4 or above.
+
+For more information to build/install/run these tests, look through:
+ltp/testcases/kernel/fs/ext4-new-features/README
+---------------------------------
runtest/fs_ext4 new file +1 -0
new file mode 100644
index 0000000..c65ebab
@@ -0,0 +1 @@
+ext4_new_feature_test	run_ext4_test.sh
testcases/kernel/fs/Makefile +3 -1
index 12e2f48..4a5c862 100644
@@ -25,6 +25,8 @@ top_srcdir		?= ../../..
  include $(top_srcdir)/include/mk/env_pre.mk
 
  # XXX (garrcoop): Need to add autoconf checks for JFS.
-FILTER_OUT_DIRS		:= dmapi
+# ext4-new-features: This test need to be configured be user.
+#                    Please read $LTPROOT/README to see the detail information
+FILTER_OUT_DIRS		:= dmapi ext4-new-features
 
  include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/kernel/fs/ext4-new-features/Makefile new file +38 -0
new file mode 100644
index 0000000..0e09dd6
@@ -0,0 +1,38 @@
+#
+#    kernel/fs/ext4-new-features testcases Makefile.
+#
+#    Copyright (C) 2009, Cisco Systems Inc.
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../..
+
+include $(top_srcdir)/include/mk/env_pre.mk
+
+INSTALL_TARGETS		:= *.sh
+INSTALL_TARGETS		:= ext4-test-config
+INSTALL_TARGETS		:= ffsb-6.0-rc2/ffsb
+
+FILTER_OUT_DIRS		:= ffsb-6.0-rc2
+
+trunk-all: ffsb-6.0-rc2
+
+trunk-clean:: | ffsb-clean
+
+ffsb-clean:: ffsb-6.0-rc2
+	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
+
+include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/kernel/fs/ext4-new-features/README new file +147 -0

147 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/configure new file +23 -0
new file mode 100755
index 0000000..13f43f9
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+echo "Run the ffsb's configure"
+cd ./ffsb-6.0-rc2
+./configure
+cd ..
+
+EXT4_DEV=
+RESULT=
+
+echo "Ext4 new features test configure"
+echo "Please specify a partition to create ext4 filesystem:"
+read EXT4_DEV
+
+echo "The partition is: $EXT4_DEV, Are you sure(Y/N)?"
+read RESULT
+if [ "$RESULT" == "Y" ] || [ "$RESULT" == "y" ]; then
+	echo "EXT4_DEV=$EXT4_DEV" > ./ext4-test-config
+elif [ "$RESULT" == "N" ]; then
+	echo "Give up specifing a partition!"
+else
+	echo "Your input is wrong($RESULT)."
+fi
testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/Makefile new file +25 -0
new file mode 100644
index 0000000..1980349
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, Fujitsu LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+MAKE_TARGETS		:=
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh new file +167 -0

167 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/Makefile new file +25 -0
new file mode 100644
index 0000000..19dca28
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, FUJITSU LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+MAKE_TARGETS		:=
+INSTALL_TARGETS		?= ffsb-config[0-7]
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config0 new file +23 -0
new file mode 100644
index 0000000..caf1928
@@ -0,0 +1,23 @@
+directio=0
+time=500
+
+[filesystem0]
+location=mnt_point
+num_files=100000
+num_dirs=40
+max_filesize=40960
+min_filesize=4096
+[end0]
+
+
+[threadgroup0]
+num_threads=10
+read_weight=3
+write_weight=1
+append_weight=1
+write_random=1
+write_size=4096
+write_blocksize=4096
+read_size=4096
+read_blocksize=4096
+[end0]
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config1 new file +23 -0
new file mode 100644
index 0000000..9fe820d
@@ -0,0 +1,23 @@
+directio=1
+time=400
+
+[filesystem0]
+location=mnt_point
+num_files=100000
+num_dirs=40
+max_filesize=4096
+min_filesize=4096
+[end0]
+
+
+[threadgroup0]
+num_threads=10
+read_weight=3
+write_weight=1
+append_weight=1
+write_random=1
+write_size=4096
+write_blocksize=4096
+read_size=4096
+read_blocksize=4096
+[end0]
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config2 new file +23 -0
new file mode 100644
index 0000000..993fe14
@@ -0,0 +1,23 @@
+directio=0
+time=500
+
+[filesystem0]
+location=mnt_point
+num_files=100000
+num_dirs=40
+max_filesize=20480
+min_filesize=4096
+[end0]
+
+
+[threadgroup0]
+num_threads=10
+read_weight=3
+write_weight=1
+append_weight=1
+write_random=1
+write_size=4096
+write_blocksize=4096
+read_size=4096
+read_blocksize=4096
+[end0]
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config3 new file +29 -0
new file mode 100644
index 0000000..d95149d
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=0.20
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config4 new file +29 -0
new file mode 100644
index 0000000..f1a432e
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=0.40
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config5 new file +29 -0
new file mode 100644
index 0000000..758eded
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=0.60
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config6 new file +29 -0
new file mode 100644
index 0000000..6592177
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=0.80
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config7 new file +29 -0
new file mode 100644
index 0000000..0f6df51
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=1.00
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-inode-version/Makefile new file +25 -0
new file mode 100644
index 0000000..6b8aabb
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, FUJITSU LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+LDLIBS += -lm
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh new file +41 -0

41 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh new file +205 -0

205 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_test_inode_version.c new file +219 -0

219 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/Makefile new file +25 -0
new file mode 100644
index 0000000..1980349
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, Fujitsu LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+MAKE_TARGETS		:=
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh new file +148 -0

148 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/Makefile new file +25 -0
new file mode 100644
index 0000000..6b8aabb
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, FUJITSU LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+LDLIBS += -lm
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_file_time.c new file +70 -0

70 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh new file +196 -0

196 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-online-defrag/Makefile new file +25 -0
new file mode 100644
index 0000000..6b8aabb
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, FUJITSU LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+LDLIBS += -lm
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/e4defrag.c new file +2171 -0

1,351 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh new file +192 -0

192 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/Makefile new file +25 -0
new file mode 100644
index 0000000..1980349

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh new file +113 -0

113 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/Makefile new file +25 -0
new file mode 100644
index 0000000..6b8aabb

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_long_dirs.c new file +156 -0

156 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_short_dirs.c new file +158 -0

158 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh new file +167 -0

167 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/Makefile new file +25 -0
new file mode 100644
index 0000000..1980349

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh new file +161 -0

161 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4_funcs.sh new file +47 -0

47 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS new file +7 -0
new file mode 100644
index 0000000..85d037d

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/COPYING new file +340 -0

340 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/INSTALL new file +182 -0

182 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/LICENSE new file +347 -0

347 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.am new file +46 -0

46 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.in new file +628 -0

628 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/README new file +413 -0

413 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/aclocal.m4 new file +880 -0

880 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.c new file +107 -0

107 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.h new file +41 -0

41 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.guess new file +1450 -0

1,450 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.h.in new file +130 -0

130 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.sub new file +1545 -0

1,545 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure new file +7000 -0

7,000 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure.in new file +49 -0

49 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/depcomp new file +472 -0

472 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/examples/profile_everything new file +119 -0

119 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb.h new file +105 -0

105 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fc.c new file +112 -0

112 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.c new file +634 -0

634 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.h new file +184 -0

184 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.c new file +178 -0

178 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.h new file +102 -0

102 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.c new file +241 -0

241 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.h new file +109 -0

109 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.c new file +369 -0

369 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.h new file +206 -0

206 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.c new file +171 -0

171 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.h new file +108 -0

108 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.c new file +278 -0

278 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.h new file +41 -0

41 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.c new file +503 -0

503 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.h new file +145 -0

145 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.c new file +547 -0

547 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.h new file +51 -0

51 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/install-sh new file +250 -0

250 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.c new file +55 -0

55 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.h new file +53 -0

53 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/main.c new file +258 -0

258 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.c new file +112 -0

112 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.h new file +28 -0
new file mode 100644
index 0000000..04cbe9f

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/missing new file +336 -0

336 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/mkinstalldirs new file +40 -0
new file mode 100644
index 0000000..08bec60

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.c new file +1034 -0

1,034 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.h new file +151 -0

151 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/public-description new file +4 -0
new file mode 100644
index 0000000..f770dd0

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.c new file +188 -0

188 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.h new file +60 -0

60 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.c new file +1040 -0

1,040 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.h new file +316 -0

316 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/registration-description new file +1 -0
new file mode 100644
index 0000000..fd181e2

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

mind. It differs from other filesystem benchmarks in that the user may supply a profile to create custom workloads, while most other filesystem benchmarks use a fixed set of workloads. +
+It is currently known to support Linux, AIX, and Solaris, although almost all development and testing has occurred on Linux. We intend to add support for HP-UX, IRIX, and possibly others in the near future.
+
+FFSB is currently at version 5.0, and has been an internal tool at IBM for about four years. I has already been used to conduct a study of Linux Kernel 2.6 IO-schedulers, and a great deal of future filesystem performance work is planned with FFSB as the primary tool.
+
+In version 5.0, it supports six different basic operations, support for multiple groups of threads with different operation mixtures, support for operation across multiple filesystems, and support for filesystem aging prior to benchmarking.
\ No newline at end of file

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.c new file +109 -0

109 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.h new file +51 -0

51 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in new file +1 -0
new file mode 100644
index 0000000..9788f70

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.c new file +351 -0

351 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.h new file +94 -0

94 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/run_ext4_test.sh new file +179 -0

179 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 13 lines
1.6.4.3


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Part of the diff is not shown here. View the raw message.

author
#1 lore raw

Hi, Mr.Subrata

The patch that you made to fix the problem of ffsb was not merged into this patch. So if you want to run this testcases, you must applied your patch before compiling the testcases.

Regards.
Miao

Quoted 19 lines · Miao Xie

This is the patch of testcases for the ext4 new features test. It contains multi-block alloc/delayed alloc test, inode version test, journal checksumming test, nanosec timestamps test, online defrag test, persist prealloc test, subdirectory limit test and uninit groups test of ext4.

In this test suite, there is two FAIL in the subdirectory limit test. It is because we cann't create more than 32000 subdirectory when block size is small, such as 1024, and the name of every subdirectory is very long, such as every name is 255 bytes. I think it is the bug of the ext4.

Note: Your MUST run configure in the directory
testcases/kernel/fs/ext4-new-features
to config the tool of ffsb, and specify a partition to be used for
test
before compiling the tool. The data on the specified partition
would be
DESTROYED.

Quoted 1 line

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#2 lore raw
Quoted 5 lines · Miao Xie

Hi, Mr.Subrata

The patch that you made to fix the problem of ffsb was not merged into this patch. So if you want to run this testcases, you must applied your patch before compiling the testcases.

Sure. I will do that. Thanks for resending the patch so soon. I will make sure this is available in this monthś release.

Regards--
Subrata

Quoted 29 lines

Regards.
Miao

Quoted 19 lines · Miao Xie

This is the patch of testcases for the ext4 new features test. It contains multi-block alloc/delayed alloc test, inode version test, journal checksumming test, nanosec timestamps test, online defrag test, persist prealloc test, subdirectory limit test and uninit groups test of ext4.

In this test suite, there is two FAIL in the subdirectory limit test. It is because we cann't create more than 32000 subdirectory when block size is small, such as 1024, and the name of every subdirectory is very long, such as every name is 255 bytes. I think it is the bug of the ext4.

Note: Your MUST run configure in the directory
testcases/kernel/fs/ext4-new-features
to config the tool of ffsb, and specify a partition to be used for
test
before compiling the tool. The data on the specified partition
would be
DESTROYED.

Quoted 1 line
Quoted 10 lines

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#3 lore raw
In reply to Miao Xie
Quoted 30 lines · Miao Xie

Hi, Mr.Subrata

The patch that you made to fix the problem of ffsb was not merged into this patch. So if you want to run this testcases, you must applied your patch before compiling the testcases.

Regards.
Miao

Quoted 20 lines · Miao Xie

This is the patch of testcases for the ext4 new features test. It contains multi-block alloc/delayed alloc test, inode version test, journal checksumming test, nanosec timestamps test, online defrag test, persist prealloc test, subdirectory limit test and uninit groups test of ext4.

In this test suite, there is two FAIL in the subdirectory limit test. It is because we cann't create more than 32000 subdirectory when block size is small, such as 1024, and the name of every subdirectory is very long, such as every name is 255 bytes. I think it is the bug of the ext4.

Note: Your MUST run configure in the directory
testcases/kernel/fs/ext4-new-features
to config the tool of ffsb, and specify a partition to be used for
test
before compiling the tool. The data on the specified partition
would be
DESTROYED.

Thank you so much on making this effort to include the EXT4 test cases in LTP. We were actually long searching for such tests which will test only the specific features of EXT4. And now we have it. I have included your tests in LTP which is readily available now in LTP repository.

I will soon send out a mail to some EXT4 experts regarding the sub-directory tests failure and get some opinion of them.

Regards--
Subrata

Quoted 4 lines
Quoted 10 lines

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

Hi Aneesh/Andreas,

Quoted 11 lines · Miao Xie

This is the patch of testcases for the ext4 new features test. It contains multi-block alloc/delayed alloc test, inode version test, journal checksumming test, nanosec timestamps test, online defrag test, persist prealloc test, subdirectory limit test and uninit groups test of ext4.

In this test suite, there is two FAIL in the subdirectory limit test. It is because we cann't create more than 32000 subdirectory when block size is small, such as 1024, and the name of every subdirectory is very long, such as every name is 255 bytes. I think it is the bug of the ext4.

Quoted 7 lines

Note: Your MUST run configure in the directory
testcases/kernel/fs/ext4-new-features
to config the tool of ffsb, and specify a partition to be used for test before compiling the tool. The data on the specified partition would be DESTROYED.

We had recently added EXT4 testcases to LTP. As the author of these tests mentioned, we saw 2 such failures in subdirectory limit test:

Ext4 subdir limit test
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir name
len: short name Parent dir: mnt_point, Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available). CLEARED.
/dev/VG1_EXT4/LV1_EXT4: clean, 10/8847360 files, 2297019/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    1  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: long name                         Parent dir: mnt_point, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    2  TFAIL  :  failed to create directories - 19524
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name                        Parent dir: mnt_point/sub, Block
size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available). CLEARED.
/dev/VG1_EXT4/LV1_EXT4: clean, 12/8847360 files, 2297037/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    3  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: long name                         Parent dir: mnt_point/sub, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    4  TFAIL  :  failed to create directories - 19483
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name                        Parent dir: mnt_point, Block
size: 2048

Is this a known issue for EXT4 ?

We also uncovered that the tests gives a decent 50% lines and over 61% function coverage for EXT4 code. Please find the individual coverage under EXT4 attached.

Following the various system information on which we ran the test:
1) uname -a
Linux 2.6.31 #1 SMP Tue Oct 20 22:57:16 IST 2009 i686 i686 i386 GNU/Linux

2) grep -i ext4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

3) mkfs.ext4 -V
mke2fs 1.41.9 (22-Aug-2009)
Using EXT2FS Library version 1.41.9
e2fsprogs-1.41.9
e2fsprogs-libs-1.41.9

4) LTP used:
Unreleased CVS repository. See the URL below to download:
http://ltp.sourceforge.net/documentation/how-to/ltp.php#_3.1,

You can also also directly review the attached patch(which added this
test cases):
26_10_2009-(Miao-Xie<[email protected]>)-Add_new_testcases_for_ext4_new_features_V3.patch.regenerated,

5) I used a single 680GB LVM partition to test this.

Kindly let us know your thoughts on this failures.

Regards--
Subrata

Quoted 182 lines
---
  README                                             |   18 +
  runtest/fs_ext4                                    |    1 +
  testcases/kernel/fs/Makefile                       |    4 +-
  testcases/kernel/fs/ext4-new-features/Makefile     |   38 +
  testcases/kernel/fs/ext4-new-features/README       |  147 +
  testcases/kernel/fs/ext4-new-features/configure    |   23 +
  .../ext4-delalloc-mballoc/Makefile                 |   25 +
  .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |  167 +
  .../fs/ext4-new-features/ext4-ffsb-config/Makefile |   25 +
  .../ext4-ffsb-config/ffsb-config0                  |   23 +
  .../ext4-ffsb-config/ffsb-config1                  |   23 +
  .../ext4-ffsb-config/ffsb-config2                  |   23 +
  .../ext4-ffsb-config/ffsb-config3                  |   29 +
  .../ext4-ffsb-config/ffsb-config4                  |   29 +
  .../ext4-ffsb-config/ffsb-config5                  |   29 +
  .../ext4-ffsb-config/ffsb-config6                  |   29 +
  .../ext4-ffsb-config/ffsb-config7                  |   29 +
  .../ext4-new-features/ext4-inode-version/Makefile  |   25 +
  .../ext4-inode-version/ext4_get_inode_version.sh   |   41 +
  .../ext4-inode-version/ext4_inode_version_test.sh  |  205 +
  .../ext4-inode-version/ext4_test_inode_version.c   |  219 +
  .../ext4-journal-checksum/Makefile                 |   25 +
  .../ext4-journal-checksum/ext4_journal_checksum.sh |  148 +
  .../ext4-nsec-timestamps/Makefile                  |   25 +
  .../ext4-nsec-timestamps/ext4_file_time.c          |   70 +
  .../ext4_nsec_timestamps_test.sh                   |  196 +
  .../ext4-new-features/ext4-online-defrag/Makefile  |   25 +
  .../ext4-online-defrag/e4defrag.c                  | 2171 ++++++
  .../ext4-online-defrag/ext4_online_defrag_test.sh  |  192 +
  .../ext4-persist-prealloc/Makefile                 |   25 +
  .../ext4_persist_prealloc_test.sh                  |  113 +
  .../ext4-new-features/ext4-subdir-limit/Makefile   |   25 +
  .../ext4-subdir-limit/create_long_dirs.c           |  156 +
  .../ext4-subdir-limit/create_short_dirs.c          |  158 +
  .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |  167 +
  .../ext4-new-features/ext4-uninit-groups/Makefile  |   25 +
  .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |  161 +
  .../kernel/fs/ext4-new-features/ext4_funcs.sh      |   47 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS      |    7 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/COPYING      |  340 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/INSTALL      |  182 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/LICENSE      |  347 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/Makefile.am  |   46 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/Makefile.in  |  628 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/README       |  413 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/aclocal.m4   |  880 +++
  .../fs/ext4-new-features/ffsb-6.0-rc2/cirlist.c    |  107 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/cirlist.h    |   41 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/config.guess | 1450 ++++
  .../fs/ext4-new-features/ffsb-6.0-rc2/config.h.in  |  130 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/config.sub   | 1545 +++++
  .../fs/ext4-new-features/ffsb-6.0-rc2/configure    | 7000 ++++++++++++++++++++
  .../fs/ext4-new-features/ffsb-6.0-rc2/configure.in |   49 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/depcomp      |  472 ++
  .../ffsb-6.0-rc2/examples/profile_everything       |  119 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb.h       |  105 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fc.c    |  112 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.c    |  634 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.h    |  184 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.c    |  178 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.h    |  102 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.c |  241 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.h |  109 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.c    |  369 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.h    |  206 +
  .../ext4-new-features/ffsb-6.0-rc2/ffsb_thread.c   |  171 +
  .../ext4-new-features/ffsb-6.0-rc2/ffsb_thread.h   |  108 +
  .../kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.c  |  278 +
  .../kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.h  |   41 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/filelist.c   |  503 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/filelist.h   |  145 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/fileops.c    |  547 ++
  .../fs/ext4-new-features/ffsb-6.0-rc2/fileops.h    |   51 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/install-sh   |  250 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/list.c       |   55 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/list.h       |   53 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/main.c       |  258 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/metaops.c    |  112 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/metaops.h    |   28 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/missing      |  336 +
  .../ext4-new-features/ffsb-6.0-rc2/mkinstalldirs   |   40 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/parser.c     | 1034 +++
  .../fs/ext4-new-features/ffsb-6.0-rc2/parser.h     |  151 +
  .../ffsb-6.0-rc2/public-description                |    4 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/rand.c       |  188 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/rand.h       |   60 +
  .../kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.c | 1040 +++
  .../kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.h |  316 +
  .../ffsb-6.0-rc2/registration-description          |    7 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/rwlock.c     |  109 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/rwlock.h     |   51 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in   |    1 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/util.c       |  351 +
  .../fs/ext4-new-features/ffsb-6.0-rc2/util.h       |   94 +
  .../kernel/fs/ext4-new-features/run_ext4_test.sh   |  179 +
  95 files changed, 27437 insertions(+), 1 deletions(-)

create mode 100644 runtest/fs_ext4
create mode 100644 testcases/kernel/fs/ext4-new-features/Makefile
create mode 100644 testcases/kernel/fs/ext4-new-features/README
create mode 100755 testcases/kernel/fs/ext4-new-features/configure
create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/Makefile
create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config0 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config1 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config2 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config3 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config4 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config5 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config6 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config7 create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-inode-version/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_test_inode_version.c create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/Makefile create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_file_time.c create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-online-defrag/Makefile create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-online-defrag/e4defrag.c create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/Makefile
create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_long_dirs.c create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_short_dirs.c create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh create mode 100644 testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/Makefile create mode 100755 testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh create mode 100755 testcases/kernel/fs/ext4-new-features/ext4_funcs.sh
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/COPYING
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/INSTALL
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/LICENSE
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.am
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.in
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/README
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/aclocal.m4
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.guess
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.h.in
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.sub
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure.in
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/depcomp
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/examples/profile_everything create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fc.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/install-sh
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/main.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/missing
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/mkinstalldirs
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/public-description create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.c
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.h
create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.c

Quoted 8 lines

create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.h create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/registration-description create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.c create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.h create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.c create mode 100644 testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.h create mode 100755 testcases/kernel/fs/ext4-new-features/run_ext4_test.sh

README +18 -0
diff -uprN ltp-intermediate-20091026.orig/README ltp-intermediate-20091026/README
@@ -405,3 +405,21 @@ end
 1) Add as many framework as they get added/modifed in the kernel
 ---------------------------------
 
+---------------------------------
+Enabling Kernel Configuration to test ext4 new features
+---------------------------------
+CONFIG_EXT4_FS=y
+CONFIG_EXT4DEV_COMPAT=y
+CONFIG_EXT4_FS_XATTR=y
+CONFIG_EXT4_FS_POSIX_ACL=y
+CONFIG_EXT4_FS_SECURITY=y
+
+Beside that, the following packages are necessary.
+  e2fsprogs
+  e2fsprogs-devel
+  e2fsprogs-libs
+And the version of packages must be 1.41.4 or above.
+
+For more information to build/install/run these tests, look through:
+ltp/testcases/kernel/fs/ext4-new-features/README
+---------------------------------
README.orig +407 -0

407 lines not on this page · raw message

runtest/fs_ext4 +1 -0
diff -uprN ltp-intermediate-20091026.orig/runtest/fs_ext4 ltp-intermediate-20091026/runtest/fs_ext4
@@ -0,0 +1 @@
+ext4_new_feature_test	run_ext4_test.sh
testcases/kernel/fs/ext4-new-features/configure +23 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/configure ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/configure
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+echo "Run the ffsb's configure"
+cd ./ffsb-6.0-rc2
+./configure
+cd ..
+
+EXT4_DEV=
+RESULT=
+
+echo "Ext4 new features test configure"
+echo "Please specify a partition to create ext4 filesystem:"
+read EXT4_DEV
+
+echo "The partition is: $EXT4_DEV, Are you sure(Y/N)?"
+read RESULT
+if [ "$RESULT" == "Y" ] || [ "$RESULT" == "y" ]; then
+	echo "EXT4_DEV=$EXT4_DEV" > ./ext4-test-config
+elif [ "$RESULT" == "N" ]; then
+	echo "Give up specifing a partition!"
+else
+	echo "Your input is wrong($RESULT)."
+fi
testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +167 -0

167 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/Makefile
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, Fujitsu LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+MAKE_TARGETS		:=
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config0 +23 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config0 ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config0
@@ -0,0 +1,23 @@
+directio=0
+time=500
+
+[filesystem0]
+location=mnt_point
+num_files=100000
+num_dirs=40
+max_filesize=40960
+min_filesize=4096
+[end0]
+
+
+[threadgroup0]
+num_threads=10
+read_weight=3
+write_weight=1
+append_weight=1
+write_random=1
+write_size=4096
+write_blocksize=4096
+read_size=4096
+read_blocksize=4096
+[end0]
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config1 +23 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config1 ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config1
@@ -0,0 +1,23 @@
+directio=1
+time=400
+
+[filesystem0]
+location=mnt_point
+num_files=100000
+num_dirs=40
+max_filesize=4096
+min_filesize=4096
+[end0]
+
+
+[threadgroup0]
+num_threads=10
+read_weight=3
+write_weight=1
+append_weight=1
+write_random=1
+write_size=4096
+write_blocksize=4096
+read_size=4096
+read_blocksize=4096
+[end0]
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config2 +23 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config2 ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config2
@@ -0,0 +1,23 @@
+directio=0
+time=500
+
+[filesystem0]
+location=mnt_point
+num_files=100000
+num_dirs=40
+max_filesize=20480
+min_filesize=4096
+[end0]
+
+
+[threadgroup0]
+num_threads=10
+read_weight=3
+write_weight=1
+append_weight=1
+write_random=1
+write_size=4096
+write_blocksize=4096
+read_size=4096
+read_blocksize=4096
+[end0]
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config3 +29 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config3 ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config3
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=0.20
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config4 +29 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config4 ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config4
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=0.40
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config5 +29 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config5 ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config5
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=0.60
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config6 +29 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config6 ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config6
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=0.80
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config7 +29 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config7 ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config7
@@ -0,0 +1,29 @@
+directio=0
+time=0
+
+[filesystem0]
+	location=mnt_point/
+	num_files=1
+	num_dirs=1
+	max_filesize=409600
+	min_filesize=40960
+	agefs=1
+	[threadgroup0]
+		num_threads=10
+		write_size=409600
+		write_blocksize=40960
+		create_weight=10
+		append_weight=10
+		delete_weight=1
+	[end0]
+		desired_util=1.00
+[end0]
+
+[threadgroup0]
+	num_threads=32
+	read_weight=1
+
+	read_size=4096
+	read_blocksize=4096
+[end0]
+
testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/Makefile
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, FUJITSU LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+MAKE_TARGETS		:=
+INSTALL_TARGETS		?= ffsb-config[0-7]
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +47 -0

47 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +41 -0

41 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +205 -0

205 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_test_inode_version.c +219 -0

219 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-inode-version/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-inode-version/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-inode-version/Makefile
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, FUJITSU LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+LDLIBS += -lm
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +148 -0

148 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/Makefile
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, Fujitsu LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+MAKE_TARGETS		:=
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_file_time.c +70 -0

70 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh +196 -0

196 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/Makefile
@@ -0,0 +1,25 @@
+#    Copyright (C) 2009, FUJITSU LIMITED
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+top_srcdir              ?= ../../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+LDLIBS += -lm
+INSTALL_TARGETS		?= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/e4defrag.c +2171 -0

1,116 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +192 -0

192 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-online-defrag/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/Makefile

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh +113 -0

113 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/Makefile

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_long_dirs.c +156 -0

156 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_short_dirs.c +158 -0

158 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +167 -0

167 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/Makefile

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +161 -0

161 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/Makefile +25 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/Makefile

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/aclocal.m4 +880 -0

880 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS +7 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.c +107 -0

107 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.h +41 -0

41 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.guess +1450 -0

1,450 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.h.in +130 -0

130 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.sub +1545 -0

1,545 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure +7000 -0

7,000 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure.in +49 -0

49 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/COPYING +340 -0

340 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/depcomp +472 -0

472 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/examples/profile_everything +119 -0

119 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fc.c +112 -0

112 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.c +634 -0

634 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.h +184 -0

184 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb.h +105 -0

105 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.c +178 -0

178 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.h +102 -0

102 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.c +241 -0

241 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.h +109 -0

109 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.c +369 -0

369 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.h +206 -0

206 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.c +171 -0

171 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.h +108 -0

108 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.c +278 -0

278 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.h +41 -0

41 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.c +503 -0

503 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.h +145 -0

145 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.c +547 -0

547 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.h +51 -0

51 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/INSTALL +182 -0

182 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/install-sh +250 -0

250 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/LICENSE +347 -0

347 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.c +55 -0

55 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.h +53 -0

53 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/main.c +258 -0

258 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.am +46 -0

46 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.in +628 -0

628 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.c +112 -0

112 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.h +28 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.h ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.h

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/missing +336 -0

336 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/mkinstalldirs +40 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/mkinstalldirs ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/mkinstalldirs

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.c +1033 -0

1,033 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.h +151 -0

151 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/public-description +4 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/public-description ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/public-description

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.c +188 -0

188 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.h +60 -0

60 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.c +1040 -0

1,040 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.h +316 -0

316 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/README +413 -0

413 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/registration-description +7 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/registration-description ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/registration-description

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.c +109 -0

109 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.h +51 -0

51 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in +1 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.c +351 -0

351 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.h +94 -0

94 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/Makefile +38 -0
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/ext4-new-features/Makefile ltp-intermediate-20091026/testcases/kernel/fs/ext4-new-features/Makefile

Lines of this file are not shown. View the raw message.

testcases/kernel/fs/ext4-new-features/README +147 -0

147 lines not on this page · raw message

testcases/kernel/fs/ext4-new-features/run_ext4_test.sh +179 -0

179 lines not on this page · raw message

testcases/kernel/fs/Makefile +3 -1
diff -uprN ltp-intermediate-20091026.orig/testcases/kernel/fs/Makefile ltp-intermediate-20091026/testcases/kernel/fs/Makefile

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

_______________________________________________
Ltp-list mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Part of the diff is not shown here. View the raw message.

#6 lore raw
Quoted 12 lines · Subrata Modak

We had recently added EXT4 testcases to LTP. As the author of these tests mentioned, we saw 2 such failures in subdirectory limit test:

Ext4 subdir limit test
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir name
len: short name Parent dir: mnt_point, Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available). CLEARED.

You don't need to set the test_fs flag for modern ext4.

Quoted 30 lines

/dev/VG1_EXT4/LV1_EXT4: clean, 10/8847360 files, 2297019/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    1  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: long name                         Parent dir: mnt_point, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    2  TFAIL  :  failed to create directories - 19524
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name                        Parent dir: mnt_point/sub, Block
size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available). CLEARED.
/dev/VG1_EXT4/LV1_EXT4: clean, 12/8847360 files, 2297037/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    3  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: long name                         Parent dir: mnt_point/sub, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    4  TFAIL  :  failed to create directories - 19483
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name                        Parent dir: mnt_point, Block
size: 2048
Quoted 1 line

Is this a known issue for EXT4 ?

Creating many long filenames (255 bytes) in a 1kB block filesystem is a known issue that is not expected to be fixed (at least I'm not aware of any work being done in this area). A vast majority of filesystems today are formatted with 4kB blocks (due to disk size) and the overhead of managing 1kB block filesystems makes these only marginally used, and it is also very rare to have applications with such large filenames.

Quoted 3 lines

We also uncovered that the tests gives a decent 50% lines and over 61% function coverage for EXT4 code. Please find the individual coverage under EXT4 attached.

Interesting to see this.

Quoted 22 lines

Following the various system information on which we ran the test:
1) uname -a
Linux 2.6.31 #1 SMP Tue Oct 20 22:57:16 IST 2009 i686 i686 i386 GNU/Linux

2) grep -i ext4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

3) mkfs.ext4 -V
mke2fs 1.41.9 (22-Aug-2009)
Using EXT2FS Library version 1.41.9
e2fsprogs-1.41.9
e2fsprogs-libs-1.41.9

4) LTP used:
Unreleased CVS repository. See the URL below to download:
http://ltp.sourceforge.net/documentation/how-to/ltp.php#_3.1,

Quoted 7 lines

You can also also directly review the attached patch(which added this
test cases):
26_10_2009-(Miao-Xie<[email protected]>)-Add_new_testcases_for_ext4_new_features_V3.patch.regenerated,

5) I used a single 680GB LVM partition to test this.

Kindly let us know your thoughts on this failures.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

A message that is not in the archive (sent off-list or not yet received): C3A9583B-F6C5-4BCC-8D7E-876FA4D62D57-xsfywfwIY+M@public.gmane.org

#8 lore raw

Hi Andreas,

Thanks for taking a look and clarifying the issues.

Quoted 16 lines · Andreas Dilger
Quoted 14 lines · Subrata Modak

We had recently added EXT4 testcases to LTP. As the author of these tests mentioned, we saw 2 such failures in subdirectory limit test:

Ext4 subdir limit test
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: short name Parent dir: mnt_point, Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag /dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

Quoted 1 line

You don't need to set the test_fs flag for modern ext4.

Miao,

Can we change this ?

Quoted 40 lines
Quoted 34 lines

/dev/VG1_EXT4/LV1_EXT4: clean, 10/8847360 files, 2297019/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    1  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
name
len: long name                         Parent dir: mnt_point, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    2  TFAIL  :  failed to create directories - 19524
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  

name
len: short name Parent dir: mnt_point/sub,
Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.
/dev/VG1_EXT4/LV1_EXT4: clean, 12/8847360 files, 2297037/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    3  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
name
len: long name                         Parent dir: mnt_point/sub,  
Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    4  TFAIL  :  failed to create directories - 19483
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
Quoted 5 lines

name
len: short name Parent dir: mnt_point, Block
size: 2048

Is this a known issue for EXT4 ?

Quoted 7 lines

Creating many long filenames (255 bytes) in a 1kB block filesystem is a known issue that is not expected to be fixed (at least I'm not aware of any work being done in this area). A vast majority of filesystems today are formatted with 4kB blocks (due to disk size) and the overhead of
managing 1kB block filesystems makes these only marginally used, and it is also very rare to have applications with such large filenames.

Ok.

Quoted 6 lines
Quoted 4 lines

We also uncovered that the tests gives a decent 50% lines and over 61% function coverage for EXT4 code. Please find the individual coverage under EXT4 attached.

Interesting to see this.

And the good news continues. I did a complete run of the tests this time. Unlike last time where it was running for more than 48 hours owing to huge FS size(680GB), i ran it on a small 135GB partition this time. It took around 40 hours completing the entire run which also include the online-defrag tests. Guess, the new Code Coverage results are:

Lines: 56.1%,
Functions: 66.4%,

However, it is also accompanied by the following failures in the online-defrag part:
========================================================================================
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 3, block size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2694.12 s, 26.5 MB/s

ext4-online-defrag    3  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 1, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
...
ext4-online-defrag 0 TINFO : defrag type: 2, defrag obj: 3, block size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2623.31 s, 27.2 MB/s

ext4-online-defrag    6  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"

ext4-online-defrag    7  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 0.737014 s, 56.9 MB/s
write: Success
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 25798712 10581072 13907140 44% /

udev                   1028576       152   1028424   1% /dev
/dev/sda2              4127108    126572   3790888   4% /boot
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST2
                      10321208    154100   9642820   2% /MY_EXT4
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST1
                      10321208    154232   9642688   2% /MY_EXT3
/dev/mapper/VG1_EXT4-LV1_EXT4
                     139299998 139259037     40961 100% /root/subrata/ltp/ltp-full-20090930/testcases/bin/mnt_point
File is not regular file
 "/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag    8  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2544.39 s, 28.0 MB/s File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag 9 TFAIL : e4defrag returned failure
...
ext4-online-defrag 0 TINFO : defrag type: 3, defrag obj: 2, block size: 4096
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 0.306366 s, 137 MB/s
write: Success
write: Success
write: Success
write: Success
write: Success
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 25798712 11441524 13046688 47% /

udev                   1028576       152   1028424   1% /dev
/dev/sda2              4127108    126572   3790888   4% /boot
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST2
                      10321208    154100   9642820   2% /MY_EXT4
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST1
                      10321208    154232   9642688   2% /MY_EXT3
/dev/mapper/VG1_EXT4-LV1_EXT4
                     139336680 139295720     40960 100% /root/subrata/ltp/ltp-full-20090930/testcases/bin/mnt_point
File is not regular file
 "/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag   17  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 4096

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
17392985+0 records in
17392985+0 records out
71241666560 bytes (71 GB) copied, 1019.79 s, 69.9 MB/s File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag 18 TFAIL : e4defrag returned failure
incrementing stop
========================================================================================

Miao,

Did you see these failure on your machine ?
Some more points are:

1. Can you please run these tests against the backdrop of the Makefile changes in LTP to see all the build/install/run are executing fine,
2. Can you also please put all the utilities version info at the beginning of the test rather than printing them again and again(like mke2fs 1.41.9 (22-Aug-2009),tune2fs 1.41.9 (22-Aug-2009),dumpe2fs 1.41.9 (22-Aug-2009),dumpe2fs 1.41.9 (22-Aug-2009))

Regards--
Subrata

Quoted 30 lines
Quoted 30 lines

Following the various system information on which we ran the test:
1) uname -a
Linux 2.6.31 #1 SMP Tue Oct 20 22:57:16 IST 2009 i686 i686 i386 GNU/Linux

2) grep -i ext4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

3) mkfs.ext4 -V
mke2fs 1.41.9 (22-Aug-2009)
Using EXT2FS Library version 1.41.9
e2fsprogs-1.41.9
e2fsprogs-libs-1.41.9

4) LTP used:
Unreleased CVS repository. See the URL below to download:
http://ltp.sourceforge.net/documentation/how-to/ltp.php#_3.1,

You can also also directly review the attached patch(which added this test cases):
26_10_2009-(Miao-Xie<[email protected]>)- Add_new_testcases_for_ext4_new_features_V3.patch.regenerated,

5) I used a single 680GB LVM partition to test this.

Quoted 8 lines
Quoted 1 line

Kindly let us know your thoughts on this failures.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

_______________________________________________
Ltp-list mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#9 lore raw

Miao,

Quoted 200 lines · Subrata Modak

Hi Andreas,

Thanks for taking a look and clarifying the issues.

Quoted 16 lines · Andreas Dilger
Quoted 14 lines · Subrata Modak

We had recently added EXT4 testcases to LTP. As the author of these tests mentioned, we saw 2 such failures in subdirectory limit test:

Ext4 subdir limit test
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: short name Parent dir: mnt_point, Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag /dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

Quoted 1 line

You don't need to set the test_fs flag for modern ext4.

Miao,

Can we change this ?

Quoted 40 lines
Quoted 34 lines

/dev/VG1_EXT4/LV1_EXT4: clean, 10/8847360 files, 2297019/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    1  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
name
len: long name                         Parent dir: mnt_point, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    2  TFAIL  :  failed to create directories - 19524
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  

name
len: short name Parent dir: mnt_point/sub,
Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.
/dev/VG1_EXT4/LV1_EXT4: clean, 12/8847360 files, 2297037/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    3  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
name
len: long name                         Parent dir: mnt_point/sub,  
Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    4  TFAIL  :  failed to create directories - 19483
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
Quoted 5 lines

name
len: short name Parent dir: mnt_point, Block
size: 2048

Is this a known issue for EXT4 ?

Quoted 7 lines

Creating many long filenames (255 bytes) in a 1kB block filesystem is a known issue that is not expected to be fixed (at least I'm not aware of any work being done in this area). A vast majority of filesystems today are formatted with 4kB blocks (due to disk size) and the overhead of
managing 1kB block filesystems makes these only marginally used, and it is also very rare to have applications with such large filenames.

Ok.

Quoted 6 lines
Quoted 4 lines

We also uncovered that the tests gives a decent 50% lines and over 61% function coverage for EXT4 code. Please find the individual coverage under EXT4 attached.

Interesting to see this.

And the good news continues. I did a complete run of the tests this time. Unlike last time where it was running for more than 48 hours owing to huge FS size(680GB), i ran it on a small 135GB partition this time. It took around 40 hours completing the entire run which also include the online-defrag tests. Guess, the new Code Coverage results are:

Lines: 56.1%,
Functions: 66.4%,

However, it is also accompanied by the following failures in the online-defrag part:
========================================================================================
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 3, block size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2694.12 s, 26.5 MB/s

ext4-online-defrag    3  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 1, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
...
ext4-online-defrag 0 TINFO : defrag type: 2, defrag obj: 3, block size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2623.31 s, 27.2 MB/s

ext4-online-defrag    6  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"

ext4-online-defrag    7  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 0.737014 s, 56.9 MB/s
write: Success
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 25798712 10581072 13907140 44% /

udev                   1028576       152   1028424   1% /dev
/dev/sda2              4127108    126572   3790888   4% /boot
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST2
                      10321208    154100   9642820   2% /MY_EXT4
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST1
                      10321208    154232   9642688   2% /MY_EXT3
/dev/mapper/VG1_EXT4-LV1_EXT4
                     139299998 139259037     40961 100% /root/subrata/ltp/ltp-full-20090930/testcases/bin/mnt_point
File is not regular file
 "/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag    8  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2544.39 s, 28.0 MB/s File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag 9 TFAIL : e4defrag returned failure
...
ext4-online-defrag 0 TINFO : defrag type: 3, defrag obj: 2, block size: 4096
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 0.306366 s, 137 MB/s
write: Success
write: Success
write: Success
write: Success
write: Success
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 25798712 11441524 13046688 47% /

udev                   1028576       152   1028424   1% /dev
/dev/sda2              4127108    126572   3790888   4% /boot
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST2
                      10321208    154100   9642820   2% /MY_EXT4
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST1
                      10321208    154232   9642688   2% /MY_EXT3
/dev/mapper/VG1_EXT4-LV1_EXT4
                     139336680 139295720     40960 100% /root/subrata/ltp/ltp-full-20090930/testcases/bin/mnt_point
File is not regular file
 "/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag   17  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 4096

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
17392985+0 records in
17392985+0 records out
71241666560 bytes (71 GB) copied, 1019.79 s, 69.9 MB/s File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag 18 TFAIL : e4defrag returned failure
incrementing stop
========================================================================================

Quoted 3 lines

Miao,

Did you see these failure on your machine ?

Your take on this ?

Quoted 5 lines

Some more points are:

1. Can you please run these tests against the backdrop of the Makefile changes in LTP to see all the build/install/run are executing fine,

Could you please verify this before this release. Let me know a patch if you find any discrepancy :-)

Quoted 5 lines

2. Can you also please put all the utilities version info at the

        beginning of the test rather than printing them again and
        again(like mke2fs 1.41.9 (22-Aug-2009),tune2fs 1.41.9
        (22-Aug-2009),dumpe2fs 1.41.9 (22-Aug-2009),dumpe2fs 1.41.9
        (22-Aug-2009))

This can go in the next month release as well, if you do not have time to fix now. Else, i have a bug mouth to eat this as well ;-)

Regards--
Subrata

Quoted 42 lines

Regards--
Subrata

Quoted 30 lines
Quoted 30 lines

Following the various system information on which we ran the test:
1) uname -a
Linux 2.6.31 #1 SMP Tue Oct 20 22:57:16 IST 2009 i686 i686 i386 GNU/Linux

2) grep -i ext4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

3) mkfs.ext4 -V
mke2fs 1.41.9 (22-Aug-2009)
Using EXT2FS Library version 1.41.9
e2fsprogs-1.41.9
e2fsprogs-libs-1.41.9

4) LTP used:
Unreleased CVS repository. See the URL below to download:
http://ltp.sourceforge.net/documentation/how-to/ltp.php#_3.1,

You can also also directly review the attached patch(which added this test cases):
26_10_2009-(Miao-Xie<[email protected]>)- Add_new_testcases_for_ext4_new_features_V3.patch.regenerated,

5) I used a single 680GB LVM partition to test this.

Quoted 8 lines
Quoted 1 line

Kindly let us know your thoughts on this failures.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

Quoted 7 lines

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#10 lore raw

Miao,

Now that a new release has gone, can you please look in to whether the things execute as you expected ?

Regards--
Subrata

Quoted 281 lines · Subrata Modak

Miao,

Quoted 200 lines · Subrata Modak

Hi Andreas,

Thanks for taking a look and clarifying the issues.

Quoted 16 lines · Andreas Dilger
Quoted 14 lines · Subrata Modak

We had recently added EXT4 testcases to LTP. As the author of these tests mentioned, we saw 2 such failures in subdirectory limit test:

Ext4 subdir limit test
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: short name Parent dir: mnt_point, Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag /dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

Quoted 1 line

You don't need to set the test_fs flag for modern ext4.

Miao,

Can we change this ?

Quoted 40 lines
Quoted 34 lines

/dev/VG1_EXT4/LV1_EXT4: clean, 10/8847360 files, 2297019/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    1  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
name
len: long name                         Parent dir: mnt_point, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    2  TFAIL  :  failed to create directories - 19524
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  

name
len: short name Parent dir: mnt_point/sub,
Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.
/dev/VG1_EXT4/LV1_EXT4: clean, 12/8847360 files, 2297037/141557760 blocks
dumpe2fs 1.41.9 (22-Aug-2009)

ext4-subdir-limit    3  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
name
len: long name                         Parent dir: mnt_point/sub,  
Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit    4  TFAIL  :  failed to create directories - 19483
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir  
Quoted 5 lines

name
len: short name Parent dir: mnt_point, Block
size: 2048

Is this a known issue for EXT4 ?

Quoted 7 lines

Creating many long filenames (255 bytes) in a 1kB block filesystem is a known issue that is not expected to be fixed (at least I'm not aware of any work being done in this area). A vast majority of filesystems today are formatted with 4kB blocks (due to disk size) and the overhead of
managing 1kB block filesystems makes these only marginally used, and it is also very rare to have applications with such large filenames.

Ok.

Quoted 6 lines
Quoted 4 lines

We also uncovered that the tests gives a decent 50% lines and over 61% function coverage for EXT4 code. Please find the individual coverage under EXT4 attached.

Interesting to see this.

And the good news continues. I did a complete run of the tests this time. Unlike last time where it was running for more than 48 hours owing to huge FS size(680GB), i ran it on a small 135GB partition this time. It took around 40 hours completing the entire run which also include the online-defrag tests. Guess, the new Code Coverage results are:

Lines: 56.1%,
Functions: 66.4%,

However, it is also accompanied by the following failures in the online-defrag part:
========================================================================================
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 3, block size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2694.12 s, 26.5 MB/s

ext4-online-defrag    3  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 1, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
...
ext4-online-defrag 0 TINFO : defrag type: 2, defrag obj: 3, block size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2623.31 s, 27.2 MB/s

ext4-online-defrag    6  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"

ext4-online-defrag    7  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 0.737014 s, 56.9 MB/s
write: Success
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 25798712 10581072 13907140 44% /

udev                   1028576       152   1028424   1% /dev
/dev/sda2              4127108    126572   3790888   4% /boot
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST2
                      10321208    154100   9642820   2% /MY_EXT4
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST1
                      10321208    154232   9642688   2% /MY_EXT3
/dev/mapper/VG1_EXT4-LV1_EXT4
                     139299998 139259037     40961 100% /root/subrata/ltp/ltp-full-20090930/testcases/bin/mnt_point
File is not regular file
 "/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag    8  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 1024

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
69630819+0 records in
69630819+0 records out
71301958656 bytes (71 GB) copied, 2544.39 s, 28.0 MB/s File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag 9 TFAIL : e4defrag returned failure
...
ext4-online-defrag 0 TINFO : defrag type: 3, defrag obj: 2, block size: 4096
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 0.306366 s, 137 MB/s
write: Success
write: Success
write: Success
write: Success
write: Success
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 25798712 11441524 13046688 47% /

udev                   1028576       152   1028424   1% /dev
/dev/sda2              4127108    126572   3790888   4% /boot
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST2
                      10321208    154100   9642820   2% /MY_EXT4
/dev/mapper/VG_EXT3_TO_EXT4_MIGRATION_TEST1-LV_EXT3_TO_EXT4_MIGRATION_TEST1
                      10321208    154232   9642688   2% /MY_EXT3
/dev/mapper/VG1_EXT4-LV1_EXT4
                     139336680 139295720     40960 100% /root/subrata/ltp/ltp-full-20090930/testcases/bin/mnt_point
File is not regular file
 "/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag   17  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 4096

mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag
dumpe2fs 1.41.9 (22-Aug-2009)
dumpe2fs 1.41.9 (22-Aug-2009)
17392985+0 records in
17392985+0 records out
71241666560 bytes (71 GB) copied, 1019.79 s, 69.9 MB/s File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag 18 TFAIL : e4defrag returned failure
incrementing stop
========================================================================================

Quoted 3 lines

Miao,

Did you see these failure on your machine ?

Your take on this ?

Quoted 5 lines

Some more points are:

1. Can you please run these tests against the backdrop of the Makefile changes in LTP to see all the build/install/run are executing fine,

Could you please verify this before this release. Let me know a patch if you find any discrepancy :-)

Quoted 5 lines

2. Can you also please put all the utilities version info at the

        beginning of the test rather than printing them again and
        again(like mke2fs 1.41.9 (22-Aug-2009),tune2fs 1.41.9
        (22-Aug-2009),dumpe2fs 1.41.9 (22-Aug-2009),dumpe2fs 1.41.9
        (22-Aug-2009))

This can go in the next month release as well, if you do not have time to fix now. Else, i have a bug mouth to eat this as well ;-)

Regards--
Subrata

Quoted 42 lines

Regards--
Subrata

Quoted 30 lines
Quoted 30 lines

Following the various system information on which we ran the test:
1) uname -a
Linux 2.6.31 #1 SMP Tue Oct 20 22:57:16 IST 2009 i686 i686 i386 GNU/Linux

2) grep -i ext4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

3) mkfs.ext4 -V
mke2fs 1.41.9 (22-Aug-2009)
Using EXT2FS Library version 1.41.9
e2fsprogs-1.41.9
e2fsprogs-libs-1.41.9

4) LTP used:
Unreleased CVS repository. See the URL below to download:
http://ltp.sourceforge.net/documentation/how-to/ltp.php#_3.1,

You can also also directly review the attached patch(which added this test cases):
26_10_2009-(Miao-Xie<[email protected]>)- Add_new_testcases_for_ext4_new_features_V3.patch.regenerated,

5) I used a single 680GB LVM partition to test this.

Quoted 8 lines
Quoted 1 line

Kindly let us know your thoughts on this failures.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

Quoted 7 lines

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list

Quoted 10 lines

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#11 lore raw

Hi, Subrata

Quoted 5 lines · Subrata Modak
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

You don't need to set the test_fs flag for modern ext4.

Can we change this ?

The attached patch can fix this problem.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

However, it is also accompanied by the following failures in the online-defrag part:
========================================================================================
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 3, block size: 1024

[snip]

Quoted 1 line
Quoted 1 line
Quoted 1 line

ext4-online-defrag 3 TFAIL : e4defrag returned failure

[snip]

Quoted 1 line
Quoted 1 line
Quoted 1 line

ext4-online-defrag 0 TINFO : defrag type: 2, defrag obj: 3, block size: 1024

[snip]

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ext4-online-defrag    6  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 1024

[snip]

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ext4-online-defrag    7  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 1024

[snip]

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"

ext4-online-defrag    8  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 1024

[snip]

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

ext4-online-defrag 9 TFAIL : e4defrag returned failure
...
ext4-online-defrag 0 TINFO : defrag type: 3, defrag obj: 2, block size: 4096

[snip]

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"

ext4-online-defrag   17  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 4096

[snip]

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag 18 TFAIL : e4defrag returned failure
incrementing stop
========================================================================================
Did you see these failure on your machine ?

Your take on this ?

I didn't find these failure on my box.
The attached patch opens the verbose mode of e4defrag to get more information later, it is useful to find the problem of online defrag.
So, Could you test it again and send the output info to me?

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Some more points are:

1. Can you please run these tests against the backdrop of the Makefile changes in LTP to see all the build/install/run are executing fine,

Could you please verify this before this release. Let me know a patch if you find any discrepancy :-)

The attached patch can fix this problem.

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

2. Can you also please put all the utilities version info at the

        beginning of the test rather than printing them again and
        again(like mke2fs 1.41.9 (22-Aug-2009),tune2fs 1.41.9
        (22-Aug-2009),dumpe2fs 1.41.9 (22-Aug-2009),dumpe2fs 1.41.9
        (22-Aug-2009))

This can go in the next month release as well, if you do not have time to fix now. Else, i have a bug mouth to eat this as well ;-)

The attached patch can fix this problem.

This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away

---

testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +1 -2
index 63c614c..be7b074 100755
@@ -85,8 +85,7 @@ ext4_test_remount()
  # $4: auto_da_alloc
  ext4_test_delalloc_mballoc()
  {
-	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-		isAuto_da_alloc: $4"
+	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, isAuto_da_alloc: $4"
 
  	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +1 -1
index 8f5c907..0e7a8b6 100755
@@ -24,7 +24,7 @@
  #$2: 1  - return inode version by return value
  #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep 'Version' | awk '{
  print $NF }'`
 
  # The inode_version's format: '0x0000000a' or '0x00000000:0000000a',
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +1 -1
index 4798e99..4a58b36 100755
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()
  	fi
 
  	# inode version is 32 bits: 0x00000000
-	version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+	version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep 'Version'`
  	version=`echo $version | awk '{ print $NF }'`
  	version=`echo $version | sed 's/^0x//'`
  	len=${#version}
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +3 -3
index 310eaa0..eb72b5d 100755
@@ -59,9 +59,9 @@ ext4_test_journal_checksum()
  		async_commit="Used"
  	fi
 
-	tst_resm TINFO "journal mode: $1, commit interval: $2, \
-		journal_checksum: $checksum, \
-		journal_async_commit: $async_commit, barrier: $5"
+	tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+		"journal_checksum: $checksum, " \
+		"journal_async_commit: $async_commit, barrier: $5"
 
  	mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +9 -6
index 3747783..c901758 100755
@@ -126,13 +126,15 @@ ext4_test_online_defrag()
 
  	tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"
 
-	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV &> /dev/null
+	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV &>> \
+		$LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -O extents $EXT4_DEV &> /dev/null
+	tune2fs -O extents $EXT4_DEV &>> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
 
  	mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -140,9 +142,9 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	age_filesystem $2 $1 >> $LTPROOT/output/ext4_online_defrag_result.txt
+	age_filesystem $2 $1 &>> $LTPROOT/output/ext4_online_defrag_result.txt
 
-	my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt
+	my_e4defrag $1 $2 &>> $LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "e4defrag returned failure"
  		umount mnt_point
@@ -155,13 +157,14 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV &> /dev/null
+	e2fsck -p $EXT4_DEV &>> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
  	fi
 
-	tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, Aging: $2, block size: $3)"
+	tst_resm TPASS "ext4 online defrag test pass"
  }
 
  # main
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +3 -3
index 1483191..97b11ab 100755
@@ -59,8 +59,8 @@ ext4_run_case()
  		dir_name_len="long name"
  	fi
 
-	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len \
-			Parent dir: $3, Block size: $4"
+	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len, " \
+			"Parent dir: $3, Block size: $4"
 
  	# only mkfs if block size has been changed,
  	# or previous case failed
@@ -127,7 +127,7 @@ ext4_run_case()
  	fi
 
  	# check dir_nlink is set
-	dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+	dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | grep -q dir_nlink
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "feature dir_nlink is not set"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +9 -5
index 88fbfa9..c3fe386 100755
@@ -40,8 +40,8 @@ LARGE=3
  # filesystem free size in bytes: blocks_size * free_blocks
  filesystem_free_size()
  {
-	bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2 }'`
-	blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2 }'`
+	bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk '{ print $2 }'`
+	blocks=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'| awk '{ print $2 }'`
 
  	echo $bsize * $blocks
  }
@@ -61,9 +61,9 @@ age_filesystem()
  		}
  	elif [ $1 -eq $LARGE ]; then
  		rm -rf mnt_point/*
-		bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size'`
+		bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size'`
  		bsize=`echo $bsize | awk '{ print $3 }'`
-		bcount=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'`
+		bcount=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'`
  		bcount=`echo $bcount | awk '{ print $3 }'`
  		dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount
  	else
@@ -80,6 +80,8 @@ age_filesystem()
  # $4: age filesystem: $EMPTY, $SMALL, $LARGE
  ext4_test_uninit_groups()
  {
+	echo "Test $TST_COUNT" >> $LTPROOT/output/ext4_uninit_groups_result.txt
+
  	mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()
  		return 1
  	fi
 
-	age_filesystem $4
+	age_filesystem $4 &>> $LTPROOT/output/ext4_uninit_groups_result.txt
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "age filesystem failed"
  		umount mnt_point
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 
  RET=0
 
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
  for ((i = 0; i < 2; i++))
  {
  	for ((j = 0; j < 2; j++))

--

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#12 lore raw

Hi Miao,

Quoted 10 lines · Miao Xie

Hi, Subrata

Quoted 5 lines · Subrata Modak
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

You don't need to set the test_fs flag for modern ext4.

Can we change this ?

The attached patch can fix this problem.

I had already checked in your earlier patch long back. So, you would please need to resend over the latest code.

Regards--
Subrata

Quoted 252 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

However, it is also accompanied by the following failures in the online-defrag part:
========================================================================================
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 3, block size: 1024

[snip]

Quoted 1 line
Quoted 1 line
Quoted 1 line

ext4-online-defrag 3 TFAIL : e4defrag returned failure

[snip]

Quoted 1 line
Quoted 1 line
Quoted 1 line

ext4-online-defrag 0 TINFO : defrag type: 2, defrag obj: 3, block size: 1024

[snip]

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ext4-online-defrag    6  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 1024

[snip]

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ext4-online-defrag    7  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 1024

[snip]

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"

ext4-online-defrag    8  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 1024

[snip]

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

ext4-online-defrag 9 TFAIL : e4defrag returned failure
...
ext4-online-defrag 0 TINFO : defrag type: 3, defrag obj: 2, block size: 4096

[snip]

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"

ext4-online-defrag   17  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 4096

[snip]

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

File is not regular file
"/dev/VG1_EXT4/LV1_EXT4"
ext4-online-defrag 18 TFAIL : e4defrag returned failure
incrementing stop
========================================================================================
Did you see these failure on your machine ?

Your take on this ?

I didn't find these failure on my box.
The attached patch opens the verbose mode of e4defrag to get more information later, it is useful to find the problem of online defrag.
So, Could you test it again and send the output info to me?

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Some more points are:

1. Can you please run these tests against the backdrop of the Makefile changes in LTP to see all the build/install/run are executing fine,

Could you please verify this before this release. Let me know a patch if you find any discrepancy :-)

The attached patch can fix this problem.

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

2. Can you also please put all the utilities version info at the

        beginning of the test rather than printing them again and
        again(like mke2fs 1.41.9 (22-Aug-2009),tune2fs 1.41.9
        (22-Aug-2009),dumpe2fs 1.41.9 (22-Aug-2009),dumpe2fs 1.41.9
        (22-Aug-2009))

This can go in the next month release as well, if you do not have time to fix now. Else, i have a bug mouth to eat this as well ;-)

The attached patch can fix this problem.

This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away

---

testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +1 -2
index 63c614c..be7b074 100755
@@ -85,8 +85,7 @@ ext4_test_remount()
  # $4: auto_da_alloc
  ext4_test_delalloc_mballoc()
  {
-	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-		isAuto_da_alloc: $4"
+	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, isAuto_da_alloc: $4"
 
  	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +1 -1
index 8f5c907..0e7a8b6 100755
@@ -24,7 +24,7 @@
  #$2: 1  - return inode version by return value
  #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep 'Version' | awk '{
  print $NF }'`
 
  # The inode_version's format: '0x0000000a' or '0x00000000:0000000a',
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +1 -1
index 4798e99..4a58b36 100755
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()
  	fi
 
  	# inode version is 32 bits: 0x00000000
-	version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+	version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep 'Version'`
  	version=`echo $version | awk '{ print $NF }'`
  	version=`echo $version | sed 's/^0x//'`
  	len=${#version}
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +3 -3
index 310eaa0..eb72b5d 100755
@@ -59,9 +59,9 @@ ext4_test_journal_checksum()
  		async_commit="Used"
  	fi
 
-	tst_resm TINFO "journal mode: $1, commit interval: $2, \
-		journal_checksum: $checksum, \
-		journal_async_commit: $async_commit, barrier: $5"
+	tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+		"journal_checksum: $checksum, " \
+		"journal_async_commit: $async_commit, barrier: $5"
 
  	mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +9 -6
index 3747783..c901758 100755
@@ -126,13 +126,15 @@ ext4_test_online_defrag()
 
  	tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"
 
-	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV &> /dev/null
+	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV &>> \
+		$LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -O extents $EXT4_DEV &> /dev/null
+	tune2fs -O extents $EXT4_DEV &>> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
 
  	mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -140,9 +142,9 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	age_filesystem $2 $1 >> $LTPROOT/output/ext4_online_defrag_result.txt
+	age_filesystem $2 $1 &>> $LTPROOT/output/ext4_online_defrag_result.txt
 
-	my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt
+	my_e4defrag $1 $2 &>> $LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "e4defrag returned failure"
  		umount mnt_point
@@ -155,13 +157,14 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV &> /dev/null
+	e2fsck -p $EXT4_DEV &>> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
  	fi
 
-	tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, Aging: $2, block size: $3)"
+	tst_resm TPASS "ext4 online defrag test pass"
  }
 
  # main
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +3 -3
index 1483191..97b11ab 100755
@@ -59,8 +59,8 @@ ext4_run_case()
  		dir_name_len="long name"
  	fi
 
-	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len \
-			Parent dir: $3, Block size: $4"
+	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len, " \
+			"Parent dir: $3, Block size: $4"
 
  	# only mkfs if block size has been changed,
  	# or previous case failed
@@ -127,7 +127,7 @@ ext4_run_case()
  	fi
 
  	# check dir_nlink is set
-	dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+	dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | grep -q dir_nlink
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "feature dir_nlink is not set"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +7 -5
index 88fbfa9..c3fe386 100755
@@ -40,8 +40,8 @@ LARGE=3
  # filesystem free size in bytes: blocks_size * free_blocks
  filesystem_free_size()
  {
-	bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2 }'`
-	blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2 }'`
+	bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk '{ print $2 }'`
+	blocks=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'| awk '{ print $2 }'`
 
  	echo $bsize * $blocks
  }
@@ -61,9 +61,9 @@ age_filesystem()
  		}
  	elif [ $1 -eq $LARGE ]; then
  		rm -rf mnt_point/*
-		bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size'`
+		bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size'`
  		bsize=`echo $bsize | awk '{ print $3 }'`
-		bcount=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'`
+		bcount=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'`
  		bcount=`echo $bcount | awk '{ print $3 }'`
  		dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount
  	else
@@ -80,6 +80,8 @@ age_filesystem()
  # $4: age filesystem: $EMPTY, $SMALL, $LARGE
  ext4_test_uninit_groups()
  {
+	echo "Test $TST_COUNT" >> $LTPROOT/output/ext4_uninit_groups_result.txt
+
  	mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()
  		return 1
  	fi
 
-	age_filesystem $4
+	age_filesystem $4 &>> $LTPROOT/output/ext4_uninit_groups_result.txt
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "age filesystem failed"
  		umount mnt_point

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh AGING=( $EMPTY $SMALL $LARGE )

Quoted 9 lines
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +2 -1
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 
  RET=0
 
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
  for ((i = 0; i < 2; i++))
  {
  	for ((j = 0; j < 2; j++))
--

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#13 lore raw

Hi, Subrata

Quoted 10 lines · Subrata Modak
Quoted 7 lines
Quoted 5 lines · Subrata Modak
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

You don't need to set the test_fs flag for modern ext4.

Can we change this ?

The attached patch can fix this problem.

I had already checked in your earlier patch long back. So, you would please need to resend over the latest code.

I'm sorry that I didn't bring the new patch(was sent on 2009-11-30) to your attention, so I resend that new patch now. I have tried to apply the patch to the latest code in the cvs repository and everything is ok.

Subrata, I didn't find these failure about online defrag on my box.
The attached patch opens the verbose mode of e4defrag to get more information later, it is useful to find the problem of online defrag. So, Could you test it again and send the output info to me?

The following is changelog.
=========================
This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

---
  testcases/kernel/fs/ext4-new-features/Makefile     |   20 ++++++++++----
  testcases/kernel/fs/ext4-new-features/README       |    7 +----
  .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |   15 ++++------
  .../ext4-inode-version/ext4_get_inode_version.sh   |    2 +-
  .../ext4-inode-version/ext4_inode_version_test.sh  |   10 +++----
  .../ext4-journal-checksum/ext4_journal_checksum.sh |   12 ++++----
  .../ext4_nsec_timestamps_test.sh                   |    8 ++---
  .../ext4-online-defrag/ext4_online_defrag_test.sh  |   28 ++++++++++++-------
  .../ext4_persist_prealloc_test.sh                  |    4 +-
  .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |   17 +++++++-----
  .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |   22 +++++++++------
  11 files changed, 78 insertions(+), 67 deletions(-)
testcases/kernel/fs/ext4-new-features/Makefile +14 -6
index 0e09dd6..208b8a6 100644
@@ -22,17 +22,25 @@ top_srcdir              ?= ../../../..
 
  include $(top_srcdir)/include/mk/env_pre.mk
 
-INSTALL_TARGETS		:= *.sh
-INSTALL_TARGETS		:= ext4-test-config
-INSTALL_TARGETS		:= ffsb-6.0-rc2/ffsb
+INSTALL_TARGETS		+= ffsb
+INSTALL_TARGETS		+= run_ext4_test.sh
+INSTALL_TARGETS		+= ext4_funcs.sh
+INSTALL_TARGETS		+= ext4-test-config
 
-FILTER_OUT_DIRS		:= ffsb-6.0-rc2
+FFSBDIR			:= ffsb-6.0-rc2
+FILTER_OUT_DIRS		:= $(FFSBDIR)
+FFSB			:= $(FFSBDIR)/ffsb
 
-trunk-all: ffsb-6.0-rc2
+$(FFSB): $(FFSBDIR)
+	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
+	cp $(FFSBDIR)/ffsb ffsb
+
+trunk-all: $(FFSB)
 
  trunk-clean:: | ffsb-clean
 
-ffsb-clean:: ffsb-6.0-rc2
+ffsb-clean:: $(FFSBDIR)
  	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
+	rm -rf ffsb
 
  include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/kernel/fs/ext4-new-features/README +1 -6
index 0ea0460..bda16e5 100644
@@ -9,7 +9,7 @@ with increasing disk capacities and state-of-the-art feature requirements. More
  extensive information of ext4 can be found at the ext4 wiki site at the URL:
  http://ext4.wiki.kernel.org
 
-There are total 119 testcases for ext4 new features test that have been added.
+There are total 117 testcases for ext4 new features test that have been added.
  Now, these testcases can test multi-block alloc/delayed alloc, inode version
  field on disk, journal checksumming, nanosec timestamps, online defrag, persist
  prealloc, subdirectory limit and uninit groups of ext4.
@@ -111,11 +111,6 @@ Directory containing the shell script which is used to test subdirectory limit
  of ext4. According to the kernel documentation, we create more than 32000
  subdirectorys on the ext4 filesystem.
 
-But, when then block size is small, such as 1024, and the name of every
-subdirectory is very long, such as every name is 255 bytes, we can just create
-less than 20000 subdirectory. In this test suite, there is two FAIL cases by
-reason of it.
-
  ext4-uninit-groups
  ------------------
  Directory containing the shell script which is used to test uninitialized groups
testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +6 -9
index ec2f389..be7b074 100755
@@ -37,14 +37,12 @@ read_config $1
  # Case 17: mount ext4 partition to ext3
  ext4_test_remount()
  {
-	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
  	mount -t ext4 -o delalloc,auto_da_alloc $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
@@ -71,7 +69,7 @@ ext4_test_remount()
  	fi
  	umount mnt_point
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
@@ -87,16 +85,15 @@ ext4_test_remount()
  # $4: auto_da_alloc
  ext4_test_delalloc_mballoc()
  {
-	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-		isAuto_da_alloc: $4"
+	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, isAuto_da_alloc: $4"
 
-	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o $1,$4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -117,7 +114,7 @@ ext4_test_delalloc_mballoc()
  		return 1
  	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +1 -1
index 8f5c907..0e7a8b6 100755
@@ -24,7 +24,7 @@
  #$2: 1  - return inode version by return value
  #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep 'Version' | awk '{
  print $NF }'`
 
  # The inode_version's format: '0x0000000a' or '0x00000000:0000000a',
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +4 -6
index f27248b..4a58b36 100755
@@ -41,13 +41,13 @@ ext4_test_128_inode_version()
  {
  	tst_resm TINFO "Test inode version is 32 bits with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o i_version $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()
  	fi
 
  	# inode version is 32 bits: 0x00000000
-	version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+	version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep 'Version'`
  	version=`echo $version | awk '{ print $NF }'`
  	version=`echo $version | sed 's/^0x//'`
  	len=${#version}
@@ -91,14 +91,12 @@ ext4_test_128_inode_version()
  # $1: file operation
  test_inode_version()
  {
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV > /dev/null
-
  	mount -t ext4 -o i_version $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +6 -6
index 550afa1..eb72b5d 100755
@@ -59,17 +59,17 @@ ext4_test_journal_checksum()
  		async_commit="Used"
  	fi
 
-	tst_resm TINFO "journal mode: $1, commit interval: $2, \
-		journal_checksum: $checksum, \
-		journal_async_commit: $async_commit, barrier: $5"
+	tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+		"journal_checksum: $checksum, " \
+		"journal_async_commit: $async_commit, barrier: $5"
 
-	mkfs.ext4 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o data=$1,commit=$2,$3,$4,barrier=$5 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -90,7 +90,7 @@ ext4_test_journal_checksum()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh +3 -5
index ced6576..cc00507 100755
@@ -41,13 +41,13 @@ ext4_test_sec_timestamps()
  {
  	tst_resm TINFO "Test timestamps with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -82,14 +82,12 @@ ext4_test_nsec_timestamps()
  {
  	tst_resm TINFO "Test timestamps with 256 inode size"
 
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
  	mount -t ext4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +18 -10
index 84613c8..7b4dda3 100755
@@ -94,23 +94,23 @@ my_e4defrag()
  {
  	if [ $1 -eq $FILE ]; then
  		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
  			return $?
  		# EMPTY or LARGE
  		else
-			./e4defrag mnt_point/tmp_file
+			./e4defrag -v mnt_point/tmp_file
  			return $?
  		fi
  	elif [ $1 -eq $DIR ]; then
  		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
  			return $?
  		else
-			./e4defrag mnt_point/tmp_dir
+			./e4defrag -v mnt_point/tmp_dir
  			return $?
  		fi
  	else
-		./e4defrag $EXT4_DEV
+		./e4defrag -v $EXT4_DEV
  		return $?
  	fi
  }
@@ -121,15 +121,20 @@ my_e4defrag()
  # $3: block size
  ext4_test_online_defrag()
  {
+	echo Test $TST_COUNT start >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
+
  	tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"
 
-	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV > /dev/null
+	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV >> \
+		$LTPROOT/output/ext4_online_defrag_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
  	mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -137,7 +142,7 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	age_filesystem $2 $1
+	age_filesystem $2 $1 >> $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
  	my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
@@ -152,18 +157,21 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
  	fi
 
-	tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, Aging: $2, block size: $3)"
+	tst_resm TPASS "ext4 online defrag test pass"
  }
 
  # main
  ext4_setup
 
+rm -f $LTPROOT/output/ext4_online_defrag_result.txt
+
  DEFRAG=( $FILE $DIR $FILESYSTEM )
  AGING=( $EMPTY $SMALL $LARGE )
  BLOCK_SIZE=( 1024 4096 )
testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh +2 -2
index 0d293e8..e895d25 100755
@@ -43,7 +43,7 @@ export TDIRECTORY=$PWD/mnt_point/
  # $1: 1024 or 4096
  ext4_test_persist_prealloc()
  {
-	mkfs.ext4 -I 256 -b $1 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $1 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
@@ -81,7 +81,7 @@ ext4_test_persist_prealloc()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +10 -7
index 42c4336..5631fe5 100755
@@ -28,7 +28,7 @@ cd $LTPROOT/testcases/bin
  . ./ext4_funcs.sh
 
  export TCID="ext4-subdir-limit"
-export TST_TOTAL=12
+export TST_TOTAL=10
  export TST_COUNT=1
 
  # $1: the test config
@@ -59,20 +59,20 @@ ext4_run_case()
  		dir_name_len="long name"
  	fi
 
-	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len \
-			Parent dir: $3, Block size: $4"
+	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len, " \
+			"Parent dir: $3, Block size: $4"
 
  	# only mkfs if block size has been changed,
  	# or previous case failed
  	if [ $prev_result -ne $PASS -o $4 -ne $prev_block_size ]; then
-		mkfs.ext4 -b $4 -I 256 $EXT4_DEV > /dev/null
+		mkfs.ext4 -b $4 -I 256 $EXT4_DEV &> /dev/null
  		if [ $? -ne 0 ]; then
  			tst_resm TFAIL "failed to create ext4 filesystem"
  			return 1
  		fi
  		prev_block_size=$4
 
-		tune2fs -E test_fs -O extents $EXT4_DEV
+		tune2fs -O extents $EXT4_DEV &> /dev/null
  	fi
 
  	prev_result=$FAIL
@@ -120,14 +120,14 @@ ext4_run_case()
  	fi
 
  	# run fsck to make sure the filesystem has no errors
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck: the filesystem has errors"
  		return 1
  	fi
 
  	# check dir_nlink is set
-	dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+	dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | grep -q dir_nlink
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "feature dir_nlink is not set"
  		return 1
@@ -152,6 +152,9 @@ for ((i = 0; i < 3; i++))
  	{
  		for ((k = 0; k < 2; k++))
  		{
+			if [ $i -eq $LONG_DIR -a $k -eq 1024 ]; then
+				continue
+			fi
  			ext4_run_case 65537 ${DIR_LEN[$k]} ${PARENT_DIR[$j]} \
  					${BLOCK_SIZE[$i]}
  			if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +13 -9
index 27cbb5f..b479c8f 100755
@@ -40,8 +40,8 @@ LARGE=3
  # filesystem free size in bytes: blocks_size * free_blocks
  filesystem_free_size()
  {
-	bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2 }'`
-	blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2 }'`
+	bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk '{ print $2 }'`
+	blocks=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'| awk '{ print $2 }'`
 
  	echo $bsize * $blocks
  }
@@ -61,9 +61,9 @@ age_filesystem()
  		}
  	elif [ $1 -eq $LARGE ]; then
  		rm -rf mnt_point/*
-		bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size'`
+		bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size'`
  		bsize=`echo $bsize | awk '{ print $3 }'`
-		bcount=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'`
+		bcount=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'`
  		bcount=`echo $bcount | awk '{ print $3 }'`
  		dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount
  	else
@@ -80,7 +80,9 @@ age_filesystem()
  # $4: age filesystem: $EMPTY, $SMALL, $LARGE
  ext4_test_uninit_groups()
  {
-	mkfs.ext4 -I 256 -m 0 $EXT4_DEV > /dev/null
+	echo "Test $TST_COUNT" >> $LTPROOT/output/ext4_uninit_groups_result.txt
+
+	mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
@@ -92,10 +94,10 @@ ext4_test_uninit_groups()
  		flag=$3
  	fi
 
-	tune2fs -E test_fs -O extents,uninit_groups,$flag $EXT4_DEV
+	tune2fs -O extents,uninit_groups,$flag $EXT4_DEV &> /dev/null
 
  	# Must run fsck after setting uninit_groups
-	fsck -p $EXT4_DEV > /dev/null
+	fsck -p $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o $1,$2 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()
  		return 1
  	fi
 
-	age_filesystem $4
+	age_filesystem $4 >> $LTPROOT/output/ext4_uninit_groups_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "age filesystem failed"
  		umount mnt_point
@@ -116,7 +118,7 @@ ext4_test_uninit_groups()
  		return 1
  	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 
  RET=0
 
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
  for ((i = 0; i < 2; i++))
  {
  	for ((j = 0; j < 2; j++))
Signature · 12 lines
1.6.5.2


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#14 lore raw

Hi Miao,

Quoted 32 lines · Miao Xie

Hi, Subrata

Quoted 10 lines · Subrata Modak
Quoted 7 lines
Quoted 5 lines · Subrata Modak
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

You don't need to set the test_fs flag for modern ext4.

Can we change this ?

The attached patch can fix this problem.

I had already checked in your earlier patch long back. So, you would please need to resend over the latest code.

I'm sorry that I didn't bring the new patch(was sent on 2009-11-30) to your attention, so I resend that new patch now. I have tried to apply the patch to the latest code in the cvs repository and everything is ok.

Subrata, I didn't find these failure about online defrag on my box.
The attached patch opens the verbose mode of e4defrag to get more information later, it is useful to find the problem of online defrag. So, Could you test it again and send the output info to me?

The following is changelog.
=========================
This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

Quoted 1 line

I still find some issues:

patching file testcases/kernel/fs/ext4-new-features/Makefile
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/Makefile.rej
patching file testcases/kernel/fs/ext4-new-features/README
Hunk #1 FAILED at 9.
Hunk #2 FAILED at 111.
2 out of 2 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/README.rej
patching file testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh Hunk #1 FAILED at 37.
Hunk #2 FAILED at 69.
Hunk #3 FAILED at 85.
Hunk #4 FAILED at 114.
4 out of 4 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh.rej patching file testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh Hunk #1 FAILED at 24.
1 out of 1 hunk FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh.rej patching file testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh Hunk #1 FAILED at 41.
Hunk #2 FAILED at 67.
Hunk #3 FAILED at 91.
3 out of 3 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh.rej patching file testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh Hunk #1 FAILED at 59.
Hunk #2 FAILED at 90.
2 out of 2 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh.rej patching file testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh Hunk #1 FAILED at 41.
Hunk #2 FAILED at 82.
2 out of 2 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh.rej patching file testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh Hunk #1 FAILED at 94.
Hunk #2 FAILED at 121.
Hunk #3 succeeded at 142 with fuzz 2.
Hunk #4 FAILED at 157.
3 out of 4 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh.rej patching file testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh Hunk #1 FAILED at 43.
Hunk #2 FAILED at 81.
2 out of 2 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh.rej patching file testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh Hunk #1 FAILED at 28.
Hunk #2 FAILED at 59.
Hunk #3 FAILED at 120.
Hunk #4 FAILED at 152.
4 out of 4 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh.rej patching file testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh Hunk #1 FAILED at 40.
Hunk #2 FAILED at 61.
Hunk #3 FAILED at 80.
Hunk #4 FAILED at 94.
Hunk #5 FAILED at 105.
Hunk #6 FAILED at 118.
Hunk #7 FAILED at 137.
7 out of 7 hunks FAILED -- saving rejects to file testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh.rej

Regards--
Subrata

Quoted 509 lines
---
  testcases/kernel/fs/ext4-new-features/Makefile     |   20 ++++++++++----
  testcases/kernel/fs/ext4-new-features/README       |    7 +----
  .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |   15 ++++------
  .../ext4-inode-version/ext4_get_inode_version.sh   |    2 +-
  .../ext4-inode-version/ext4_inode_version_test.sh  |   10 +++----
  .../ext4-journal-checksum/ext4_journal_checksum.sh |   12 ++++----
  .../ext4_nsec_timestamps_test.sh                   |    8 ++---
  .../ext4-online-defrag/ext4_online_defrag_test.sh  |   28 ++++++++++++-------
  .../ext4_persist_prealloc_test.sh                  |    4 +-
  .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |   17 +++++++-----
  .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |   22 +++++++++------
  11 files changed, 78 insertions(+), 67 deletions(-)
testcases/kernel/fs/ext4-new-features/Makefile +14 -6
index 0e09dd6..208b8a6 100644
@@ -22,17 +22,25 @@ top_srcdir              ?= ../../../..
 
  include $(top_srcdir)/include/mk/env_pre.mk
 
-INSTALL_TARGETS		:= *.sh
-INSTALL_TARGETS		:= ext4-test-config
-INSTALL_TARGETS		:= ffsb-6.0-rc2/ffsb
+INSTALL_TARGETS		+= ffsb
+INSTALL_TARGETS		+= run_ext4_test.sh
+INSTALL_TARGETS		+= ext4_funcs.sh
+INSTALL_TARGETS		+= ext4-test-config
 
-FILTER_OUT_DIRS		:= ffsb-6.0-rc2
+FFSBDIR			:= ffsb-6.0-rc2
+FILTER_OUT_DIRS		:= $(FFSBDIR)
+FFSB			:= $(FFSBDIR)/ffsb
 
-trunk-all: ffsb-6.0-rc2
+$(FFSB): $(FFSBDIR)
+	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
+	cp $(FFSBDIR)/ffsb ffsb
+
+trunk-all: $(FFSB)
 
  trunk-clean:: | ffsb-clean
 
-ffsb-clean:: ffsb-6.0-rc2
+ffsb-clean:: $(FFSBDIR)
  	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
+	rm -rf ffsb
 
  include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/kernel/fs/ext4-new-features/README +1 -6
index 0ea0460..bda16e5 100644
@@ -9,7 +9,7 @@ with increasing disk capacities and state-of-the-art feature requirements. More
  extensive information of ext4 can be found at the ext4 wiki site at the URL:
  http://ext4.wiki.kernel.org
 
-There are total 119 testcases for ext4 new features test that have been added.
+There are total 117 testcases for ext4 new features test that have been added.
  Now, these testcases can test multi-block alloc/delayed alloc, inode version
  field on disk, journal checksumming, nanosec timestamps, online defrag, persist
  prealloc, subdirectory limit and uninit groups of ext4.
@@ -111,11 +111,6 @@ Directory containing the shell script which is used to test subdirectory limit
  of ext4. According to the kernel documentation, we create more than 32000
  subdirectorys on the ext4 filesystem.
 
-But, when then block size is small, such as 1024, and the name of every
-subdirectory is very long, such as every name is 255 bytes, we can just create
-less than 20000 subdirectory. In this test suite, there is two FAIL cases by
-reason of it.
-
  ext4-uninit-groups
  ------------------
  Directory containing the shell script which is used to test uninitialized groups
testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +6 -9
index ec2f389..be7b074 100755
@@ -37,14 +37,12 @@ read_config $1
  # Case 17: mount ext4 partition to ext3
  ext4_test_remount()
  {
-	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
  	mount -t ext4 -o delalloc,auto_da_alloc $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
@@ -71,7 +69,7 @@ ext4_test_remount()
  	fi
  	umount mnt_point
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
@@ -87,16 +85,15 @@ ext4_test_remount()
  # $4: auto_da_alloc
  ext4_test_delalloc_mballoc()
  {
-	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-		isAuto_da_alloc: $4"
+	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, isAuto_da_alloc: $4"
 
-	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o $1,$4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -117,7 +114,7 @@ ext4_test_delalloc_mballoc()
  		return 1
  	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +1 -1
index 8f5c907..0e7a8b6 100755
@@ -24,7 +24,7 @@
  #$2: 1  - return inode version by return value
  #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep 'Version' | awk '{
  print $NF }'`
 
  # The inode_version's format: '0x0000000a' or '0x00000000:0000000a',
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +4 -6
index f27248b..4a58b36 100755
@@ -41,13 +41,13 @@ ext4_test_128_inode_version()
  {
  	tst_resm TINFO "Test inode version is 32 bits with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o i_version $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()
  	fi
 
  	# inode version is 32 bits: 0x00000000
-	version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+	version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep 'Version'`
  	version=`echo $version | awk '{ print $NF }'`
  	version=`echo $version | sed 's/^0x//'`
  	len=${#version}
@@ -91,14 +91,12 @@ ext4_test_128_inode_version()
  # $1: file operation
  test_inode_version()
  {
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV > /dev/null
-
  	mount -t ext4 -o i_version $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +6 -6
index 550afa1..eb72b5d 100755
@@ -59,17 +59,17 @@ ext4_test_journal_checksum()
  		async_commit="Used"
  	fi
 
-	tst_resm TINFO "journal mode: $1, commit interval: $2, \
-		journal_checksum: $checksum, \
-		journal_async_commit: $async_commit, barrier: $5"
+	tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+		"journal_checksum: $checksum, " \
+		"journal_async_commit: $async_commit, barrier: $5"
 
-	mkfs.ext4 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o data=$1,commit=$2,$3,$4,barrier=$5 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -90,7 +90,7 @@ ext4_test_journal_checksum()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh +3 -5
index ced6576..cc00507 100755
@@ -41,13 +41,13 @@ ext4_test_sec_timestamps()
  {
  	tst_resm TINFO "Test timestamps with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -82,14 +82,12 @@ ext4_test_nsec_timestamps()
  {
  	tst_resm TINFO "Test timestamps with 256 inode size"
 
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
  	mount -t ext4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +18 -10
index 84613c8..7b4dda3 100755
@@ -94,23 +94,23 @@ my_e4defrag()
  {
  	if [ $1 -eq $FILE ]; then
  		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
  			return $?
  		# EMPTY or LARGE
  		else
-			./e4defrag mnt_point/tmp_file
+			./e4defrag -v mnt_point/tmp_file
  			return $?
  		fi
  	elif [ $1 -eq $DIR ]; then
  		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
  			return $?
  		else
-			./e4defrag mnt_point/tmp_dir
+			./e4defrag -v mnt_point/tmp_dir
  			return $?
  		fi
  	else
-		./e4defrag $EXT4_DEV
+		./e4defrag -v $EXT4_DEV
  		return $?
  	fi
  }
@@ -121,15 +121,20 @@ my_e4defrag()
  # $3: block size
  ext4_test_online_defrag()
  {
+	echo Test $TST_COUNT start >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
+
  	tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"
 
-	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV > /dev/null
+	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV >> \
+		$LTPROOT/output/ext4_online_defrag_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
  	mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -137,7 +142,7 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	age_filesystem $2 $1
+	age_filesystem $2 $1 >> $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
  	my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
@@ -152,18 +157,21 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
  	fi
 
-	tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, Aging: $2, block size: $3)"
+	tst_resm TPASS "ext4 online defrag test pass"
  }
 
  # main
  ext4_setup
 
+rm -f $LTPROOT/output/ext4_online_defrag_result.txt
+
  DEFRAG=( $FILE $DIR $FILESYSTEM )
  AGING=( $EMPTY $SMALL $LARGE )
  BLOCK_SIZE=( 1024 4096 )
testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh +2 -2
index 0d293e8..e895d25 100755
@@ -43,7 +43,7 @@ export TDIRECTORY=$PWD/mnt_point/
  # $1: 1024 or 4096
  ext4_test_persist_prealloc()
  {
-	mkfs.ext4 -I 256 -b $1 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $1 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
@@ -81,7 +81,7 @@ ext4_test_persist_prealloc()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +10 -7
index 42c4336..5631fe5 100755
@@ -28,7 +28,7 @@ cd $LTPROOT/testcases/bin
  . ./ext4_funcs.sh
 
  export TCID="ext4-subdir-limit"
-export TST_TOTAL=12
+export TST_TOTAL=10
  export TST_COUNT=1
 
  # $1: the test config
@@ -59,20 +59,20 @@ ext4_run_case()
  		dir_name_len="long name"
  	fi
 
-	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len \
-			Parent dir: $3, Block size: $4"
+	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len, " \
+			"Parent dir: $3, Block size: $4"
 
  	# only mkfs if block size has been changed,
  	# or previous case failed
  	if [ $prev_result -ne $PASS -o $4 -ne $prev_block_size ]; then
-		mkfs.ext4 -b $4 -I 256 $EXT4_DEV > /dev/null
+		mkfs.ext4 -b $4 -I 256 $EXT4_DEV &> /dev/null
  		if [ $? -ne 0 ]; then
  			tst_resm TFAIL "failed to create ext4 filesystem"
  			return 1
  		fi
  		prev_block_size=$4
 
-		tune2fs -E test_fs -O extents $EXT4_DEV
+		tune2fs -O extents $EXT4_DEV &> /dev/null
  	fi
 
  	prev_result=$FAIL
@@ -120,14 +120,14 @@ ext4_run_case()
  	fi
 
  	# run fsck to make sure the filesystem has no errors
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck: the filesystem has errors"
  		return 1
  	fi
 
  	# check dir_nlink is set
-	dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+	dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | grep -q dir_nlink
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "feature dir_nlink is not set"
  		return 1
@@ -152,6 +152,9 @@ for ((i = 0; i < 3; i++))
  	{
  		for ((k = 0; k < 2; k++))
  		{
+			if [ $i -eq $LONG_DIR -a $k -eq 1024 ]; then
+				continue
+			fi
  			ext4_run_case 65537 ${DIR_LEN[$k]} ${PARENT_DIR[$j]} \
  					${BLOCK_SIZE[$i]}
  			if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +11 -9
index 27cbb5f..b479c8f 100755
@@ -40,8 +40,8 @@ LARGE=3
  # filesystem free size in bytes: blocks_size * free_blocks
  filesystem_free_size()
  {
-	bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2 }'`
-	blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2 }'`
+	bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk '{ print $2 }'`
+	blocks=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'| awk '{ print $2 }'`
 
  	echo $bsize * $blocks
  }
@@ -61,9 +61,9 @@ age_filesystem()
  		}
  	elif [ $1 -eq $LARGE ]; then
  		rm -rf mnt_point/*
-		bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size'`
+		bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size'`
  		bsize=`echo $bsize | awk '{ print $3 }'`
-		bcount=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'`
+		bcount=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'`
  		bcount=`echo $bcount | awk '{ print $3 }'`
  		dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount
  	else
@@ -80,7 +80,9 @@ age_filesystem()
  # $4: age filesystem: $EMPTY, $SMALL, $LARGE
  ext4_test_uninit_groups()
  {
-	mkfs.ext4 -I 256 -m 0 $EXT4_DEV > /dev/null
+	echo "Test $TST_COUNT" >> $LTPROOT/output/ext4_uninit_groups_result.txt
+
+	mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
@@ -92,10 +94,10 @@ ext4_test_uninit_groups()
  		flag=$3
  	fi
 
-	tune2fs -E test_fs -O extents,uninit_groups,$flag $EXT4_DEV
+	tune2fs -O extents,uninit_groups,$flag $EXT4_DEV &> /dev/null
 
  	# Must run fsck after setting uninit_groups
-	fsck -p $EXT4_DEV > /dev/null
+	fsck -p $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o $1,$2 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()
  		return 1
  	fi
 
-	age_filesystem $4
+	age_filesystem $4 >> $LTPROOT/output/ext4_uninit_groups_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "age filesystem failed"
  		umount mnt_point
@@ -116,7 +118,7 @@ ext4_test_uninit_groups()
  		return 1
  	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh AGING=( $EMPTY $SMALL $LARGE ) · line 144

Quoted 8 lines
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +2 -0
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 
  RET=0
 
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
  for ((i = 0; i < 2; i++))
  {
  	for ((j = 0; j < 2; j++))

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#15 lore raw

Hi, Subrata

Quoted 26 lines · Subrata Modak
Quoted 26 lines
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

You don't need to set the test_fs flag for modern ext4.

Can we change this ?

The attached patch can fix this problem.

I had already checked in your earlier patch long back. So, you would please need to resend over the latest code.

I'm sorry that I didn't bring the new patch(was sent on 2009-11-30) to your attention, so I resend that new patch now. I have tried to apply the patch to the latest code in the cvs repository and everything is ok.

Subrata, I didn't find these failure about online defrag on my box.
The attached patch opens the verbose mode of e4defrag to get more information later, it is useful to find the problem of online defrag. So, Could you test it again and send the output info to me?

The following is changelog.
=========================
This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

Quoted 3 lines
Quoted 1 line

I still find some issues:

I'm so sorry for my mistake and resend the patch.

The following is changelog.
=========================
This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

---
 testcases/kernel/fs/ext4-new-features/Makefile     |   20 ++++++++++----
 testcases/kernel/fs/ext4-new-features/README       |    7 +----
 .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |   15 ++++------
 .../ext4-inode-version/ext4_get_inode_version.sh   |    2 +-
 .../ext4-inode-version/ext4_inode_version_test.sh  |   10 +++----
 .../ext4-journal-checksum/ext4_journal_checksum.sh |   12 ++++----
 .../ext4_nsec_timestamps_test.sh                   |    8 ++---
 .../ext4-online-defrag/ext4_online_defrag_test.sh  |   28 ++++++++++++-------
 .../ext4_persist_prealloc_test.sh                  |    4 +-
 .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |   17 +++++++-----
 .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |   22 +++++++++------
 11 files changed, 78 insertions(+), 67 deletions(-)
testcases/kernel/fs/ext4-new-features/Makefile +14 -6
index 0e09dd6..208b8a6 100644
@@ -22,17 +22,25 @@ top_srcdir              ?= ../../../..
 
 include $(top_srcdir)/include/mk/env_pre.mk
 
-INSTALL_TARGETS		:= *.sh
-INSTALL_TARGETS		:= ext4-test-config
-INSTALL_TARGETS		:= ffsb-6.0-rc2/ffsb
+INSTALL_TARGETS		+= ffsb
+INSTALL_TARGETS		+= run_ext4_test.sh
+INSTALL_TARGETS		+= ext4_funcs.sh
+INSTALL_TARGETS		+= ext4-test-config
 
-FILTER_OUT_DIRS		:= ffsb-6.0-rc2
+FFSBDIR			:= ffsb-6.0-rc2
+FILTER_OUT_DIRS		:= $(FFSBDIR)
+FFSB			:= $(FFSBDIR)/ffsb
 
-trunk-all: ffsb-6.0-rc2
+$(FFSB): $(FFSBDIR)
+	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
+	cp $(FFSBDIR)/ffsb ffsb
+
+trunk-all: $(FFSB)
 
 trunk-clean:: | ffsb-clean
 
-ffsb-clean:: ffsb-6.0-rc2
+ffsb-clean:: $(FFSBDIR)
 	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
+	rm -rf ffsb
 
 include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/kernel/fs/ext4-new-features/README +1 -6
index 0ea0460..bda16e5 100644
@@ -9,7 +9,7 @@ with increasing disk capacities and state-of-the-art feature requirements. More
 extensive information of ext4 can be found at the ext4 wiki site at the URL:
 http://ext4.wiki.kernel.org
 
-There are total 119 testcases for ext4 new features test that have been added.
+There are total 117 testcases for ext4 new features test that have been added.
 Now, these testcases can test multi-block alloc/delayed alloc, inode version
 field on disk, journal checksumming, nanosec timestamps, online defrag, persist
 prealloc, subdirectory limit and uninit groups of ext4.
@@ -111,11 +111,6 @@ Directory containing the shell script which is used to test subdirectory limit
 of ext4. According to the kernel documentation, we create more than 32000
 subdirectorys on the ext4 filesystem.
 
-But, when then block size is small, such as 1024, and the name of every
-subdirectory is very long, such as every name is 255 bytes, we can just create
-less than 20000 subdirectory. In this test suite, there is two FAIL cases by
-reason of it.
-
 ext4-uninit-groups
 ------------------
 Directory containing the shell script which is used to test uninitialized groups
testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +6 -9
index ec2f389..be7b074 100755
@@ -37,14 +37,12 @@ read_config $1
 # Case 17: mount ext4 partition to ext3
 ext4_test_remount()
 {
-	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
 	mount -t ext4 -o delalloc,auto_da_alloc $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to mount ext4 filesystem"
@@ -71,7 +69,7 @@ ext4_test_remount()
 	fi
 	umount mnt_point
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
@@ -87,16 +85,15 @@ ext4_test_remount()
 # $4: auto_da_alloc
 ext4_test_delalloc_mballoc()
 {
-	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-		isAuto_da_alloc: $4"
+	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, isAuto_da_alloc: $4"
 
-	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
 	mount -t ext4 -o $1,$4 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -117,7 +114,7 @@ ext4_test_delalloc_mballoc()
 		return 1
 	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +1 -1
index 8f5c907..0e7a8b6 100755
@@ -24,7 +24,7 @@
 #$2: 1  - return inode version by return value
 #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep 'Version' | awk '{
 print $NF }'`
 
 # The inode_version's format: '0x0000000a' or '0x00000000:0000000a',
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +4 -6
index f27248b..4a58b36 100755
@@ -41,13 +41,13 @@ ext4_test_128_inode_version()
 {
 	tst_resm TINFO "Test inode version is 32 bits with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
 	mount -t ext4 -o i_version $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()
 	fi
 
 	# inode version is 32 bits: 0x00000000
-	version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+	version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep 'Version'`
 	version=`echo $version | awk '{ print $NF }'`
 	version=`echo $version | sed 's/^0x//'`
 	len=${#version}
@@ -91,14 +91,12 @@ ext4_test_128_inode_version()
 # $1: file operation
 test_inode_version()
 {
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs $EXT4_DEV > /dev/null
-
 	mount -t ext4 -o i_version $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +6 -6
index 550afa1..eb72b5d 100755
@@ -59,17 +59,17 @@ ext4_test_journal_checksum()
 		async_commit="Used"
 	fi
 
-	tst_resm TINFO "journal mode: $1, commit interval: $2, \
-		journal_checksum: $checksum, \
-		journal_async_commit: $async_commit, barrier: $5"
+	tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+		"journal_checksum: $checksum, " \
+		"journal_async_commit: $async_commit, barrier: $5"
 
-	mkfs.ext4 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
 	mount -t ext4 -o data=$1,commit=$2,$3,$4,barrier=$5 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -90,7 +90,7 @@ ext4_test_journal_checksum()
 		return 1
 	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh +3 -5
index ced6576..cc00507 100755
@@ -41,13 +41,13 @@ ext4_test_sec_timestamps()
 {
 	tst_resm TINFO "Test timestamps with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
 	mount -t ext4 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -82,14 +82,12 @@ ext4_test_nsec_timestamps()
 {
 	tst_resm TINFO "Test timestamps with 256 inode size"
 
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
 	mount -t ext4 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +18 -10
index 84613c8..7b4dda3 100755
@@ -94,23 +94,23 @@ my_e4defrag()
 {
 	if [ $1 -eq $FILE ]; then
 		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
 			return $?
 		# EMPTY or LARGE
 		else
-			./e4defrag mnt_point/tmp_file
+			./e4defrag -v mnt_point/tmp_file
 			return $?
 		fi
 	elif [ $1 -eq $DIR ]; then
 		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
 			return $?
 		else
-			./e4defrag mnt_point/tmp_dir
+			./e4defrag -v mnt_point/tmp_dir
 			return $?
 		fi
 	else
-		./e4defrag $EXT4_DEV
+		./e4defrag -v $EXT4_DEV
 		return $?
 	fi
 }
@@ -121,15 +121,20 @@ my_e4defrag()
 # $3: block size
 ext4_test_online_defrag()
 {
+	echo Test $TST_COUNT start >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
+
 	tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"
 
-	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV > /dev/null
+	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV >> \
+		$LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
 	mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -137,7 +142,7 @@ ext4_test_online_defrag()
 		return 1
 	fi
 
-	age_filesystem $2 $1
+	age_filesystem $2 $1 >> $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
 	my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt
 	if [ $? -ne 0 ]; then
@@ -152,18 +157,21 @@ ext4_test_online_defrag()
 		return 1
 	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
 	fi
 
-	tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, Aging: $2, block size: $3)"
+	tst_resm TPASS "ext4 online defrag test pass"
 }
 
 # main
 ext4_setup
 
+rm -f $LTPROOT/output/ext4_online_defrag_result.txt
+
 DEFRAG=( $FILE $DIR $FILESYSTEM )
 AGING=( $EMPTY $SMALL $LARGE )
 BLOCK_SIZE=( 1024 4096 )
testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh +2 -2
index 0d293e8..e895d25 100755
@@ -43,7 +43,7 @@ export TDIRECTORY=$PWD/mnt_point/
 # $1: 1024 or 4096
 ext4_test_persist_prealloc()
 {
-	mkfs.ext4 -I 256 -b $1 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $1 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
@@ -81,7 +81,7 @@ ext4_test_persist_prealloc()
 		return 1
 	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +10 -7
index 42c4336..5631fe5 100755
@@ -28,7 +28,7 @@ cd $LTPROOT/testcases/bin
 . ./ext4_funcs.sh
 
 export TCID="ext4-subdir-limit"
-export TST_TOTAL=12
+export TST_TOTAL=10
 export TST_COUNT=1
 
 # $1: the test config
@@ -59,20 +59,20 @@ ext4_run_case()
 		dir_name_len="long name"
 	fi
 
-	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len \
-			Parent dir: $3, Block size: $4"
+	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len, " \
+			"Parent dir: $3, Block size: $4"
 
 	# only mkfs if block size has been changed,
 	# or previous case failed
 	if [ $prev_result -ne $PASS -o $4 -ne $prev_block_size ]; then
-		mkfs.ext4 -b $4 -I 256 $EXT4_DEV > /dev/null
+		mkfs.ext4 -b $4 -I 256 $EXT4_DEV &> /dev/null
 		if [ $? -ne 0 ]; then
 			tst_resm TFAIL "failed to create ext4 filesystem"
 			return 1
 		fi
 		prev_block_size=$4
 
-		tune2fs -E test_fs -O extents $EXT4_DEV
+		tune2fs -O extents $EXT4_DEV &> /dev/null
 	fi
 
 	prev_result=$FAIL
@@ -120,14 +120,14 @@ ext4_run_case()
 	fi
 
 	# run fsck to make sure the filesystem has no errors
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck: the filesystem has errors"
 		return 1
 	fi
 
 	# check dir_nlink is set
-	dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+	dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | grep -q dir_nlink
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "feature dir_nlink is not set"
 		return 1
@@ -152,6 +152,9 @@ for ((i = 0; i < 3; i++))
 	{
 		for ((k = 0; k < 2; k++))
 		{
+			if [ $i -eq $LONG_DIR -a $k -eq 1024 ]; then
+				continue
+			fi
 			ext4_run_case 65537 ${DIR_LEN[$k]} ${PARENT_DIR[$j]} \
 					${BLOCK_SIZE[$i]}
 			if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +13 -9
index 27cbb5f..b479c8f 100755
@@ -40,8 +40,8 @@ LARGE=3
 # filesystem free size in bytes: blocks_size * free_blocks
 filesystem_free_size()
 {
-	bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2 }'`
-	blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2 }'`
+	bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk '{ print $2 }'`
+	blocks=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'| awk '{ print $2 }'`
 
 	echo $bsize * $blocks
 }
@@ -61,9 +61,9 @@ age_filesystem()
 		}
 	elif [ $1 -eq $LARGE ]; then
 		rm -rf mnt_point/*
-		bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size'`
+		bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size'`
 		bsize=`echo $bsize | awk '{ print $3 }'`
-		bcount=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'`
+		bcount=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'`
 		bcount=`echo $bcount | awk '{ print $3 }'`
 		dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount
 	else
@@ -80,7 +80,9 @@ age_filesystem()
 # $4: age filesystem: $EMPTY, $SMALL, $LARGE
 ext4_test_uninit_groups()
 {
-	mkfs.ext4 -I 256 -m 0 $EXT4_DEV > /dev/null
+	echo "Test $TST_COUNT" >> $LTPROOT/output/ext4_uninit_groups_result.txt
+
+	mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
@@ -92,10 +94,10 @@ ext4_test_uninit_groups()
 		flag=$3
 	fi
 
-	tune2fs -E test_fs -O extents,uninit_groups,$flag $EXT4_DEV
+	tune2fs -O extents,uninit_groups,$flag $EXT4_DEV &> /dev/null
 
 	# Must run fsck after setting uninit_groups
-	fsck -p $EXT4_DEV > /dev/null
+	fsck -p $EXT4_DEV &> /dev/null
 
 	mount -t ext4 -o $1,$2 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()
 		return 1
 	fi
 
-	age_filesystem $4
+	age_filesystem $4 >> $LTPROOT/output/ext4_uninit_groups_result.txt 2>&1
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "age filesystem failed"
 		umount mnt_point
@@ -116,7 +118,7 @@ ext4_test_uninit_groups()
 		return 1
 	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 
 RET=0
 
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
 for ((i = 0; i < 2; i++))
 {
 	for ((j = 0; j < 2; j++))
Signature · 13 lines
1.6.5.2



------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#16 lore raw
Quoted 30 lines · Miao Xie

Hi, Subrata

Quoted 27 lines · Subrata Modak
Quoted 27 lines
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

/dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

You don't need to set the test_fs flag for modern ext4.

Can we change this ?

The attached patch can fix this problem.

I had already checked in your earlier patch long back. So, you would please need to resend over the latest code.

I'm sorry that I didn't bring the new patch(was sent on 2009-11-30) to your attention, so I resend that new patch now. I have tried to apply the patch to the latest code in the cvs repository and everything is ok.

Subrata, I didn't find these failure about online defrag on my box.
The attached patch opens the verbose mode of e4defrag to get more information later, it is useful to find the problem of online defrag. So, Could you test it again and send the output info to me?

The following is changelog.
=========================
This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

Thanks Miao. The changes are checked in now.

Regards--
Subrata

Quoted 524 lines
Quoted 2 lines

I still find some issues:

I'm so sorry for my mistake and resend the patch.

The following is changelog.
=========================
This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

---
 testcases/kernel/fs/ext4-new-features/Makefile     |   20 ++++++++++----
 testcases/kernel/fs/ext4-new-features/README       |    7 +----
 .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |   15 ++++------
 .../ext4-inode-version/ext4_get_inode_version.sh   |    2 +-
 .../ext4-inode-version/ext4_inode_version_test.sh  |   10 +++----
 .../ext4-journal-checksum/ext4_journal_checksum.sh |   12 ++++----
 .../ext4_nsec_timestamps_test.sh                   |    8 ++---
 .../ext4-online-defrag/ext4_online_defrag_test.sh  |   28 ++++++++++++-------
 .../ext4_persist_prealloc_test.sh                  |    4 +-
 .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |   17 +++++++-----
 .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |   22 +++++++++------
 11 files changed, 78 insertions(+), 67 deletions(-)
testcases/kernel/fs/ext4-new-features/Makefile +14 -6
index 0e09dd6..208b8a6 100644
@@ -22,17 +22,25 @@ top_srcdir              ?= ../../../..
 
 include $(top_srcdir)/include/mk/env_pre.mk
 
-INSTALL_TARGETS		:= *.sh
-INSTALL_TARGETS		:= ext4-test-config
-INSTALL_TARGETS		:= ffsb-6.0-rc2/ffsb
+INSTALL_TARGETS		+= ffsb
+INSTALL_TARGETS		+= run_ext4_test.sh
+INSTALL_TARGETS		+= ext4_funcs.sh
+INSTALL_TARGETS		+= ext4-test-config
 
-FILTER_OUT_DIRS		:= ffsb-6.0-rc2
+FFSBDIR			:= ffsb-6.0-rc2
+FILTER_OUT_DIRS		:= $(FFSBDIR)
+FFSB			:= $(FFSBDIR)/ffsb
 
-trunk-all: ffsb-6.0-rc2
+$(FFSB): $(FFSBDIR)
+	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
+	cp $(FFSBDIR)/ffsb ffsb
+
+trunk-all: $(FFSB)
 
 trunk-clean:: | ffsb-clean
 
-ffsb-clean:: ffsb-6.0-rc2
+ffsb-clean:: $(FFSBDIR)
 	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
+	rm -rf ffsb
 
 include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/kernel/fs/ext4-new-features/README +1 -6
index 0ea0460..bda16e5 100644
@@ -9,7 +9,7 @@ with increasing disk capacities and state-of-the-art feature requirements. More
 extensive information of ext4 can be found at the ext4 wiki site at the URL:
 http://ext4.wiki.kernel.org
 
-There are total 119 testcases for ext4 new features test that have been added.
+There are total 117 testcases for ext4 new features test that have been added.
 Now, these testcases can test multi-block alloc/delayed alloc, inode version
 field on disk, journal checksumming, nanosec timestamps, online defrag, persist
 prealloc, subdirectory limit and uninit groups of ext4.
@@ -111,11 +111,6 @@ Directory containing the shell script which is used to test subdirectory limit
 of ext4. According to the kernel documentation, we create more than 32000
 subdirectorys on the ext4 filesystem.
 
-But, when then block size is small, such as 1024, and the name of every
-subdirectory is very long, such as every name is 255 bytes, we can just create
-less than 20000 subdirectory. In this test suite, there is two FAIL cases by
-reason of it.
-
 ext4-uninit-groups
 ------------------
 Directory containing the shell script which is used to test uninitialized groups
testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +6 -9
index ec2f389..be7b074 100755
@@ -37,14 +37,12 @@ read_config $1
 # Case 17: mount ext4 partition to ext3
 ext4_test_remount()
 {
-	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
 	mount -t ext4 -o delalloc,auto_da_alloc $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to mount ext4 filesystem"
@@ -71,7 +69,7 @@ ext4_test_remount()
 	fi
 	umount mnt_point
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
@@ -87,16 +85,15 @@ ext4_test_remount()
 # $4: auto_da_alloc
 ext4_test_delalloc_mballoc()
 {
-	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-		isAuto_da_alloc: $4"
+	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, isAuto_da_alloc: $4"
 
-	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
 	mount -t ext4 -o $1,$4 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -117,7 +114,7 @@ ext4_test_delalloc_mballoc()
 		return 1
 	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +1 -1
index 8f5c907..0e7a8b6 100755
@@ -24,7 +24,7 @@
 #$2: 1  - return inode version by return value
 #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep 'Version' | awk '{
 print $NF }'`
 
 # The inode_version's format: '0x0000000a' or '0x00000000:0000000a',
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +4 -6
index f27248b..4a58b36 100755
@@ -41,13 +41,13 @@ ext4_test_128_inode_version()
 {
 	tst_resm TINFO "Test inode version is 32 bits with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
 	mount -t ext4 -o i_version $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()
 	fi
 
 	# inode version is 32 bits: 0x00000000
-	version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+	version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep 'Version'`
 	version=`echo $version | awk '{ print $NF }'`
 	version=`echo $version | sed 's/^0x//'`
 	len=${#version}
@@ -91,14 +91,12 @@ ext4_test_128_inode_version()
 # $1: file operation
 test_inode_version()
 {
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs $EXT4_DEV > /dev/null
-
 	mount -t ext4 -o i_version $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +6 -6
index 550afa1..eb72b5d 100755
@@ -59,17 +59,17 @@ ext4_test_journal_checksum()
 		async_commit="Used"
 	fi
 
-	tst_resm TINFO "journal mode: $1, commit interval: $2, \
-		journal_checksum: $checksum, \
-		journal_async_commit: $async_commit, barrier: $5"
+	tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+		"journal_checksum: $checksum, " \
+		"journal_async_commit: $async_commit, barrier: $5"
 
-	mkfs.ext4 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
 	mount -t ext4 -o data=$1,commit=$2,$3,$4,barrier=$5 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -90,7 +90,7 @@ ext4_test_journal_checksum()
 		return 1
 	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh +3 -5
index ced6576..cc00507 100755
@@ -41,13 +41,13 @@ ext4_test_sec_timestamps()
 {
 	tst_resm TINFO "Test timestamps with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
 	mount -t ext4 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -82,14 +82,12 @@ ext4_test_nsec_timestamps()
 {
 	tst_resm TINFO "Test timestamps with 256 inode size"
 
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
 	mount -t ext4 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +18 -10
index 84613c8..7b4dda3 100755
@@ -94,23 +94,23 @@ my_e4defrag()
 {
 	if [ $1 -eq $FILE ]; then
 		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
 			return $?
 		# EMPTY or LARGE
 		else
-			./e4defrag mnt_point/tmp_file
+			./e4defrag -v mnt_point/tmp_file
 			return $?
 		fi
 	elif [ $1 -eq $DIR ]; then
 		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
 			return $?
 		else
-			./e4defrag mnt_point/tmp_dir
+			./e4defrag -v mnt_point/tmp_dir
 			return $?
 		fi
 	else
-		./e4defrag $EXT4_DEV
+		./e4defrag -v $EXT4_DEV
 		return $?
 	fi
 }
@@ -121,15 +121,20 @@ my_e4defrag()
 # $3: block size
 ext4_test_online_defrag()
 {
+	echo Test $TST_COUNT start >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
+
 	tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"
 
-	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV > /dev/null
+	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV >> \
+		$LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
 	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
 	mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -137,7 +142,7 @@ ext4_test_online_defrag()
 		return 1
 	fi
 
-	age_filesystem $2 $1
+	age_filesystem $2 $1 >> $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
 	my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt
 	if [ $? -ne 0 ]; then
@@ -152,18 +157,21 @@ ext4_test_online_defrag()
 		return 1
 	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
 	fi
 
-	tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, Aging: $2, block size: $3)"
+	tst_resm TPASS "ext4 online defrag test pass"
 }
 
 # main
 ext4_setup
 
+rm -f $LTPROOT/output/ext4_online_defrag_result.txt
+
 DEFRAG=( $FILE $DIR $FILESYSTEM )
 AGING=( $EMPTY $SMALL $LARGE )
 BLOCK_SIZE=( 1024 4096 )
testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh +2 -2
index 0d293e8..e895d25 100755
@@ -43,7 +43,7 @@ export TDIRECTORY=$PWD/mnt_point/
 # $1: 1024 or 4096
 ext4_test_persist_prealloc()
 {
-	mkfs.ext4 -I 256 -b $1 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $1 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
@@ -81,7 +81,7 @@ ext4_test_persist_prealloc()
 		return 1
 	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +10 -7
index 42c4336..5631fe5 100755
@@ -28,7 +28,7 @@ cd $LTPROOT/testcases/bin
 . ./ext4_funcs.sh
 
 export TCID="ext4-subdir-limit"
-export TST_TOTAL=12
+export TST_TOTAL=10
 export TST_COUNT=1
 
 # $1: the test config
@@ -59,20 +59,20 @@ ext4_run_case()
 		dir_name_len="long name"
 	fi
 
-	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len \
-			Parent dir: $3, Block size: $4"
+	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len, " \
+			"Parent dir: $3, Block size: $4"
 
 	# only mkfs if block size has been changed,
 	# or previous case failed
 	if [ $prev_result -ne $PASS -o $4 -ne $prev_block_size ]; then
-		mkfs.ext4 -b $4 -I 256 $EXT4_DEV > /dev/null
+		mkfs.ext4 -b $4 -I 256 $EXT4_DEV &> /dev/null
 		if [ $? -ne 0 ]; then
 			tst_resm TFAIL "failed to create ext4 filesystem"
 			return 1
 		fi
 		prev_block_size=$4
 
-		tune2fs -E test_fs -O extents $EXT4_DEV
+		tune2fs -O extents $EXT4_DEV &> /dev/null
 	fi
 
 	prev_result=$FAIL
@@ -120,14 +120,14 @@ ext4_run_case()
 	fi
 
 	# run fsck to make sure the filesystem has no errors
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck: the filesystem has errors"
 		return 1
 	fi
 
 	# check dir_nlink is set
-	dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+	dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | grep -q dir_nlink
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "feature dir_nlink is not set"
 		return 1
@@ -152,6 +152,9 @@ for ((i = 0; i < 3; i++))
 	{
 		for ((k = 0; k < 2; k++))
 		{
+			if [ $i -eq $LONG_DIR -a $k -eq 1024 ]; then
+				continue
+			fi
 			ext4_run_case 65537 ${DIR_LEN[$k]} ${PARENT_DIR[$j]} \
 					${BLOCK_SIZE[$i]}
 			if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +11 -9
index 27cbb5f..b479c8f 100755
@@ -40,8 +40,8 @@ LARGE=3
 # filesystem free size in bytes: blocks_size * free_blocks
 filesystem_free_size()
 {
-	bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2 }'`
-	blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2 }'`
+	bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk '{ print $2 }'`
+	blocks=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'| awk '{ print $2 }'`
 
 	echo $bsize * $blocks
 }
@@ -61,9 +61,9 @@ age_filesystem()
 		}
 	elif [ $1 -eq $LARGE ]; then
 		rm -rf mnt_point/*
-		bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size'`
+		bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size'`
 		bsize=`echo $bsize | awk '{ print $3 }'`
-		bcount=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'`
+		bcount=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'`
 		bcount=`echo $bcount | awk '{ print $3 }'`
 		dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount
 	else
@@ -80,7 +80,9 @@ age_filesystem()
 # $4: age filesystem: $EMPTY, $SMALL, $LARGE
 ext4_test_uninit_groups()
 {
-	mkfs.ext4 -I 256 -m 0 $EXT4_DEV > /dev/null
+	echo "Test $TST_COUNT" >> $LTPROOT/output/ext4_uninit_groups_result.txt
+
+	mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to create ext4 filesystem"
 		return 1
@@ -92,10 +94,10 @@ ext4_test_uninit_groups()
 		flag=$3
 	fi
 
-	tune2fs -E test_fs -O extents,uninit_groups,$flag $EXT4_DEV
+	tune2fs -O extents,uninit_groups,$flag $EXT4_DEV &> /dev/null
 
 	# Must run fsck after setting uninit_groups
-	fsck -p $EXT4_DEV > /dev/null
+	fsck -p $EXT4_DEV &> /dev/null
 
 	mount -t ext4 -o $1,$2 $EXT4_DEV mnt_point
 	if [ $? -ne 0 ]; then
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()
 		return 1
 	fi
 
-	age_filesystem $4
+	age_filesystem $4 >> $LTPROOT/output/ext4_uninit_groups_result.txt 2>&1
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "age filesystem failed"
 		umount mnt_point
@@ -116,7 +118,7 @@ ext4_test_uninit_groups()
 		return 1
 	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "fsck returned failure"
 		return 1

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh AGING=( $EMPTY $SMALL $LARGE ) · line 144

Quoted 8 lines
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +2 -0
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 
 RET=0
 
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
 for ((i = 0; i < 2; i++))
 {
 	for ((j = 0; j < 2; j++))

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#17 lore raw
In reply to Subrata Modak

Hi, Subrata

I'm sorry. There is something wrong in the patch that I sent on 2009-11-26. So I made a new patch to instead of it.

And Subrata, I didn't find these failure about online defrag on my box.
The attached patch opens the verbose mode of e4defrag to get more information later, it is useful to find the problem of online defrag. So, Could you test it again and send the output info to me?

This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag -- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

---
  testcases/kernel/fs/ext4-new-features/Makefile     |   20 ++++++++++----
  testcases/kernel/fs/ext4-new-features/README       |    7 +----
  .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |   15 ++++------
  .../ext4-inode-version/ext4_get_inode_version.sh   |    2 +-
  .../ext4-inode-version/ext4_inode_version_test.sh  |   10 +++----
  .../ext4-journal-checksum/ext4_journal_checksum.sh |   12 ++++----
  .../ext4_nsec_timestamps_test.sh                   |    8 ++---
  .../ext4-online-defrag/ext4_online_defrag_test.sh  |   28 ++++++++++++-------
  .../ext4_persist_prealloc_test.sh                  |    4 +-
  .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |   17 +++++++-----
  .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |   22 +++++++++------
  11 files changed, 78 insertions(+), 67 deletions(-)
testcases/kernel/fs/ext4-new-features/Makefile +14 -6
index 0e09dd6..208b8a6 100644
@@ -22,17 +22,25 @@ top_srcdir              ?= ../../../..
 
  include $(top_srcdir)/include/mk/env_pre.mk
 
-INSTALL_TARGETS		:= *.sh
-INSTALL_TARGETS		:= ext4-test-config
-INSTALL_TARGETS		:= ffsb-6.0-rc2/ffsb
+INSTALL_TARGETS		+= ffsb
+INSTALL_TARGETS		+= run_ext4_test.sh
+INSTALL_TARGETS		+= ext4_funcs.sh
+INSTALL_TARGETS		+= ext4-test-config
 
-FILTER_OUT_DIRS		:= ffsb-6.0-rc2
+FFSBDIR			:= ffsb-6.0-rc2
+FILTER_OUT_DIRS		:= $(FFSBDIR)
+FFSB			:= $(FFSBDIR)/ffsb
 
-trunk-all: ffsb-6.0-rc2
+$(FFSB): $(FFSBDIR)
+	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
+	cp $(FFSBDIR)/ffsb ffsb
+
+trunk-all: $(FFSB)
 
  trunk-clean:: | ffsb-clean
 
-ffsb-clean:: ffsb-6.0-rc2
+ffsb-clean:: $(FFSBDIR)
  	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
+	rm -rf ffsb
 
  include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/kernel/fs/ext4-new-features/README +1 -6
index 0ea0460..bda16e5 100644
@@ -9,7 +9,7 @@ with increasing disk capacities and state-of-the-art feature requirements. More
  extensive information of ext4 can be found at the ext4 wiki site at the URL:
  http://ext4.wiki.kernel.org
 
-There are total 119 testcases for ext4 new features test that have been added.
+There are total 117 testcases for ext4 new features test that have been added.
  Now, these testcases can test multi-block alloc/delayed alloc, inode version
  field on disk, journal checksumming, nanosec timestamps, online defrag, persist
  prealloc, subdirectory limit and uninit groups of ext4.
@@ -111,11 +111,6 @@ Directory containing the shell script which is used to test subdirectory limit
  of ext4. According to the kernel documentation, we create more than 32000
  subdirectorys on the ext4 filesystem.
 
-But, when then block size is small, such as 1024, and the name of every
-subdirectory is very long, such as every name is 255 bytes, we can just create
-less than 20000 subdirectory. In this test suite, there is two FAIL cases by
-reason of it.
-
  ext4-uninit-groups
  ------------------
  Directory containing the shell script which is used to test uninitialized groups
testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +6 -9
index ec2f389..be7b074 100755
@@ -37,14 +37,12 @@ read_config $1
  # Case 17: mount ext4 partition to ext3
  ext4_test_remount()
  {
-	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 -b 1024 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
  	mount -t ext4 -o delalloc,auto_da_alloc $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
@@ -71,7 +69,7 @@ ext4_test_remount()
  	fi
  	umount mnt_point
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
@@ -87,16 +85,15 @@ ext4_test_remount()
  # $4: auto_da_alloc
  ext4_test_delalloc_mballoc()
  {
-	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-		isAuto_da_alloc: $4"
+	tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, isAuto_da_alloc: $4"
 
-	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o $1,$4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -117,7 +114,7 @@ ext4_test_delalloc_mballoc()
  		return 1
  	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +1 -1
index 8f5c907..0e7a8b6 100755
@@ -24,7 +24,7 @@
  #$2: 1  - return inode version by return value
  #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep 'Version' | awk '{
  print $NF }'`
 
  # The inode_version's format: '0x0000000a' or '0x00000000:0000000a',
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +4 -6
index f27248b..4a58b36 100755
@@ -41,13 +41,13 @@ ext4_test_128_inode_version()
  {
  	tst_resm TINFO "Test inode version is 32 bits with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o i_version $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()
  	fi
 
  	# inode version is 32 bits: 0x00000000
-	version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+	version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep 'Version'`
  	version=`echo $version | awk '{ print $NF }'`
  	version=`echo $version | sed 's/^0x//'`
  	len=${#version}
@@ -91,14 +91,12 @@ ext4_test_128_inode_version()
  # $1: file operation
  test_inode_version()
  {
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV > /dev/null
-
  	mount -t ext4 -o i_version $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +6 -6
index 550afa1..eb72b5d 100755
@@ -59,17 +59,17 @@ ext4_test_journal_checksum()
  		async_commit="Used"
  	fi
 
-	tst_resm TINFO "journal mode: $1, commit interval: $2, \
-		journal_checksum: $checksum, \
-		journal_async_commit: $async_commit, barrier: $5"
+	tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+		"journal_checksum: $checksum, " \
+		"journal_async_commit: $async_commit, barrier: $5"
 
-	mkfs.ext4 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o data=$1,commit=$2,$3,$4,barrier=$5 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -90,7 +90,7 @@ ext4_test_journal_checksum()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh +3 -5
index ced6576..cc00507 100755
@@ -41,13 +41,13 @@ ext4_test_sec_timestamps()
  {
  	tst_resm TINFO "Test timestamps with 128 inode size"
 
-	mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV &> /dev/null
 
  	mount -t ext4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -82,14 +82,12 @@ ext4_test_nsec_timestamps()
  {
  	tst_resm TINFO "Test timestamps with 256 inode size"
 
-	mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+	mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs $EXT4_DEV
-
  	mount -t ext4 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +18 -10
index 84613c8..7b4dda3 100755
@@ -94,23 +94,23 @@ my_e4defrag()
  {
  	if [ $1 -eq $FILE ]; then
  		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
  			return $?
  		# EMPTY or LARGE
  		else
-			./e4defrag mnt_point/tmp_file
+			./e4defrag -v mnt_point/tmp_file
  			return $?
  		fi
  	elif [ $1 -eq $DIR ]; then
  		if [ $2 -eq $SMALL ]; then
-			./e4defrag mnt_point/data0/
+			./e4defrag -v mnt_point/data0/
  			return $?
  		else
-			./e4defrag mnt_point/tmp_dir
+			./e4defrag -v mnt_point/tmp_dir
  			return $?
  		fi
  	else
-		./e4defrag $EXT4_DEV
+		./e4defrag -v $EXT4_DEV
  		return $?
  	fi
  }
@@ -121,15 +121,20 @@ my_e4defrag()
  # $3: block size
  ext4_test_online_defrag()
  {
+	echo Test $TST_COUNT start >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt
+
  	tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"
 
-	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV > /dev/null
+	mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV >> \
+		$LTPROOT/output/ext4_online_defrag_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
  	fi
 
-	tune2fs -E test_fs -O extents $EXT4_DEV
+	tune2fs -O extents $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
  	mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -137,7 +142,7 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	age_filesystem $2 $1
+	age_filesystem $2 $1 >> $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
  	my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt
  	if [ $? -ne 0 ]; then
@@ -152,18 +157,21 @@ ext4_test_online_defrag()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV >> \
+		 $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
  	fi
 
-	tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, Aging: $2, block size: $3)"
+	tst_resm TPASS "ext4 online defrag test pass"
  }
 
  # main
  ext4_setup
 
+rm -f $LTPROOT/output/ext4_online_defrag_result.txt
+
  DEFRAG=( $FILE $DIR $FILESYSTEM )
  AGING=( $EMPTY $SMALL $LARGE )
  BLOCK_SIZE=( 1024 4096 )
testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh +2 -2
index 0d293e8..e895d25 100755
@@ -43,7 +43,7 @@ export TDIRECTORY=$PWD/mnt_point/
  # $1: 1024 or 4096
  ext4_test_persist_prealloc()
  {
-	mkfs.ext4 -I 256 -b $1 $EXT4_DEV > /dev/null
+	mkfs.ext4 -I 256 -b $1 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
@@ -81,7 +81,7 @@ ext4_test_persist_prealloc()
  		return 1
  	fi
 
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +10 -7
index 42c4336..5631fe5 100755
@@ -28,7 +28,7 @@ cd $LTPROOT/testcases/bin
  . ./ext4_funcs.sh
 
  export TCID="ext4-subdir-limit"
-export TST_TOTAL=12
+export TST_TOTAL=10
  export TST_COUNT=1
 
  # $1: the test config
@@ -59,20 +59,20 @@ ext4_run_case()
  		dir_name_len="long name"
  	fi
 
-	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len \
-			Parent dir: $3, Block size: $4"
+	tst_resm TINFO "Num of dirs to create: $1, Dir name len: $dir_name_len, " \
+			"Parent dir: $3, Block size: $4"
 
  	# only mkfs if block size has been changed,
  	# or previous case failed
  	if [ $prev_result -ne $PASS -o $4 -ne $prev_block_size ]; then
-		mkfs.ext4 -b $4 -I 256 $EXT4_DEV > /dev/null
+		mkfs.ext4 -b $4 -I 256 $EXT4_DEV &> /dev/null
  		if [ $? -ne 0 ]; then
  			tst_resm TFAIL "failed to create ext4 filesystem"
  			return 1
  		fi
  		prev_block_size=$4
 
-		tune2fs -E test_fs -O extents $EXT4_DEV
+		tune2fs -O extents $EXT4_DEV &> /dev/null
  	fi
 
  	prev_result=$FAIL
@@ -120,14 +120,14 @@ ext4_run_case()
  	fi
 
  	# run fsck to make sure the filesystem has no errors
-	e2fsck -p $EXT4_DEV
+	e2fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck: the filesystem has errors"
  		return 1
  	fi
 
  	# check dir_nlink is set
-	dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+	dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | grep -q dir_nlink
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "feature dir_nlink is not set"
  		return 1
@@ -152,6 +152,9 @@ for ((i = 0; i < 3; i++))
  	{
  		for ((k = 0; k < 2; k++))
  		{
+			if [ $i -eq $LONG_DIR -a $k -eq 1024 ]; then
+				continue
+			fi
  			ext4_run_case 65537 ${DIR_LEN[$k]} ${PARENT_DIR[$j]} \
  					${BLOCK_SIZE[$i]}
  			if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +13 -9
index 27cbb5f..b479c8f 100755
@@ -40,8 +40,8 @@ LARGE=3
  # filesystem free size in bytes: blocks_size * free_blocks
  filesystem_free_size()
  {
-	bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2 }'`
-	blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2 }'`
+	bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk '{ print $2 }'`
+	blocks=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'| awk '{ print $2 }'`
 
  	echo $bsize * $blocks
  }
@@ -61,9 +61,9 @@ age_filesystem()
  		}
  	elif [ $1 -eq $LARGE ]; then
  		rm -rf mnt_point/*
-		bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size'`
+		bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size'`
  		bsize=`echo $bsize | awk '{ print $3 }'`
-		bcount=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'`
+		bcount=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'`
  		bcount=`echo $bcount | awk '{ print $3 }'`
  		dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount
  	else
@@ -80,7 +80,9 @@ age_filesystem()
  # $4: age filesystem: $EMPTY, $SMALL, $LARGE
  ext4_test_uninit_groups()
  {
-	mkfs.ext4 -I 256 -m 0 $EXT4_DEV > /dev/null
+	echo "Test $TST_COUNT" >> $LTPROOT/output/ext4_uninit_groups_result.txt
+
+	mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "failed to create ext4 filesystem"
  		return 1
@@ -92,10 +94,10 @@ ext4_test_uninit_groups()
  		flag=$3
  	fi
 
-	tune2fs -E test_fs -O extents,uninit_groups,$flag $EXT4_DEV
+	tune2fs -O extents,uninit_groups,$flag $EXT4_DEV &> /dev/null
 
  	# Must run fsck after setting uninit_groups
-	fsck -p $EXT4_DEV > /dev/null
+	fsck -p $EXT4_DEV &> /dev/null
 
  	mount -t ext4 -o $1,$2 $EXT4_DEV mnt_point
  	if [ $? -ne 0 ]; then
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()
  		return 1
  	fi
 
-	age_filesystem $4
+	age_filesystem $4 >> $LTPROOT/output/ext4_uninit_groups_result.txt 2>&1
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "age filesystem failed"
  		umount mnt_point
@@ -116,7 +118,7 @@ ext4_test_uninit_groups()
  		return 1
  	fi
 
-	fsck -p $EXT4_DEV
+	fsck -p $EXT4_DEV &> /dev/null
  	if [ $? -ne 0 ]; then
  		tst_resm TFAIL "fsck returned failure"
  		return 1
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 
  RET=0
 
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
  for ((i = 0; i < 2; i++))
  {
  	for ((j = 0; j < 2; j++))
Signature · 12 lines
1.6.5.2


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
author
#18 lore raw

Hi, Subrata

The attached file is the test result of ext4 new features on my x86_64 box.

Regards
Miao

Quoted 598 lines · Miao Xie

Hi, Subrata

I'm sorry. There is something wrong in the patch that I sent on 2009-11-26. So I made a new patch to instead of it.

And Subrata, I didn't find these failure about online defrag on my box.
The attached patch opens the verbose mode of e4defrag to get more information later, it is useful to find the problem of online defrag. So, Could you test it again and send the output info to me?

This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag
-- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

---
 testcases/kernel/fs/ext4-new-features/Makefile     |   20 ++++++++++----
 testcases/kernel/fs/ext4-new-features/README       |    7 +----
 .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |   15 ++++------
 .../ext4-inode-version/ext4_get_inode_version.sh   |    2 +-
 .../ext4-inode-version/ext4_inode_version_test.sh  |   10 +++----
 .../ext4-journal-checksum/ext4_journal_checksum.sh |   12 ++++----
 .../ext4_nsec_timestamps_test.sh                   |    8 ++---
 .../ext4-online-defrag/ext4_online_defrag_test.sh  |   28 
++++++++++++-------
 .../ext4_persist_prealloc_test.sh                  |    4 +-
 .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |   17 +++++++-----
 .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |   22 +++++++++------
 11 files changed, 78 insertions(+), 67 deletions(-)
testcases/kernel/fs/ext4-new-features/Makefile +14 -6
index 0e09dd6..208b8a6 100644
@@ -22,17 +22,25 @@ top_srcdir              ?= ../../../..
 
 include $(top_srcdir)/include/mk/env_pre.mk
 
-INSTALL_TARGETS        := *.sh
-INSTALL_TARGETS        := ext4-test-config
-INSTALL_TARGETS        := ffsb-6.0-rc2/ffsb
+INSTALL_TARGETS        += ffsb
+INSTALL_TARGETS        += run_ext4_test.sh
+INSTALL_TARGETS        += ext4_funcs.sh
+INSTALL_TARGETS        += ext4-test-config
 
-FILTER_OUT_DIRS        := ffsb-6.0-rc2
+FFSBDIR            := ffsb-6.0-rc2
+FILTER_OUT_DIRS        := $(FFSBDIR)
+FFSB            := $(FFSBDIR)/ffsb
 
-trunk-all: ffsb-6.0-rc2
+$(FFSB): $(FFSBDIR)
+    $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
+    cp $(FFSBDIR)/ffsb ffsb
+
+trunk-all: $(FFSB)
 
 trunk-clean:: | ffsb-clean
 
-ffsb-clean:: ffsb-6.0-rc2
+ffsb-clean:: $(FFSBDIR)
     $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
+    rm -rf ffsb
 
 include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/kernel/fs/ext4-new-features/README +0 -0
index 0ea0460..bda16e5 100644
@@ -9,7 +9,7 @@ with increasing disk capacities and state-of-the-art 

feature requirements. More
extensive information of ext4 can be found at the ext4 wiki site at the
URL:
http://ext4.wiki.kernel.org

-There are total 119 testcases for ext4 new features test that have been added.
+There are total 117 testcases for ext4 new features test that have been added.
Now, these testcases can test multi-block alloc/delayed alloc, inode
version
field on disk, journal checksumming, nanosec timestamps, online defrag,
persist
prealloc, subdirectory limit and uninit groups of ext4.

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -111,11 +111,6 @@ Directory containing the shell script which is used 

to test subdirectory limit
of ext4. According to the kernel documentation, we create more than 32000 subdirectorys on the ext4 filesystem.

testcases/kernel/fs/ext4-new-features/README +0 -2
-But, when then block size is small, such as 1024, and the name of every
-subdirectory is very long, such as every name is 255 bytes, we can just 

create
-less than 20000 subdirectory. In this test suite, there is two FAIL cases by

testcases/kernel/fs/ext4-new-features/README +0 -2
-reason of it.
-
 ext4-uninit-groups
 ------------------
 Directory containing the shell script which is used to test 

uninitialized groups

testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +0 -0

index ec2f389..be7b074 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh

+++
b/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh

testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +3 -6
@@ -37,14 +37,12 @@ read_config $1
 # Case 17: mount ext4 partition to ext3
 ext4_test_remount()
 {
-    mkfs.ext3 -I 256 -b 1024 $EXT4_DEV > /dev/null
+    mkfs.ext3 -I 256 -b 1024 $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
     fi
 
-    tune2fs -E test_fs $EXT4_DEV
-
     mount -t ext4 -o delalloc,auto_da_alloc $EXT4_DEV mnt_point
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to mount ext4 filesystem"
@@ -71,7 +69,7 @@ ext4_test_remount()
     fi
     umount mnt_point
 
-    fsck -p $EXT4_DEV
+    fsck -p $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "fsck returned failure"
         return 1
@@ -87,16 +85,15 @@ ext4_test_remount()
 # $4: auto_da_alloc
 ext4_test_delalloc_mballoc()
 {
-    tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-        isAuto_da_alloc: $4"
+    tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, 

isAuto_da_alloc: $4"

testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh +3 -3
-    mkfs.ext4 -I 256 -b $3 /$EXT4_DEV > /dev/null
+    mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
     fi
 
-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV &> /dev/null
 
     mount -t ext4 -o $1,$4 $EXT4_DEV mnt_point
     if [ $? -ne 0 ]; then
@@ -117,7 +114,7 @@ ext4_test_delalloc_mballoc()
         return 1
     fi
 
-    fsck -p $EXT4_DEV
+    fsck -p $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "fsck returned failure"
         return 1
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +0 -0

index 8f5c907..0e7a8b6 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh

+++
b/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh +1 -1
@@ -24,7 +24,7 @@
 #$2: 1  - return inode version by return value
 #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep 
 'Version' | awk '{
 print $NF }'`
 

# The inode_version's format: '0x0000000a' or '0x00000000:0000000a',

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +0 -0

index f27248b..4a58b36 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh

+++
b/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +3 -3
@@ -41,13 +41,13 @@ ext4_test_128_inode_version()
 {
     tst_resm TINFO "Test inode version is 32 bits with 128 inode size"
 
-    mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+    mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
     fi
 
-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV &> /dev/null
 
     mount -t ext4 -o i_version $EXT4_DEV mnt_point
     if [ $? -ne 0 ]; then
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()
     fi
 
     # inode version is 32 bits: 0x00000000
-    version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+    version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep 

'Version'`

     version=`echo $version | awk '{ print $NF }'`
     version=`echo $version | sed 's/^0x//'`
     len=${#version}
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +1 -3
@@ -91,14 +91,12 @@ ext4_test_128_inode_version()
 # $1: file operation
 test_inode_version()
 {
-    mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+    mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
     fi
 
-    tune2fs -E test_fs $EXT4_DEV > /dev/null
-
     mount -t ext4 -o i_version $EXT4_DEV mnt_point
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +0 -0

index 550afa1..eb72b5d 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh

+++
b/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh

testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +5 -5
@@ -59,17 +59,17 @@ ext4_test_journal_checksum()
         async_commit="Used"
     fi
 
-    tst_resm TINFO "journal mode: $1, commit interval: $2, \
-        journal_checksum: $checksum, \
-        journal_async_commit: $async_commit, barrier: $5"
+    tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+        "journal_checksum: $checksum, " \
+        "journal_async_commit: $async_commit, barrier: $5"
 
-    mkfs.ext4 -I 256 $EXT4_DEV > /dev/null
+    mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
     fi
 
-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV &> /dev/null
 
     mount -t ext4 -o data=$1,commit=$2,$3,$4,barrier=$5 $EXT4_DEV 

mnt_point

     if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh +1 -1
@@ -90,7 +90,7 @@ ext4_test_journal_checksum()
         return 1
     fi
 
-    e2fsck -p $EXT4_DEV
+    e2fsck -p $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "fsck returned failure"
         return 1
testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh +0 -0

index ced6576..cc00507 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

testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh +3 -5
@@ -41,13 +41,13 @@ ext4_test_sec_timestamps()
 {
     tst_resm TINFO "Test timestamps with 128 inode size"
 
-    mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+    mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
     fi
 
-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV &> /dev/null
 
     mount -t ext4 $EXT4_DEV mnt_point
     if [ $? -ne 0 ]; then
@@ -82,14 +82,12 @@ ext4_test_nsec_timestamps()
 {
     tst_resm TINFO "Test timestamps with 256 inode size"
 
-    mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+    mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
     fi
 
-    tune2fs -E test_fs $EXT4_DEV
-
     mount -t ext4 $EXT4_DEV mnt_point
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to mount ext4 filesystem"
testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +0 -0

index 84613c8..7b4dda3 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh

+++
b/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh

testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +13 -8
@@ -94,23 +94,23 @@ my_e4defrag()
 {
     if [ $1 -eq $FILE ]; then
         if [ $2 -eq $SMALL ]; then
-            ./e4defrag mnt_point/data0/
+            ./e4defrag -v mnt_point/data0/
             return $?
         # EMPTY or LARGE
         else
-            ./e4defrag mnt_point/tmp_file
+            ./e4defrag -v mnt_point/tmp_file
             return $?
         fi
     elif [ $1 -eq $DIR ]; then
         if [ $2 -eq $SMALL ]; then
-            ./e4defrag mnt_point/data0/
+            ./e4defrag -v mnt_point/data0/
             return $?
         else
-            ./e4defrag mnt_point/tmp_dir
+            ./e4defrag -v mnt_point/tmp_dir
             return $?
         fi
     else
-        ./e4defrag $EXT4_DEV
+        ./e4defrag -v $EXT4_DEV
         return $?
     fi
 }
@@ -121,15 +121,20 @@ my_e4defrag()
 # $3: block size
 ext4_test_online_defrag()
 {
+    echo Test $TST_COUNT start >> \
+         $LTPROOT/output/ext4_online_defrag_result.txt
+
     tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"
 
-    mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV > /dev/null
+    mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV >> \
+        $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
     fi
 
-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV >> \
+         $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
 
     mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point
     if [ $? -ne 0 ]; then
@@ -137,7 +142,7 @@ ext4_test_online_defrag()
         return 1
     fi
 
-    age_filesystem $2 $1
+    age_filesystem $2 $1 >> 

$LTPROOT/output/ext4_online_defrag_result.txt 2>&1

my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt if [ $? -ne 0 ]; then

testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +2 -2
@@ -152,18 +157,21 @@ ext4_test_online_defrag()
         return 1
     fi
 
-    e2fsck -p $EXT4_DEV
+    e2fsck -p $EXT4_DEV >> \
+         $LTPROOT/output/ext4_online_defrag_result.txt 2>&1
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "fsck returned failure"
         return 1
     fi
 
-    tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, 

Aging: $2, block size: $3)"

testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh +3 -0
+    tst_resm TPASS "ext4 online defrag test pass"
 }
 
 # main
 ext4_setup
 
+rm -f $LTPROOT/output/ext4_online_defrag_result.txt
+
 DEFRAG=( $FILE $DIR $FILESYSTEM )
 AGING=( $EMPTY $SMALL $LARGE )
 BLOCK_SIZE=( 1024 4096 )
testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh +0 -0

index 0d293e8..e895d25 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh

+++
b/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh

testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh +2 -2
@@ -43,7 +43,7 @@ export TDIRECTORY=$PWD/mnt_point/
 # $1: 1024 or 4096
 ext4_test_persist_prealloc()
 {
-    mkfs.ext4 -I 256 -b $1 $EXT4_DEV > /dev/null
+    mkfs.ext4 -I 256 -b $1 $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
@@ -81,7 +81,7 @@ ext4_test_persist_prealloc()
         return 1
     fi
 
-    e2fsck -p $EXT4_DEV
+    e2fsck -p $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "fsck returned failure"
         return 1
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +0 -0

index 42c4336..5631fe5 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh

+++
b/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +5 -5
@@ -28,7 +28,7 @@ cd $LTPROOT/testcases/bin
 . ./ext4_funcs.sh
 
 export TCID="ext4-subdir-limit"
-export TST_TOTAL=12
+export TST_TOTAL=10
 export TST_COUNT=1
 
 # $1: the test config
@@ -59,20 +59,20 @@ ext4_run_case()
         dir_name_len="long name"
     fi
 
-    tst_resm TINFO "Num of dirs to create: $1, Dir name len: 
 $dir_name_len \
-            Parent dir: $3, Block size: $4"
+    tst_resm TINFO "Num of dirs to create: $1, Dir name len: 
 $dir_name_len, " \
+            "Parent dir: $3, Block size: $4"
 
     # only mkfs if block size has been changed,
     # or previous case failed
     if [ $prev_result -ne $PASS -o $4 -ne $prev_block_size ]; then
-        mkfs.ext4 -b $4 -I 256 $EXT4_DEV > /dev/null
+        mkfs.ext4 -b $4 -I 256 $EXT4_DEV &> /dev/null
         if [ $? -ne 0 ]; then
             tst_resm TFAIL "failed to create ext4 filesystem"
             return 1
         fi
         prev_block_size=$4
 
-        tune2fs -E test_fs -O extents $EXT4_DEV
+        tune2fs -O extents $EXT4_DEV &> /dev/null
     fi

prev_result=$FAIL

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +2 -2
@@ -120,14 +120,14 @@ ext4_run_case()
     fi
 
     # run fsck to make sure the filesystem has no errors
-    e2fsck -p $EXT4_DEV
+    e2fsck -p $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "fsck: the filesystem has errors"
         return 1
     fi
 
     # check dir_nlink is set
-    dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+    dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | 

grep -q dir_nlink
if [ $? -ne 0 ]; then
tst_resm TFAIL "feature dir_nlink is not set" return 1

testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +3 -0
@@ -152,6 +152,9 @@ for ((i = 0; i < 3; i++))
     {
         for ((k = 0; k < 2; k++))
         {
+            if [ $i -eq $LONG_DIR -a $k -eq 1024 ]; then
+                continue
+            fi
             ext4_run_case 65537 ${DIR_LEN[$k]} ${PARENT_DIR[$j]} \
                     ${BLOCK_SIZE[$i]}
             if [ $? -ne 0 ]; then
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +0 -0

index 27cbb5f..b479c8f 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh

+++
b/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +1 -2
@@ -40,8 +40,8 @@ LARGE=3
 # filesystem free size in bytes: blocks_size * free_blocks
 filesystem_free_size()
 {
-    bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2 }'`
-    blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2 
 }'`
+    bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk 

'{ print $2 }'`
+ blocks=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'|
awk '{ print $2 }'`

echo $bsize * $blocks
}

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +3 -3
@@ -61,9 +61,9 @@ age_filesystem()
         }
     elif [ $1 -eq $LARGE ]; then
         rm -rf mnt_point/*
-        bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size'`
+        bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size'`
         bsize=`echo $bsize | awk '{ print $3 }'`
-        bcount=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'`
+        bcount=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'`
         bcount=`echo $bcount | awk '{ print $3 }'`
         dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount
     else
@@ -80,7 +80,9 @@ age_filesystem()
 # $4: age filesystem: $EMPTY, $SMALL, $LARGE
 ext4_test_uninit_groups()
 {
-    mkfs.ext4 -I 256 -m 0 $EXT4_DEV > /dev/null
+    echo "Test $TST_COUNT" >> 

$LTPROOT/output/ext4_uninit_groups_result.txt

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +5 -3
+
+    mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "failed to create ext4 filesystem"
         return 1
@@ -92,10 +94,10 @@ ext4_test_uninit_groups()
         flag=$3
     fi
 
-    tune2fs -E test_fs -O extents,uninit_groups,$flag $EXT4_DEV
+    tune2fs -O extents,uninit_groups,$flag $EXT4_DEV &> /dev/null
 
     # Must run fsck after setting uninit_groups
-    fsck -p $EXT4_DEV > /dev/null
+    fsck -p $EXT4_DEV &> /dev/null
 
     mount -t ext4 -o $1,$2 $EXT4_DEV mnt_point
     if [ $? -ne 0 ]; then
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()
         return 1
     fi
 
-    age_filesystem $4
+    age_filesystem $4 >> $LTPROOT/output/ext4_uninit_groups_result.txt 

2>&1
if [ $? -ne 0 ]; then
tst_resm TFAIL "age filesystem failed"
umount mnt_point

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +1 -1
@@ -116,7 +118,7 @@ ext4_test_uninit_groups()
         return 1
     fi
 
-    fsck -p $EXT4_DEV
+    fsck -p $EXT4_DEV &> /dev/null
     if [ $? -ne 0 ]; then
         tst_resm TFAIL "fsck returned failure"
         return 1

testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh AGING=( $EMPTY $SMALL $LARGE ) · line 144

Quoted 8 lines
testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh +2 -0
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 
 RET=0
 
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
 for ((i = 0; i < 2; i++))
 {
     for ((j = 0; j < 2; j++))

INFO: creating /opt/ltp/results directory
If some fields are empty or look unusual you may have an old version. Compare to the current minimal requirements in Documentation/Changes.

Fedora release 12 (Constantine)
Fedora release 12 (Constantine)
Fedora release 12 (Constantine)
Linux miao 2.6.32-rc8 #1 SMP Thu Nov 26 12:10:41 CST 2009 x86_64 x86_64 x86_64 GNU/Linux

Gnu C                  gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7)
Gnu make               3.81
util-linux             ng 2.16)
mount                  ng 2.16 (with libblkid and selinux support)
modutils               3.9
e2fsprogs              1.41.9
PPP                    2.4.4
Linux C Library        > libc.2.11
Dynamic linker (ldd)   2.11
Procps                 3.2.8
Net-tools              1.60
iproute2              iproute2-ss090324
Kbd                    1.15
Sh-utils               7.6
Modules Loaded         fuse sunrpc ip6t_REJECT nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6 cpufreq_ondemand acpi_cpufreq freq_table dm_multipath uinput snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep sky2 snd_seq snd_seq_device snd_pcm snd_timer i2c_i801 iTCO_wdt iTCO_vendor_support snd ppdev parport_pc parport pcspkr soundcore snd_page_alloc ata_generic pata_acpi i915 drm_kms_helper drm i2c_algo_bit i2c_core video output

free reports:
total used free shared buffers cached

Mem:       2048800     924576    1124224          0      61216     364884
-/+ buffers/cache:     498476    1550324

Swap: 0 0 0

/proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz
stepping : 6
cpu MHz : 1603.000
cache size : 3072 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm
bogomips : 5320.39
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz
stepping : 6
cpu MHz : 1603.000
cache size : 3072 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm
bogomips : 5319.71
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

remove test cases which require the block device.
You can specify it with option -b
COMMAND: /opt/ltp/bin/ltp-pan -e -S -a 10841 -n 10841 -p -f /tmp/ltp-7a0EmLzrtP/alltests -l /opt/ltp/results/LTP_RUN_ON-2009_11月_28-09h_35m_47s.log -C /opt/ltp/output/LTP_RUN_ON-2009_11月_28-09h_35m_47s.failed
LOG File: /opt/ltp/results/LTP_RUN_ON-2009_11月_28-09h_35m_47s.log FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-2009_11月_28-09h_35m_47s.failed Running tests.......
<<<test_start>>>
tag=ext4_new_feature_test stime=1259372147 cmdline="run_ext4_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
EXT4 NEW FEATURE TESTING
TEST STARTED: Please avoid using system while this test executes

Ext4 block allocation test

ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 0, Blocksize: 1024, isAuto_da_alloc: auto_da_alloc=1
ext4-delalloc-mballoc    1  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 0, Blocksize: 1024, isAuto_da_alloc: noauto_da_alloc
ext4-delalloc-mballoc    2  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 0, Blocksize: 1024, isAuto_da_alloc: auto_da_alloc=1
ext4-delalloc-mballoc    3  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 0, Blocksize: 1024, isAuto_da_alloc: noauto_da_alloc
ext4-delalloc-mballoc    4  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 1, Blocksize: 1024, isAuto_da_alloc: auto_da_alloc=1
ext4-delalloc-mballoc    5  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 1, Blocksize: 1024, isAuto_da_alloc: noauto_da_alloc
ext4-delalloc-mballoc    6  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 1, Blocksize: 1024, isAuto_da_alloc: auto_da_alloc=1
ext4-delalloc-mballoc    7  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 1, Blocksize: 1024, isAuto_da_alloc: noauto_da_alloc
ext4-delalloc-mballoc    8  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 0, Blocksize: 4096, isAuto_da_alloc: auto_da_alloc=1
ext4-delalloc-mballoc    9  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 0, Blocksize: 4096, isAuto_da_alloc: noauto_da_alloc
ext4-delalloc-mballoc   10  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 0, Blocksize: 4096, isAuto_da_alloc: auto_da_alloc=1
ext4-delalloc-mballoc   11  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 0, Blocksize: 4096, isAuto_da_alloc: noauto_da_alloc
ext4-delalloc-mballoc   12  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 1, Blocksize: 4096, isAuto_da_alloc: auto_da_alloc=1
ext4-delalloc-mballoc   13  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 1, Blocksize: 4096, isAuto_da_alloc: noauto_da_alloc
ext4-delalloc-mballoc   14  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 1, Blocksize: 4096, isAuto_da_alloc: auto_da_alloc=1
ext4-delalloc-mballoc   15  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 1, Blocksize: 4096, isAuto_da_alloc: noauto_da_alloc
ext4-delalloc-mballoc   16  TPASS  :  delalloc/mballoc test pass
ext4-delalloc-mballoc   17  TPASS  :  remount test pass

Ext4 journal checksum test

ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 1, 
ext4-journal-checksum    1  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 1, 
ext4-journal-checksum    2  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 1, 
ext4-journal-checksum    3  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 100, 
ext4-journal-checksum    4  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 100, 
ext4-journal-checksum    5  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 100, 
ext4-journal-checksum    6  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 1, 
ext4-journal-checksum    7  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 1, 
ext4-journal-checksum    8  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 1, 
ext4-journal-checksum    9  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 100, 
ext4-journal-checksum   10  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 100, 
ext4-journal-checksum   11  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 100, 
ext4-journal-checksum   12  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 1, 
ext4-journal-checksum   13  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 1, 
ext4-journal-checksum   14  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 1, 
ext4-journal-checksum   15  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 100, 
ext4-journal-checksum   16  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 100, 
ext4-journal-checksum   17  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 100, 
ext4-journal-checksum   18  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 1, 
ext4-journal-checksum   19  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 1, 
ext4-journal-checksum   20  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 1, 
ext4-journal-checksum   21  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 100, 
ext4-journal-checksum   22  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 100, 
ext4-journal-checksum   23  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 100, 
ext4-journal-checksum   24  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 1, 
ext4-journal-checksum   25  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 1, 
ext4-journal-checksum   26  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 1, 
ext4-journal-checksum   27  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 100, 
ext4-journal-checksum   28  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 100, 
ext4-journal-checksum   29  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 100, 
ext4-journal-checksum   30  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 1, 
ext4-journal-checksum   31  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 1, 
ext4-journal-checksum   32  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 1, 
ext4-journal-checksum   33  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit interval: 100, 
ext4-journal-checksum   34  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit interval: 100, 
ext4-journal-checksum   35  TPASS  :  ext4 journal checksum test pass
ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit interval: 100, 
ext4-journal-checksum   36  TPASS  :  ext4 journal checksum test pass

Ext4 subdir limit test

ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: short name, 
ext4-subdir-limit    1  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: short name, 
ext4-subdir-limit    2  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: short name, 
ext4-subdir-limit    3  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: long name, 
ext4-subdir-limit    4  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: short name, 
ext4-subdir-limit    5  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: long name, 
ext4-subdir-limit    6  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: short name, 
ext4-subdir-limit    7  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: long name, 
ext4-subdir-limit    8  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: short name, 
ext4-subdir-limit    9  TPASS  :  ext4 subdir limit test pass
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name len: long name, 
ext4-subdir-limit   10  TPASS  :  ext4 subdir limit test pass

Ext4 nanosecond timestamp test

ext4-nsec-timestamps    0  TINFO  :  Test timestamps with 128 inode size
ext4-nsec-timestamps    1  TPASS  :  Ext4 nanosecond timestamps test with 128 inode size pass
ext4-nsec-timestamps    0  TINFO  :  Test timestamps with 256 inode size
ext4-nsec-timestamps    2  TPASS  :  Ext4 nanosecond timestamps test with 256 inode size pass

Ext4 persist prealloc test

ext4-persistent-preallocation    1  TPASS  :  ext4 persistent preallocation test pass
ext4-persistent-preallocation    2  TPASS  :  ext4 persistent preallocation test pass

Ext4 inode version test

ext4-inode-version    0  TINFO  :  Test inode version is 32 bits with 128 inode size
ext4-inode-version    1  TPASS  :  32 bits inode version with 128 inode size test pass
ext4-inode-version    2  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    3  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    4  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    5  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    6  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    7  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    8  TPASS  :  inode version with 256 inode size test pass

Ext4 uninit groups test

ext4-uninit-groups    1  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups    2  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups    3  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups    4  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups    5  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups    6  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups    7  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups    8  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups    9  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   10  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   11  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   12  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   13  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   14  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   15  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   16  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   17  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   18  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   19  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   20  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   21  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   22  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   23  TPASS  :  ext4 uninit groups test pass
ext4-uninit-groups   24  TPASS  :  ext4 uninit groups test pass

Ext4 online defrag test
The output of defrag program is in the file LTPROOT/output/ext4_online_defrag.txt

ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 1, block size: 1024
ext4-online-defrag    1  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 2, block size: 1024
 "/opt/ltp/testcases/bin/mnt_point/data0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
	File is not regular file
ext4-online-defrag    2  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 3, block size: 1024
ext4-online-defrag    3  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 1, block size: 1024
 "/opt/ltp/testcases/bin/mnt_point/tmp_dir"
	File is not regular file
ext4-online-defrag    4  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 2, block size: 1024
 "/opt/ltp/testcases/bin/mnt_point/data0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
	File is not regular file
ext4-online-defrag    5  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 3, block size: 1024
 "/opt/ltp/testcases/bin/mnt_point/tmp_dir"
	File is not regular file
ext4-online-defrag    6  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 1024
 "/opt/ltp/testcases/bin/mnt_point"
	File is not regular file
ext4-online-defrag    7  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 1024
 "/opt/ltp/testcases/bin/mnt_point"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data2"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data2/datadir0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/meta"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data3"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data3/datadir0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data4"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data4/fillfile1699"
	File size is 0
 "/opt/ltp/testcases/bin/mnt_point/data4/datadir0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data1"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data1/datadir0"
	File is not regular file
ext4-online-defrag    8  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 1024
 "/opt/ltp/testcases/bin/mnt_point"
	File is not regular file
ext4-online-defrag    9  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 1, block size: 4096
ext4-online-defrag   10  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 2, block size: 4096
 "/opt/ltp/testcases/bin/mnt_point/data0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
	File is not regular file
ext4-online-defrag   11  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 3, block size: 4096
ext4-online-defrag   12  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 1, block size: 4096
 "/opt/ltp/testcases/bin/mnt_point/tmp_dir"
	File is not regular file
ext4-online-defrag   13  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 2, block size: 4096
 "/opt/ltp/testcases/bin/mnt_point/data0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
	File is not regular file
ext4-online-defrag   14  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 3, block size: 4096
 "/opt/ltp/testcases/bin/mnt_point/tmp_dir"
	File is not regular file
ext4-online-defrag   15  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 4096
 "/opt/ltp/testcases/bin/mnt_point"
	File is not regular file
ext4-online-defrag   16  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 4096
 "/opt/ltp/testcases/bin/mnt_point"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data1"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data1/datadir0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data2"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data2/datadir0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data3"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data3/datadir0"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/meta"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data4"
	File is not regular file
 "/opt/ltp/testcases/bin/mnt_point/data4/datadir0"
	File is not regular file
ext4-online-defrag   17  TPASS  :  ext4 online defrag test pass
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 4096

"/opt/ltp/testcases/bin/mnt_point"
File is not regular file
ext4-online-defrag 18 TPASS : ext4 online defrag test pass
incrementing stop
<<<execution_status>>>
initiation_status="ok"
duration=39617 termination_type=exited termination_id=0 corefile=no cutime=12671 cstime=199642
<<<test_end>>>
INFO: ltp-pan reported all tests PASS
LTP Version: LTP-20091031

       ###############################################################"
        
            Done executing testcases."
            LTP Version:  LTP-20091031
       ###############################################################"

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#19 lore raw
Quoted 981 lines · Miao Xie

Hi, Subrata

The attached file is the test result of ext4 new features on my x86_64 box.

Regards
Miao

Quoted 601 lines · Miao Xie

Hi, Subrata

I'm sorry. There is something wrong in the patch that I sent on 2009-11-26. So
I made a new patch to instead of it.

And Subrata, I didn't find these failure about online defrag on my box. The attached patch opens the verbose mode of e4defrag to get more information later, it is
useful to find the problem of online defrag. So, Could you test it again and send the output
info to me?

This patch can fix the following problem:
-- delete the code of setting the test_fs flag
-- open the verbose mode of e4defrag, it is useful to find the problem of online defrag
-- fix some bug of the Makefile
-- throw the utilities version info away
-- delete two unnecessary testcases about ext4 subdir limit test

---
 testcases/kernel/fs/ext4-new-features/Makefile     |   20 ++++++++++---- testcases/kernel/fs/ext4-new-features/README       |    7 +---- .../ext4-delalloc-mballoc/ext4-alloc-test.sh       |   15 ++++------ .../ext4-inode-version/ext4_get_inode_version.sh   |    2 +- .../ext4-inode-version/ext4_inode_version_test.sh  |   10 +++---- .../ext4-journal-checksum/ext4_journal_checksum.sh |   12 ++++---- .../ext4_nsec_timestamps_test.sh                   |    8 ++--- .../ext4-online-defrag/ext4_online_defrag_test.sh  |   28
++++++++++++-------
 .../ext4_persist_prealloc_test.sh                  |    4 +- .../ext4-subdir-limit/ext4_subdir_limit_test.sh    |   17 +++++++----- .../ext4-uninit-groups/ext4_uninit_groups_test.sh  |   22 +++++++++------

 11 files changed, 78 insertions(+), 67 deletions(-)
testcases/kernel/fs/ext4-new-features/Makefile +0 -0
index 0e09dd6..208b8a6 100644
@@ -22,17 +22,25 @@ top_srcdir              ?= ../../../..
 

 include $(top_srcdir)/include/mk/env_pre.mk

testcases/kernel/fs/ext4-new-features/Makefile +12 -5
-INSTALL_TARGETS        := *.sh
-INSTALL_TARGETS        := ext4-test-config
-INSTALL_TARGETS        := ffsb-6.0-rc2/ffsb
+INSTALL_TARGETS        += ffsb
+INSTALL_TARGETS        += run_ext4_test.sh
+INSTALL_TARGETS        += ext4_funcs.sh
+INSTALL_TARGETS        += ext4-test-config
 
-FILTER_OUT_DIRS        := ffsb-6.0-rc2
+FFSBDIR            := ffsb-6.0-rc2
+FILTER_OUT_DIRS        := $(FFSBDIR)
+FFSB            := $(FFSBDIR)/ffsb
 
-trunk-all: ffsb-6.0-rc2
+$(FFSB): $(FFSBDIR)
+    $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all
+    cp $(FFSBDIR)/ffsb ffsb
+
+trunk-all: $(FFSB)

 trunk-clean:: | ffsb-clean

testcases/kernel/fs/ext4-new-features/Makefile +1 -1
-ffsb-clean:: ffsb-6.0-rc2
+ffsb-clean:: $(FFSBDIR)

    $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
+    rm -rf ffsb

 include $(top_srcdir)/include/mk/generic_trunk_target.mk

testcases/kernel/fs/ext4-new-features/README +0 -0
index 0ea0460..bda16e5 100644
@@ -9,7 +9,7 @@ with increasing disk capacities and state-of-the-art

feature requirements. More
 extensive information of ext4 can be found at the ext4 wiki site at the URL:
 http://ext4.wiki.kernel.org

-There are total 119 testcases for ext4 new features test that have been added.
+There are total 117 testcases for ext4 new features test that have been added.
 Now, these testcases can test multi-block alloc/delayed alloc, inode version
 field on disk, journal checksumming, nanosec timestamps, online defrag, persist
 prealloc, subdirectory limit and uninit groups of ext4.

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -111,11 +111,6 @@ Directory containing the shell script which is used

to test subdirectory limit
 of ext4. According to the kernel documentation, we create more than 32000 subdirectorys on the ext4 filesystem.

testcases/kernel/fs/ext4-new-features/README +0 -2
-But, when then block size is small, such as 1024, and the name of every
-subdirectory is very long, such as every name is 255 bytes, we can just

create
-less than 20000 subdirectory. In this test suite, there is two FAIL cases by

testcases/kernel/fs/ext4-new-features/README +0 -2
-reason of it.
-

 ext4-uninit-groups
 ------------------
 Directory containing the shell script which is used to test uninitialized groups
diff --git a/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh b/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh index ec2f389..be7b074 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh
+++
b/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh

testcases/kernel/fs/ext4-new-features/README +1 -1
@@ -37,14 +37,12 @@ read_config $1
  # Case 17: mount ext4 partition to ext3
  ext4_test_remount()
  {
-    mkfs.ext3 -I 256 -b 1024 $EXT4_DEV > /dev/null
+    mkfs.ext3 -I 256 -b 1024 $EXT4_DEV &> /dev/null

    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1
    fi

-    tune2fs -E test_fs $EXT4_DEV
-
    mount -t ext4 -o delalloc,auto_da_alloc $EXT4_DEV mnt_point if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to mount ext4 filesystem"

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -71,7 +69,7 @@ ext4_test_remount()

    fi
    umount mnt_point

-    fsck -p $EXT4_DEV
+    fsck -p $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "fsck returned failure"
        return 1

testcases/kernel/fs/ext4-new-features/README +1 -2
@@ -87,16 +85,15 @@ ext4_test_remount()
  # $4: auto_da_alloc
  ext4_test_delalloc_mballoc()
  {
-    tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3, \
-        isAuto_da_alloc: $4"
+    tst_resm TINFO "isDelalloc: $1, isDirectIO: $2, Blocksize: $3,

isAuto_da_alloc: $4"

-    mkfs.ext4 -I 256 -b $3 /$EXT4_DEV > /dev/null
+    mkfs.ext4 -I 256 -b $3 /$EXT4_DEV &> /dev/null if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1
    fi

-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV &> /dev/null

    mount -t ext4 -o $1,$4 $EXT4_DEV mnt_point
    if [ $? -ne 0 ]; then

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -117,7 +114,7 @@ ext4_test_delalloc_mballoc()

        return 1
    fi

-    fsck -p $EXT4_DEV
+    fsck -p $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "fsck returned failure"
        return 1
diff --git a/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh b/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh index 8f5c907..0e7a8b6 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh
+++
b/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh

testcases/kernel/fs/ext4-new-features/README +1 -1
@@ -24,7 +24,7 @@
  #$2: 1  - return inode version by return value
  #    !1 - writting inode version to stddev
 
-inode_version=`debugfs -R "stat $1" $EXT4_DEV | grep 'Version' | awk '{
+inode_version=`debugfs -R "stat $1" $EXT4_DEV 2> /dev/null | grep
 'Version' | awk '{

 print $NF }'`

 # The inode_version's format: '0x0000000a' or '0x00000000:0000000a', diff --git a/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh b/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh index f27248b..4a58b36 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh
+++
b/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -41,13 +41,13 @@ ext4_test_128_inode_version()
  {

    tst_resm TINFO "Test inode version is 32 bits with 128 inode size"

-    mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+    mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1
    fi

-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV &> /dev/null

    mount -t ext4 -o i_version $EXT4_DEV mnt_point if [ $? -ne 0 ]; then

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -67,7 +67,7 @@ ext4_test_128_inode_version()

    fi

    # inode version is 32 bits: 0x00000000
-    version=`debugfs $EXT4_DEV -R "stat tmp_file" | grep 'Version'`
+    version=`debugfs $EXT4_DEV -R "stat tmp_file" 2> /dev/null | grep
'Version'`
    version=`echo $version | awk '{ print $NF }'`
    version=`echo $version | sed 's/^0x//'`
    len=${#version}
testcases/kernel/fs/ext4-new-features/README +1 -1
@@ -91,14 +91,12 @@ ext4_test_128_inode_version()
  # $1: file operation
  test_inode_version()
  {
-    mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+    mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null

    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1
    fi

-    tune2fs -E test_fs $EXT4_DEV > /dev/null
-
    mount -t ext4 -o i_version $EXT4_DEV mnt_point
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to mount ext4 filesystem"
diff --git a/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh b/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh index 550afa1..eb72b5d 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh
+++
b/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -59,17 +59,17 @@ ext4_test_journal_checksum()

        async_commit="Used"
    fi

-    tst_resm TINFO "journal mode: $1, commit interval: $2, \
-        journal_checksum: $checksum, \
-        journal_async_commit: $async_commit, barrier: $5"
+    tst_resm TINFO "journal mode: $1, commit interval: $2, " \
+        "journal_checksum: $checksum, " \
+        "journal_async_commit: $async_commit, barrier: $5"

-    mkfs.ext4 -I 256 $EXT4_DEV > /dev/null
+    mkfs.ext4 -I 256 $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1
    fi

-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV &> /dev/null

    mount -t ext4 -o data=$1,commit=$2,$3,$4,barrier=$5 $EXT4_DEV mnt_point
    if [ $? -ne 0 ]; then

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -90,7 +90,7 @@ ext4_test_journal_checksum()

        return 1
    fi

-    e2fsck -p $EXT4_DEV
+    e2fsck -p $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "fsck returned failure"
        return 1
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 ced6576..cc00507 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

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -41,13 +41,13 @@ ext4_test_sec_timestamps()
  {

    tst_resm TINFO "Test timestamps with 128 inode size"

-    mkfs.ext4 -I 128 $EXT4_DEV > /dev/null
+    mkfs.ext4 -I 128 $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1
    fi

-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV &> /dev/null

    mount -t ext4 $EXT4_DEV mnt_point
    if [ $? -ne 0 ]; then

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -82,14 +82,12 @@ ext4_test_nsec_timestamps()
  {

    tst_resm TINFO "Test timestamps with 256 inode size"

-    mkfs.ext3 -I 256 $EXT4_DEV > /dev/null
+    mkfs.ext3 -I 256 $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1
    fi

-    tune2fs -E test_fs $EXT4_DEV
-
    mount -t ext4 $EXT4_DEV mnt_point
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to mount ext4 filesystem"
diff --git a/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh b/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh index 84613c8..7b4dda3 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh
+++
b/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -94,23 +94,23 @@ my_e4defrag()
  {

    if [ $1 -eq $FILE ]; then
        if [ $2 -eq $SMALL ]; then
-            ./e4defrag mnt_point/data0/
+            ./e4defrag -v mnt_point/data0/
            return $?
        # EMPTY or LARGE
        else
-            ./e4defrag mnt_point/tmp_file
+            ./e4defrag -v mnt_point/tmp_file
            return $?
        fi
    elif [ $1 -eq $DIR ]; then
        if [ $2 -eq $SMALL ]; then
-            ./e4defrag mnt_point/data0/
+            ./e4defrag -v mnt_point/data0/
            return $?
        else
-            ./e4defrag mnt_point/tmp_dir
+            ./e4defrag -v mnt_point/tmp_dir
            return $?
        fi
    else
-        ./e4defrag $EXT4_DEV
+        ./e4defrag -v $EXT4_DEV
        return $?
    fi
 }

testcases/kernel/fs/ext4-new-features/README +3 -0
@@ -121,15 +121,20 @@ my_e4defrag()
  # $3: block size
  ext4_test_online_defrag()
  {
+    echo Test $TST_COUNT start >> \
+         $LTPROOT/output/ext4_online_defrag_result.txt
+

    tst_resm TINFO "defrag type: $1, defrag obj: $2, block size: $3"

-    mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV > /dev/null
+    mkfs.ext4 -m 0 -b $3 -O ^flex_bg $EXT4_DEV >> \
+        $LTPROOT/output/ext4_online_defrag_result.txt 2>&1 if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1
    fi

-    tune2fs -E test_fs -O extents $EXT4_DEV
+    tune2fs -O extents $EXT4_DEV >> \
+         $LTPROOT/output/ext4_online_defrag_result.txt 2>&1

    mount -t ext4 -o nodelalloc $EXT4_DEV mnt_point if [ $? -ne 0 ]; then

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -137,7 +142,7 @@ ext4_test_online_defrag()

        return 1
    fi

-    age_filesystem $2 $1
+    age_filesystem $2 $1 >> $LTPROOT/output/ext4_online_defrag_result.txt 2>&1

    my_e4defrag $1 $2 >> $LTPROOT/output/ext4_online_defrag_result.txt if [ $? -ne 0 ]; then

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -152,18 +157,21 @@ ext4_test_online_defrag()

        return 1
    fi

-    e2fsck -p $EXT4_DEV
+    e2fsck -p $EXT4_DEV >> \
+         $LTPROOT/output/ext4_online_defrag_result.txt 2>&1 if [ $? -ne 0 ]; then
        tst_resm TFAIL "fsck returned failure" return 1
    fi

-    tst_resm TPASS "ext4 online defrag test pass(defrag type: $1, Aging:
$2, block size: $3)"
+    tst_resm TPASS "ext4 online defrag test pass"
 }

 # main
 ext4_setup
testcases/kernel/fs/ext4-new-features/README +2 -0
+rm -f $LTPROOT/output/ext4_online_defrag_result.txt
+

 DEFRAG=( $FILE $DIR $FILESYSTEM )
 AGING=( $EMPTY $SMALL $LARGE )
 BLOCK_SIZE=( 1024 4096 )
diff --git a/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh b/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh index 0d293e8..e895d25 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh
+++
b/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh

testcases/kernel/fs/ext4-new-features/README +1 -1
@@ -43,7 +43,7 @@ export TDIRECTORY=$PWD/mnt_point/
  # $1: 1024 or 4096
  ext4_test_persist_prealloc()
  {
-    mkfs.ext4 -I 256 -b $1 $EXT4_DEV > /dev/null
+    mkfs.ext4 -I 256 -b $1 $EXT4_DEV &> /dev/null

    if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -81,7 +81,7 @@ ext4_test_persist_prealloc()

        return 1
    fi

-    e2fsck -p $EXT4_DEV
+    e2fsck -p $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "fsck returned failure"
        return 1
diff --git a/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh b/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh index 42c4336..5631fe5 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh
+++
b/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -28,7 +28,7 @@ cd $LTPROOT/testcases/bin

 . ./ext4_funcs.sh

 export TCID="ext4-subdir-limit"

testcases/kernel/fs/ext4-new-features/README +1 -1
-export TST_TOTAL=12
+export TST_TOTAL=10

 export TST_COUNT=1

 # $1: the test config

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -59,20 +59,20 @@ ext4_run_case()

        dir_name_len="long name"
    fi

-    tst_resm TINFO "Num of dirs to create: $1, Dir name len:
$dir_name_len \
-            Parent dir: $3, Block size: $4"
+    tst_resm TINFO "Num of dirs to create: $1, Dir name len:
$dir_name_len, " \
+            "Parent dir: $3, Block size: $4"

    # only mkfs if block size has been changed,
    # or previous case failed
    if [ $prev_result -ne $PASS -o $4 -ne $prev_block_size ]; then
-        mkfs.ext4 -b $4 -I 256 $EXT4_DEV > /dev/null
+        mkfs.ext4 -b $4 -I 256 $EXT4_DEV &> /dev/null
        if [ $? -ne 0 ]; then
            tst_resm TFAIL "failed to create ext4 filesystem"
            return 1
        fi
        prev_block_size=$4

-        tune2fs -E test_fs -O extents $EXT4_DEV
+        tune2fs -O extents $EXT4_DEV &> /dev/null fi

    prev_result=$FAIL

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -120,14 +120,14 @@ ext4_run_case()

    fi

    # run fsck to make sure the filesystem has no errors
-    e2fsck -p $EXT4_DEV
+    e2fsck -p $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "fsck: the filesystem has errors"
        return 1
    fi
    # check dir_nlink is set
-    dumpe2fs $EXT4_DEV | grep '^Filesystem features' | grep -q dir_nlink
+    dumpe2fs $EXT4_DEV 2> /dev/null | grep '^Filesystem features' | grep
-q dir_nlink
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "feature dir_nlink is not set"
        return 1
testcases/kernel/fs/ext4-new-features/README +3 -0
@@ -152,6 +152,9 @@ for ((i = 0; i < 3; i++))
     {
         for ((k = 0; k < 2; k++))
         {
+            if [ $i -eq $LONG_DIR -a $k -eq 1024 ]; then
+                continue
+            fi
             ext4_run_case 65537 ${DIR_LEN[$k]} ${PARENT_DIR[$j]} \
                     ${BLOCK_SIZE[$i]}

            if [ $? -ne 0 ]; then
diff --git a/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh b/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh index 27cbb5f..b479c8f 100755
---
a/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh
+++
b/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh

testcases/kernel/fs/ext4-new-features/README +1 -2
@@ -40,8 +40,8 @@ LARGE=3
  # filesystem free size in bytes: blocks_size * free_blocks
  filesystem_free_size()
  {
-    bsize=`dumpe2fs -h $EXT4_DEV | grep 'Block size' | awk '{ print $2
 }'`
-    blocks=`dumpe2fs -h $EXT4_DEV | grep 'Free blocks'| awk '{ print $2
 }'`
+    bsize=`dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' | awk

'{ print $2 }'`
+    blocks=dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks'| awk '{ print $2 }'

    echo $bsize * $blocks
 }

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -61,9 +61,9 @@ age_filesystem()
         }

    elif [ $1 -eq $LARGE ]; then
        rm -rf mnt_point/*
-        bsize=dumpe2fs -h $EXT4_DEV | grep 'Block size'
+        bsize=dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Block size' bsize=echo $bsize | awk '{ print $3 }'
-        bcount=dumpe2fs -h $EXT4_DEV | grep 'Free blocks'
+        bcount=dumpe2fs -h $EXT4_DEV 2> /dev/null | grep 'Free blocks' bcount=echo $bcount | awk '{ print $3 }'
        dd if=/dev/zero of=mnt_point/tmp_dir bs=$bsize count=$bcount else

testcases/kernel/fs/ext4-new-features/README +1 -1
@@ -80,7 +80,9 @@ age_filesystem()
  # $4: age filesystem: $EMPTY, $SMALL, $LARGE
  ext4_test_uninit_groups()
  {
-    mkfs.ext4 -I 256 -m 0 $EXT4_DEV > /dev/null
+    echo "Test $TST_COUNT" >>

$LTPROOT/output/ext4_uninit_groups_result.txt
+
+    mkfs.ext4 -I 256 -m 0 $EXT4_DEV &> /dev/null if [ $? -ne 0 ]; then
        tst_resm TFAIL "failed to create ext4 filesystem" return 1

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -92,10 +94,10 @@ ext4_test_uninit_groups()

        flag=$3
    fi

-    tune2fs -E test_fs -O extents,uninit_groups,$flag $EXT4_DEV
+    tune2fs -O extents,uninit_groups,$flag $EXT4_DEV &> /dev/null

    # Must run fsck after setting uninit_groups
-    fsck -p $EXT4_DEV > /dev/null
+    fsck -p $EXT4_DEV &> /dev/null

    mount -t ext4 -o $1,$2 $EXT4_DEV mnt_point
    if [ $? -ne 0 ]; then

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -103,7 +105,7 @@ ext4_test_uninit_groups()

        return 1
    fi

-    age_filesystem $4
+    age_filesystem $4 >> $LTPROOT/output/ext4_uninit_groups_result.txt 2>&1
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "age filesystem failed"
        umount mnt_point

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -116,7 +118,7 @@ ext4_test_uninit_groups()

        return 1
    fi

-    fsck -p $EXT4_DEV
+    fsck -p $EXT4_DEV &> /dev/null
    if [ $? -ne 0 ]; then
        tst_resm TFAIL "fsck returned failure"
        return 1

testcases/kernel/fs/ext4-new-features/README +0 -0
@@ -135,6 +137,8 @@ AGING=( $EMPTY $SMALL $LARGE )
 

 RET=0

testcases/kernel/fs/ext4-new-features/README +2 -0
+rm -f $LTPROOT/output/ext4_uninit_groups_result.txt
+
Quoted 3 lines

 for ((i = 0; i < 2; i++))
 {
    for ((j = 0; j < 2; j++))

INFO: creating /opt/ltp/results directory
If some fields are empty or look unusual you may have an old version. Compare to the current minimal requirements in Documentation/Changes.

Fedora release 12 (Constantine)
Fedora release 12 (Constantine)
Fedora release 12 (Constantine)
Linux miao 2.6.32-rc8 #1 SMP Thu Nov 26 12:10:41 CST 2009 x86_64 x86_64 x86_64 GNU/Linux

Gnu C                  gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7) Gnu make               3.81
util-linux             ng 2.16)
mount                  ng 2.16 (with libblkid and selinux support) modutils               3.9
e2fsprogs              1.41.9
PPP                    2.4.4
Linux C Library        > libc.2.11
Dynamic linker (ldd)   2.11
Procps                 3.2.8
Net-tools              1.60
iproute2              iproute2-ss090324
Kbd                    1.15
Sh-utils               7.6
Modules Loaded         fuse sunrpc ip6t_REJECT nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6 cpufreq_ondemand acpi_cpufreq freq_table dm_multipath uinput snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep sky2 snd_seq snd_seq_device snd_pcm snd_timer i2c_i801 iTCO_wdt iTCO_vendor_support snd ppdev parport_pc parport pcspkr soundcore snd_page_alloc ata_generic pata_acpi i915 drm_kms_helper drm i2c_algo_bit i2c_core video output

free reports:
            total       used       free     shared    buffers     cached
Mem:       2048800     924576    1124224          0      61216     364884 -/+ buffers/cache:     498476    1550324
Swap:            0          0          0

/proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     E7300  @ 2.66GHz stepping        : 6
cpu MHz         : 1603.000
cache size      : 3072 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm
bogomips        : 5320.39
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     E7300  @ 2.66GHz stepping        : 6
cpu MHz         : 1603.000
cache size      : 3072 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm
bogomips        : 5319.71
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

remove test cases which require the block device.
You can specify it with option -b
COMMAND:    /opt/ltp/bin/ltp-pan  -e -S   -a 10841     -n 10841  -p  -f /tmp/ltp-7a0EmLzrtP/alltests -l /opt/ltp/results/LTP_RUN_ON-2009_11月_28-09h_35m_47s.log  -C /opt/ltp/output/LTP_RUN_ON-2009_11月_28-09h_35m_47s.failed LOG File: /opt/ltp/results/LTP_RUN_ON-2009_11月_28-09h_35m_47s.log FAILED COMMAND File:
/opt/ltp/output/LTP_RUN_ON-2009_11月_28-09h_35m_47s.failed Running tests.......
<<<test_start>>>
tag=ext4_new_feature_test stime=1259372147 cmdline="run_ext4_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
EXT4 NEW FEATURE TESTING
TEST STARTED: Please avoid using system while this test executes

Ext4 block allocation test
ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 0,
Blocksize: 1024, isAuto_da_alloc: auto_da_alloc=1 ext4-delalloc-mballoc    1  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 0,
Blocksize: 1024, isAuto_da_alloc: noauto_da_alloc ext4-delalloc-mballoc    2  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 0,
Blocksize: 1024, isAuto_da_alloc: auto_da_alloc=1 ext4-delalloc-mballoc    3  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 0,
Blocksize: 1024, isAuto_da_alloc: noauto_da_alloc ext4-delalloc-mballoc    4  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 1,
Blocksize: 1024, isAuto_da_alloc: auto_da_alloc=1 ext4-delalloc-mballoc    5  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 1,
Blocksize: 1024, isAuto_da_alloc: noauto_da_alloc ext4-delalloc-mballoc    6  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 1,
Blocksize: 1024, isAuto_da_alloc: auto_da_alloc=1 ext4-delalloc-mballoc    7  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 1,
Blocksize: 1024, isAuto_da_alloc: noauto_da_alloc ext4-delalloc-mballoc    8  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 0,
Blocksize: 4096, isAuto_da_alloc: auto_da_alloc=1 ext4-delalloc-mballoc    9  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 0,
Blocksize: 4096, isAuto_da_alloc: noauto_da_alloc ext4-delalloc-mballoc   10  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 0,
Blocksize: 4096, isAuto_da_alloc: auto_da_alloc=1 ext4-delalloc-mballoc   11  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 0,
Blocksize: 4096, isAuto_da_alloc: noauto_da_alloc ext4-delalloc-mballoc   12  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 1,
Blocksize: 4096, isAuto_da_alloc: auto_da_alloc=1 ext4-delalloc-mballoc   13  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: delalloc, isDirectIO: 1,
Blocksize: 4096, isAuto_da_alloc: noauto_da_alloc ext4-delalloc-mballoc   14  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 1,
Blocksize: 4096, isAuto_da_alloc: auto_da_alloc=1 ext4-delalloc-mballoc   15  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc    0  TINFO  :  isDelalloc: nodelalloc, isDirectIO: 1,
Blocksize: 4096, isAuto_da_alloc: noauto_da_alloc ext4-delalloc-mballoc   16  TPASS  :  delalloc/mballoc test pass ext4-delalloc-mballoc   17  TPASS  :  remount test pass

Ext4 journal checksum test
ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 1,
ext4-journal-checksum    1  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 1,
ext4-journal-checksum    2  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 1,
ext4-journal-checksum    3  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 100,
ext4-journal-checksum    4  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 100,
ext4-journal-checksum    5  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 100,
ext4-journal-checksum    6  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 1,
ext4-journal-checksum    7  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 1,
ext4-journal-checksum    8  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 1,
ext4-journal-checksum    9  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 100,
ext4-journal-checksum   10  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 100,
ext4-journal-checksum   11  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 100,
ext4-journal-checksum   12  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 1,
ext4-journal-checksum   13  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 1,
ext4-journal-checksum   14  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 1,
ext4-journal-checksum   15  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 100,
ext4-journal-checksum   16  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 100,
ext4-journal-checksum   17  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 100,
ext4-journal-checksum   18  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 1,
ext4-journal-checksum   19  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 1,
ext4-journal-checksum   20  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 1,
ext4-journal-checksum   21  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 100,
ext4-journal-checksum   22  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 100,
ext4-journal-checksum   23  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 100,
ext4-journal-checksum   24  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 1,
ext4-journal-checksum   25  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 1,
ext4-journal-checksum   26  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 1,
ext4-journal-checksum   27  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 100,
ext4-journal-checksum   28  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 100,
ext4-journal-checksum   29  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 100,
ext4-journal-checksum   30  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 1,
ext4-journal-checksum   31  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 1,
ext4-journal-checksum   32  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 1,
ext4-journal-checksum   33  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: writeback, commit
interval: 100,
ext4-journal-checksum   34  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: ordered, commit
interval: 100,
ext4-journal-checksum   35  TPASS  :  ext4 journal checksum test pass ext4-journal-checksum    0  TINFO  :  journal mode: journal, commit
interval: 100,
ext4-journal-checksum   36  TPASS  :  ext4 journal checksum test pass

Ext4 subdir limit test
ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name,
ext4-subdir-limit    1  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name,
ext4-subdir-limit    2  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name,
ext4-subdir-limit    3  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: long name,
ext4-subdir-limit    4  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name,
ext4-subdir-limit    5  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: long name,
ext4-subdir-limit    6  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name,
ext4-subdir-limit    7  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: long name,
ext4-subdir-limit    8  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: short name,
ext4-subdir-limit    9  TPASS  :  ext4 subdir limit test pass ext4-subdir-limit    0  TINFO  :  Num of dirs to create: 65537, Dir name
len: long name,
ext4-subdir-limit   10  TPASS  :  ext4 subdir limit test pass

Ext4 nanosecond timestamp test
ext4-nsec-timestamps    0  TINFO  :  Test timestamps with 128 inode size ext4-nsec-timestamps    1  TPASS  :  Ext4 nanosecond timestamps test with 128 inode size pass
ext4-nsec-timestamps    0  TINFO  :  Test timestamps with 256 inode size ext4-nsec-timestamps    2  TPASS  :  Ext4 nanosecond timestamps test with 256 inode size pass

Ext4 persist prealloc test
ext4-persistent-preallocation    1  TPASS  :  ext4 persistent preallocation test pass
ext4-persistent-preallocation    2  TPASS  :  ext4 persistent preallocation test pass

Ext4 inode version test
ext4-inode-version    0  TINFO  :  Test inode version is 32 bits with 128 inode size
ext4-inode-version    1  TPASS  :  32 bits inode version with 128 inode size test pass
ext4-inode-version    2  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    3  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    4  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    5  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    6  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    7  TPASS  :  inode version with 256 inode size test pass
ext4-inode-version    8  TPASS  :  inode version with 256 inode size test pass

Ext4 uninit groups test
ext4-uninit-groups    1  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups    2  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups    3  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups    4  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups    5  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups    6  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups    7  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups    8  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups    9  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   10  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   11  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   12  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   13  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   14  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   15  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   16  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   17  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   18  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   19  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   20  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   21  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   22  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   23  TPASS  :  ext4 uninit groups test pass ext4-uninit-groups   24  TPASS  :  ext4 uninit groups test pass

Quoted 12 lines

Ext4 online defrag test
The output of defrag program is in the file LTPROOT/output/ext4_online_defrag.txt
ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 1, block
size: 1024
ext4-online-defrag    1  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 2, block
size: 1024
 "/opt/ltp/testcases/bin/mnt_point/data0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
       File is not regular file

Please cleanup issue here.

Quoted 8 lines

ext4-online-defrag    2  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 3, block
size: 1024
ext4-online-defrag    3  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 1, block
size: 1024
 "/opt/ltp/testcases/bin/mnt_point/tmp_dir"
       File is not regular file

Same.

Quoted 7 lines

ext4-online-defrag    4  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 2, block
size: 1024
 "/opt/ltp/testcases/bin/mnt_point/data0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
       File is not regular file

Same.

Quoted 5 lines

ext4-online-defrag    5  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 3, block
size: 1024
 "/opt/ltp/testcases/bin/mnt_point/tmp_dir"
       File is not regular file

Same.

Quoted 5 lines

ext4-online-defrag    6  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block
size: 1024
 "/opt/ltp/testcases/bin/mnt_point"
       File is not regular file

Same.

Quoted 21 lines

ext4-online-defrag    7  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block
size: 1024
 "/opt/ltp/testcases/bin/mnt_point"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data2"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data2/datadir0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/meta"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data3"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data3/datadir0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data4"
       File is not regular file

Quoted 8 lines

 "/opt/ltp/testcases/bin/mnt_point/data4/fillfile1699" File size is 0 "/opt/ltp/testcases/bin/mnt_point/data4/datadir0" File is not regular file "/opt/ltp/testcases/bin/mnt_point/data1" File is not regular file "/opt/ltp/testcases/bin/mnt_point/data1/datadir0" File is not regular file

Same.

Quoted 5 lines

ext4-online-defrag    8  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block
size: 1024
 "/opt/ltp/testcases/bin/mnt_point"
       File is not regular file

Same.

Quoted 10 lines

ext4-online-defrag    9  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 1, block
size: 4096
ext4-online-defrag   10  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 2, block
size: 4096
 "/opt/ltp/testcases/bin/mnt_point/data0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
       File is not regular file

Same.

Quoted 8 lines

ext4-online-defrag   11  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 1, defrag obj: 3, block
size: 4096
ext4-online-defrag   12  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 1, block
size: 4096
 "/opt/ltp/testcases/bin/mnt_point/tmp_dir"
       File is not regular file

Same.

Quoted 7 lines

ext4-online-defrag   13  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 2, block
size: 4096
 "/opt/ltp/testcases/bin/mnt_point/data0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
       File is not regular file

Same.

Quoted 43 lines

ext4-online-defrag   14  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 2, defrag obj: 3, block
size: 4096
 "/opt/ltp/testcases/bin/mnt_point/tmp_dir"
       File is not regular file
ext4-online-defrag   15  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block
size: 4096
 "/opt/ltp/testcases/bin/mnt_point"
       File is not regular file
ext4-online-defrag   16  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block
size: 4096
 "/opt/ltp/testcases/bin/mnt_point"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data1"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data1/datadir0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data0/datadir0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data2"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data2/datadir0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data3"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data3/datadir0"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/meta"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data4"
       File is not regular file "/opt/ltp/testcases/bin/mnt_point/data4/datadir0"
       File is not regular file
ext4-online-defrag   17  TPASS  :  ext4 online defrag test pass ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block
size: 4096
 "/opt/ltp/testcases/bin/mnt_point"
       File is not regular file
ext4-online-defrag   18  TPASS  :  ext4 online defrag test pass

Quoted 8 lines

incrementing stop
<<<execution_status>>>
initiation_status="ok"
duration=39617 termination_type=exited termination_id=0 corefile=no cutime=12671 cstime=199642
<<<test_end>>>
INFO: ltp-pan reported all tests PASS
LTP Version: LTP-20091031

You should be using $TMPDIR in all of these tests, not $LTPROOT/testcases/bin/<blah>.

Thanks,
-Garrett

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#20 lore raw
In reply to Subrata Modak

Hi,Subrata

Sorry for the late reply.

I have no time to do the following job recently. But don't worry. I will do it before the next release.

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines · Subrata Modak
Quoted 14 lines

We had recently added EXT4 testcases to LTP. As the author of these tests mentioned, we saw 2 such failures in subdirectory limit test:

Ext4 subdir limit test
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: short name Parent dir: mnt_point, Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag /dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

You don't need to set the test_fs flag for modern ext4.

Miao,

Can we change this ?

Ok, no problem.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: long name Parent dir: mnt_point, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit 2 TFAIL : failed to create directories - 19524

...

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: long name Parent dir: mnt_point/sub,
Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit 4 TFAIL : failed to create directories - 19483

...

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 1 line

Is this a known issue for EXT4 ?

Creating many long filenames (255 bytes) in a 1kB block filesystem is a known issue that is not expected to be fixed (at least I'm not aware of any work being done in this area). A vast majority of filesystems today are formatted with 4kB blocks (due to disk size) and the overhead of
managing 1kB block filesystems makes these only marginally used, and it is also very rare to have applications with such large filenames.

Ok.

I will remove these testcases.

Quoted 5 lines
Quoted 5 lines

However, it is also accompanied by the following failures in the online-defrag part:
========================================================================================
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 3, block size: 1024
71301958656 bytes (71 GB) copied, 2694.12 s, 26.5 MB/s
ext4-online-defrag 3 TFAIL : e4defrag returned failure

...

Quoted 13 lines
Quoted 13 lines

ext4-online-defrag 0 TINFO : defrag type: 2, defrag obj: 3, block size: 1024
71301958656 bytes (71 GB) copied, 2623.31 s, 27.2 MB/s

ext4-online-defrag    6  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 1024
ext4-online-defrag    7  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 1024
41943040 bytes (42 MB) copied, 0.737014 s, 56.9 MB/s
ext4-online-defrag    8  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 1024

71301958656 bytes (71 GB) copied, 2544.39 s, 28.0 MB/s
ext4-online-defrag 9 TFAIL : e4defrag returned failure
...
ext4-online-defrag 0 TINFO : defrag type: 3, defrag obj: 2, block size: 4096

Quoted 8 lines
Quoted 8 lines

41943040 bytes (42 MB) copied, 0.306366 s, 137 MB/s

ext4-online-defrag   17  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 4096

71241666560 bytes (71 GB) copied, 1019.79 s, 69.9 MB/s
ext4-online-defrag 18 TFAIL : e4defrag returned failure
incrementing stop
========================================================================================
Did you see these failure on your machine ?

I didn't find these failure on my box.
I need more information to analyse. so I'll make a patch to get more information later.

Quoted 8 lines
Quoted 5 lines

Some more points are:

1. Can you please run these tests against the backdrop of the Makefile changes in LTP to see all the build/install/run are executing fine,

Could you please verify this before this release. Let me know a patch if you find any discrepancy :-)

Sorry for that I couldn't do it before the release. I'll do it before the next release.

Quoted 9 lines
Quoted 6 lines

2. Can you also please put all the utilities version info at the

        beginning of the test rather than printing them again and
        again(like mke2fs 1.41.9 (22-Aug-2009),tune2fs 1.41.9
        (22-Aug-2009),dumpe2fs 1.41.9 (22-Aug-2009),dumpe2fs 1.41.9
        (22-Aug-2009))

This can go in the next month release as well, if you do not have time to fix now. Else, i have a bug mouth to eat this as well ;-)

I'll do it before the next release.

Regards.
Miao

Quoted 54 lines

Regards--
Subrata

Quoted 46 lines

Regards--
Subrata

Quoted 27 lines
Quoted 27 lines

Following the various system information on which we ran the test:
1) uname -a
Linux 2.6.31 #1 SMP Tue Oct 20 22:57:16 IST 2009 i686 i686 i386 GNU/Linux

2) grep -i ext4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

3) mkfs.ext4 -V
mke2fs 1.41.9 (22-Aug-2009)
Using EXT2FS Library version 1.41.9
e2fsprogs-1.41.9
e2fsprogs-libs-1.41.9

4) LTP used:
Unreleased CVS repository. See the URL below to download:
http://ltp.sourceforge.net/documentation/how-to/ltp.php#_3.1,

You can also also directly review the attached patch(which added this test cases):
26_10_2009-(Miao-Xie<[email protected]>)- Add_new_testcases_for_ext4_new_features_V3.patch.regenerated,

Quoted 9 lines
Quoted 3 lines

5) I used a single 680GB LVM partition to test this.

Kindly let us know your thoughts on this failures.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#21 lore raw
Quoted 6 lines · Miao Xie

Hi,Subrata

Sorry for the late reply.

I have no time to do the following job recently. But don't worry. I will do it before the next release.

Thank you very much Miao. I would like to tell you that many people in my team are using your test cases rigorously. Thanks for the same.

Regards--
Subrata

Quoted 101 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines · Subrata Modak
Quoted 14 lines

We had recently added EXT4 testcases to LTP. As the author of these tests mentioned, we saw 2 such failures in subdirectory limit test:

Ext4 subdir limit test
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: short name Parent dir: mnt_point, Block
size: 1024
mke2fs 1.41.9 (22-Aug-2009)
tune2fs 1.41.9 (22-Aug-2009)
Setting test filesystem flag /dev/VG1_EXT4/LV1_EXT4: The test_fs flag is set (and ext4 is available).
CLEARED.

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

You don't need to set the test_fs flag for modern ext4.

Miao,

Can we change this ?

Ok, no problem.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: long name Parent dir: mnt_point, Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit 2 TFAIL : failed to create directories - 19524

...

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir
name
len: long name Parent dir: mnt_point/sub,
Block
size: 1024
mkdir: No space left on device
ext4-subdir-limit 4 TFAIL : failed to create directories - 19483

...

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 1 line

Is this a known issue for EXT4 ?

Creating many long filenames (255 bytes) in a 1kB block filesystem is a known issue that is not expected to be fixed (at least I'm not aware of any work being done in this area). A vast majority of filesystems today are formatted with 4kB blocks (due to disk size) and the overhead of
managing 1kB block filesystems makes these only marginally used, and it is also very rare to have applications with such large filenames.

Ok.

I will remove these testcases.

Quoted 5 lines
Quoted 5 lines

However, it is also accompanied by the following failures in the online-defrag part:
========================================================================================
ext4-online-defrag 0 TINFO : defrag type: 1, defrag obj: 3, block size: 1024
71301958656 bytes (71 GB) copied, 2694.12 s, 26.5 MB/s
ext4-online-defrag 3 TFAIL : e4defrag returned failure

...

Quoted 13 lines
Quoted 13 lines

ext4-online-defrag 0 TINFO : defrag type: 2, defrag obj: 3, block size: 1024
71301958656 bytes (71 GB) copied, 2623.31 s, 27.2 MB/s

ext4-online-defrag    6  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 1, block size: 1024
ext4-online-defrag    7  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 2, block size: 1024
41943040 bytes (42 MB) copied, 0.737014 s, 56.9 MB/s
ext4-online-defrag    8  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 1024

71301958656 bytes (71 GB) copied, 2544.39 s, 28.0 MB/s
ext4-online-defrag 9 TFAIL : e4defrag returned failure
...
ext4-online-defrag 0 TINFO : defrag type: 3, defrag obj: 2, block size: 4096

Quoted 8 lines
Quoted 8 lines

41943040 bytes (42 MB) copied, 0.306366 s, 137 MB/s

ext4-online-defrag   17  TFAIL  :  e4defrag returned failure
ext4-online-defrag    0  TINFO  :  defrag type: 3, defrag obj: 3, block size: 4096

71241666560 bytes (71 GB) copied, 1019.79 s, 69.9 MB/s
ext4-online-defrag 18 TFAIL : e4defrag returned failure
incrementing stop
========================================================================================
Did you see these failure on your machine ?

I didn't find these failure on my box.
I need more information to analyse. so I'll make a patch to get more information later.

Quoted 8 lines
Quoted 5 lines

Some more points are:

1. Can you please run these tests against the backdrop of the Makefile changes in LTP to see all the build/install/run are executing fine,

Could you please verify this before this release. Let me know a patch if you find any discrepancy :-)

Sorry for that I couldn't do it before the release. I'll do it before the next release.

Quoted 7 lines
Quoted 6 lines

2. Can you also please put all the utilities version info at the

        beginning of the test rather than printing them again and
        again(like mke2fs 1.41.9 (22-Aug-2009),tune2fs 1.41.9
        (22-Aug-2009),dumpe2fs 1.41.9 (22-Aug-2009),dumpe2fs 1.41.9
        (22-Aug-2009))
Quoted 64 lines
Quoted 2 lines

This can go in the next month release as well, if you do not have time to fix now. Else, i have a bug mouth to eat this as well ;-)

I'll do it before the next release.

Regards.
Miao

Quoted 54 lines

Regards--
Subrata

Quoted 46 lines

Regards--
Subrata

Quoted 27 lines
Quoted 27 lines

Following the various system information on which we ran the test:
1) uname -a
Linux 2.6.31 #1 SMP Tue Oct 20 22:57:16 IST 2009 i686 i686 i386 GNU/Linux

2) grep -i ext4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

3) mkfs.ext4 -V
mke2fs 1.41.9 (22-Aug-2009)
Using EXT2FS Library version 1.41.9
e2fsprogs-1.41.9
e2fsprogs-libs-1.41.9

4) LTP used:
Unreleased CVS repository. See the URL below to download:
http://ltp.sourceforge.net/documentation/how-to/ltp.php#_3.1,

You can also also directly review the attached patch(which added this test cases):
26_10_2009-(Miao-Xie<[email protected]>)- Add_new_testcases_for_ext4_new_features_V3.patch.regenerated,

Quoted 9 lines
Quoted 3 lines

5) I used a single 680GB LVM partition to test this.

Kindly let us know your thoughts on this failures.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list