From 67708dafe77dbf2e9fe213e8742846e921b7697f Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 20 Sep 2022 17:36:39 +0200 Subject: [PATCH] genhd: Supress "detected capacity change" message If we use the loop device in the cluster we don't want one syslog message per job. --- block/genhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/genhd.c b/block/genhd.c index 74e19d67ceab5..31fa2a0048d7d 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -83,7 +83,7 @@ bool set_capacity_and_notify(struct gendisk *disk, sector_t size) (disk->flags & GENHD_FL_HIDDEN)) return false; - pr_info("%s: detected capacity change from %lld to %lld\n", + if (0) pr_info("%s: detected capacity change from %lld to %lld\n", disk->disk_name, capacity, size); /*