lkml.org 
[lkml]   [2015]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC] block: Remove annoying "unknown partition table" message
From: Boaz Harrosh <boaz@plexistor.com>

As Christoph put it best:
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.

(NOT Yet Tested)

CC: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Boaz Harrosh <boaz@plexistor.com>
---
block/partitions/check.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/block/partitions/check.c b/block/partitions/check.c
index 9ac1df7..e3a9077 100644
--- a/block/partitions/check.c
+++ b/block/partitions/check.c
@@ -184,9 +184,7 @@ check_partition(struct gendisk *hd, struct block_device *bdev)
if (err)
/* The partition is unrecognized. So report I/O errors if there were any */
res = err;
- if (!res)
- strlcat(state->pp_buf, " unknown partition table\n", PAGE_SIZE);
- else if (warn_no_part)
+ if (warn_no_part)
strlcat(state->pp_buf, " unable to read partition table\n", PAGE_SIZE);

printk(KERN_INFO "%s", state->pp_buf);


\
 
 \ /
  Last update: 2015-01-18 16:41    [W:0.054 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site