Skip to content

Commit

Permalink
genhd: Supress "detected capacity change" message
Browse files Browse the repository at this point in the history
If we use the loop device in the cluster we don't want one
syslog message per job.
  • Loading branch information
donald committed Sep 20, 2022
1 parent f50891a commit 67708da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 67708da

Please sign in to comment.