Skip to content

Commit

Permalink
block: Remove annoying "unknown partition table" message
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Boaz Harrosh <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Boaz Harrosh authored and axboe committed Jan 22, 2015
1 parent d93ba7a commit bb5c3cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions block/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ 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)
strlcat(state->pp_buf, " unable to read partition table\n", PAGE_SIZE);

printk(KERN_INFO "%s", state->pp_buf);
if (res) {
if (warn_no_part)
strlcat(state->pp_buf,
" unable to read partition table\n", PAGE_SIZE);
printk(KERN_INFO "%s", state->pp_buf);
}

free_page((unsigned long)state->pp_buf);
free_partitions(state);
Expand Down

0 comments on commit bb5c3cd

Please sign in to comment.