public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v3 ltp 1/4] fs/ext4: check if the big block device is mounted at do_setup()
@ 2018-07-26  9:22 Yixin Zhang
  2018-07-26  9:22 ` [LTP] [PATCH v3 ltp 2/4] fs/ext4: Replace umount with tst_umount Yixin Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yixin Zhang @ 2018-07-26  9:22 UTC (permalink / raw)
  To: ltp

The test requires the big block device is umounted before test, so check
at do_setup(), TBROK if it's mounted

Signed-off-by: Yixin Zhang <yixin.zhang@intel.com>
---
 testcases/kernel/fs/ext4-new-features/ext4_funcs.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/kernel/fs/ext4-new-features/ext4_funcs.sh b/testcases/kernel/fs/ext4-new-features/ext4_funcs.sh
index a9eb54e8d..1514da5a2 100755
--- a/testcases/kernel/fs/ext4-new-features/ext4_funcs.sh
+++ b/testcases/kernel/fs/ext4-new-features/ext4_funcs.sh
@@ -45,6 +45,9 @@ ext4_setup()
 		tst_brkm TCONF "tests need a big block device(5G-10G)"
 	else
 		export EXT4_DEV=$LTP_BIG_DEV
+		if mount | cut -d' ' -f1 | grep -q ^$EXT4_DEV$ ; then
+			tst_brkm TBROK "$EXT4_DEV should be umounted before test"
+		fi
 	fi
 
 	tst_tmpdir
-- 
2.14.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-15 14:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-26  9:22 [LTP] [PATCH v3 ltp 1/4] fs/ext4: check if the big block device is mounted at do_setup() Yixin Zhang
2018-07-26  9:22 ` [LTP] [PATCH v3 ltp 2/4] fs/ext4: Replace umount with tst_umount Yixin Zhang
2018-07-26  9:22 ` [LTP] [PATCH v3 ltp 3/4] fs/ext4: bug fix - incorect argument ctime vs mtime Yixin Zhang
2018-07-26  9:22 ` [LTP] [PATCH v3 ltp 4/4] fs/ext4: update format and fix typo Yixin Zhang
2018-08-15 14:01   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox