Re: [PATCH] block: hide badblocks attribute by default

From: Jens Axboe
Date: Fri Apr 28 2017 - 10:34:14 EST


On Thu, Apr 27 2017, Dan Williams wrote:
> Commit 99e6608c9e74 "block: Add badblock management for gendisks"
> allowed for drivers like pmem and software-raid to advertise a list of
> bad media areas. However, it inadvertently added a 'badblocks' to all
> block devices. Lets clean this up by having the 'badblocks' attribute
> not be visible when the driver has not populated a 'struct badblocks'
> instance in the gendisk.

Thanks Dan, added.

--
Jens Axboe