All of
 help / color / mirror / Atom feed
From: "Luís Henriques" <>
Cc:, "Luís Henriques" <>
Subject: [PATCH] ceph/001: skip metrics check if no copyfrom mount option is used
Date: Fri, 20 May 2022 11:50:55 +0100	[thread overview]
Message-ID: <> (raw)

Checking the metrics is only valid if 'copyfrom' mount option is
explicitly set, otherwise the kernel won't be doing any remote object
copies.  Fix the logic to skip this metrics checking if 'copyfrom' isn't

Signed-off-by: Luís Henriques <>
 tests/ceph/001 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/ceph/001 b/tests/ceph/001
index 7970ce352bab..2e6a5e6be2d6 100755
--- a/tests/ceph/001
+++ b/tests/ceph/001
@@ -86,11 +86,15 @@ check_copyfrom_metrics()
 	local copies=$4
 	local c1=$(get_copyfrom_total_copies)
 	local s1=$(get_copyfrom_total_size)
+	local hascopyfrom=$(_fs_options $TEST_DEV | grep "copyfrom")
 	local sum
 	if [ ! -d $metrics_dir ]; then
 		return # skip metrics check if debugfs isn't mounted
+	if [ -z $hascopyfrom ]; then
+		return # ... or if we don't have copyfrom mount option
+	fi
 	if [ $sum -ne $c1 ]; then

             reply	other threads:[~2022-05-20 10:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-20 10:50 Luís Henriques [this message]
2022-05-24  4:45 ` Zorro Lang
2022-05-24  5:04   ` Zorro Lang
2022-05-24  9:37     ` Luís Henriques

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: [PATCH] ceph/001: skip metrics check if no copyfrom mount option is used' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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.