aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDan Williams <[email protected]>2017-04-27 14:46:26 -0700
committerJens Axboe <[email protected]>2017-04-28 08:26:42 -0600
commit9438b3e080beccf6022138ea62192d55cc7dc4ed (patch)
tree4586260c54677fd672f9fe438d43a85ba5d98000 /net/unix/af_unix.c
parent21c6e939a9f6bb06fe616a87defec0f92a7c3df0 (diff)
block: hide badblocks attribute by default
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. 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]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions