All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] btrfs-progs: tests/common: Display warning only after searching for btrfs kernel module
@ 2017-10-27  6:00 Lakshmipathi.G
  2017-10-27 14:41 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Lakshmipathi.G @ 2017-10-27  6:00 UTC (permalink / raw)
  To: linux-btrfs

Signed-off-by: Lakshmipathi.G <lakshmipathi.g@giis.co.in>
---
 tests/common | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/common b/tests/common
index eb525a4..773b1e5 100644
--- a/tests/common
+++ b/tests/common
@@ -428,8 +428,12 @@ run_check_umount_test_dev()
 check_kernel_support()
 {
 	if ! grep -iq 'btrfs' /proc/filesystems; then
-		echo "WARNING: btrfs filesystem not listed in /proc/filesystems, some tests might fail"
-		return 1
+		run_check $SUDO_HELPER modprobe btrfs
+			if ! grep -iq 'btrfs' /proc/filesystems; then
+				echo "WARNING: btrfs filesystem not listed in \
+				 /proc/filesystems, some tests might fail"
+				return 1
+			fi
 	fi
 	return 0
 }
-- 
2.7.4


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

* Re: [PATCH 1/1] btrfs-progs: tests/common: Display warning only after searching for btrfs kernel module
  2017-10-27  6:00 [PATCH 1/1] btrfs-progs: tests/common: Display warning only after searching for btrfs kernel module Lakshmipathi.G
@ 2017-10-27 14:41 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2017-10-27 14:41 UTC (permalink / raw)
  To: Lakshmipathi.G; +Cc: linux-btrfs

On Fri, Oct 27, 2017 at 11:30:24AM +0530, Lakshmipathi.G wrote:
> Signed-off-by: Lakshmipathi.G <lakshmipathi.g@giis.co.in>

Applied, thanks.

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

end of thread, other threads:[~2017-10-27 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-27  6:00 [PATCH 1/1] btrfs-progs: tests/common: Display warning only after searching for btrfs kernel module Lakshmipathi.G
2017-10-27 14:41 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.