Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: hide badblocks attribute by default
Commit 99e6608 "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. Cc: Jens Axboe <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Martin K. Petersen <[email protected]> Reported-by: Vishal Verma <[email protected]> Signed-off-by: Dan Williams <[email protected]> Tested-by: Vishal Verma <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information