diff options
author | Jens Axboe <axboe@fb.com> | 2015-01-17 00:02:24 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-17 00:02:24 +0100 |
commit | 227290b4690510148d1f40f277c6c3a181fcb440 (patch) | |
tree | 9536d15801966f62cc459daa93a6704cde02b314 /drivers/block/null_blk.c | |
parent | brd: Request from fdisk 4k alignment (diff) | |
download | linux-227290b4690510148d1f40f277c6c3a181fcb440.tar.xz linux-227290b4690510148d1f40f277c6c3a181fcb440.zip |
null_blk: suppress invalid partition info
null_blk is partitionable, but it doesn't store any of the info. When
it is loaded, you would normally see:
[1226739.343608] nullb0: unknown partition table
[1226739.343746] nullb1: unknown partition table
which can confuse some people. Add the appropriate gendisk flag
to suppress this info.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/null_blk.c')
-rw-r--r-- | drivers/block/null_blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index aa2224aa7caa..65cd61a4145e 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_blk.c @@ -579,7 +579,7 @@ static int null_add_dev(void) sector_div(size, bs); set_capacity(disk, size); - disk->flags |= GENHD_FL_EXT_DEVT; + disk->flags |= GENHD_FL_EXT_DEVT | GENHD_FL_SUPPRESS_PARTITION_INFO; disk->major = null_major; disk->first_minor = nullb->index; disk->fops = &null_fops; |