diff options
author | Boaz Harrosh <boaz@plexistor.com> | 2015-01-22 07:39:20 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-22 10:03:52 -0500 |
commit | bb5c3cdda37aad22996d6da2addd58cadc0436c0 (patch) | |
tree | 72304a689f18556f181ec008655bc58094212d7b /block/partitions/check.c | |
parent | d93ba7a5a97c9f315bacdcdb8de4e5f368e7b396 (diff) |
block: Remove annoying "unknown partition table" message
As Christoph put it:
Can we just get rid of the warnings? It's fairly annoying as devices
without partitions are perfectly fine and very useful.
Me too I see this message every VM boot for ages on all my
devices. Would love to just remove it. For me a partition-table
is only needed for a booting BIOS, grub, and stuff.
CC: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Boaz Harrosh <boaz@plexistor.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/partitions/check.c')
-rw-r--r-- | block/partitions/check.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/block/partitions/check.c b/block/partitions/check.c index 9ac1df74f699..16118d11dbfc 100644 --- a/block/partitions/check.c +++ b/block/partitions/check.c | |||
@@ -184,12 +184,12 @@ check_partition(struct gendisk *hd, struct block_device *bdev) | |||
184 | if (err) | 184 | if (err) |
185 | /* The partition is unrecognized. So report I/O errors if there were any */ | 185 | /* The partition is unrecognized. So report I/O errors if there were any */ |
186 | res = err; | 186 | res = err; |
187 | if (!res) | 187 | if (res) { |
188 | strlcat(state->pp_buf, " unknown partition table\n", PAGE_SIZE); | 188 | if (warn_no_part) |
189 | else if (warn_no_part) | 189 | strlcat(state->pp_buf, |
190 | strlcat(state->pp_buf, " unable to read partition table\n", PAGE_SIZE); | 190 | " unable to read partition table\n", PAGE_SIZE); |
191 | 191 | printk(KERN_INFO "%s", state->pp_buf); | |
192 | printk(KERN_INFO "%s", state->pp_buf); | 192 | } |
193 | 193 | ||
194 | free_page((unsigned long)state->pp_buf); | 194 | free_page((unsigned long)state->pp_buf); |
195 | free_partitions(state); | 195 | free_partitions(state); |