linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] common/rc: improve _require_metadata_journaling() for ext4
@ 2016-08-18 14:42 Eric Whitney
  2016-08-18 15:26 ` Eryu Guan
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Whitney @ 2016-08-18 14:42 UTC (permalink / raw)
  To: fstests; +Cc: linux-ext4, tytso

The code in _require_metadata_journaling() currently rejects ext4 file
systems that have been created without a journal.  However, an ext4
file system with a journal should also be rejected if the journal is
not loaded and made available for use at mount time.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
---
 common/rc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/rc b/common/rc
index 3fb0600..9a3c9bd 100644
--- a/common/rc
+++ b/common/rc
@@ -3057,6 +3057,9 @@ _require_metadata_journaling()
 		_require_dumpe2fs
 		$DUMPE2FS_PROG -h $DEV 2>&1 | grep -q has_journal || \
 			_notrun "$FSTYP on $DEV not configured with metadata journaling"
+		# ext4 may not have loaded a journal
+		echo $MOUNT_OPTIONS | grep -q noload && \
+			_notrun "$FSTYP on $DEV not mounted with metadata journaling"
 		;;
 	*)
 		# by default we pass; if you need to, add your fs above!
-- 
2.1.4

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

end of thread, other threads:[~2016-08-19 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-18 14:42 [PATCH] common/rc: improve _require_metadata_journaling() for ext4 Eric Whitney
2016-08-18 15:26 ` Eryu Guan
2016-08-19 16:56   ` Eric Whitney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).