]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: add a partscan sysfs attribute for disks
authorChristoph Hellwig <hch@lst.de>
Thu, 2 May 2024 13:00:33 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2024 14:28:40 +0000 (16:28 +0200)
commit646eb6bb115b826ec5f205b9c35b247c97c6915d
treee38d92cab0d7b650ca44c0b925ba129b41d39a6e
parent0f40eb57741a6f48ecd91585fce375562239459a
block: add a partscan sysfs attribute for disks

commit a4217c6740dc64a3eb6815868a9260825e8c68c6 upstream.

Userspace had been unknowingly relying on a non-stable interface of
kernel internals to determine if partition scanning is enabled for a
given disk. Provide a stable interface for this purpose instead.

Cc: stable@vger.kernel.org # 6.3+
Depends-on: 140ce28dd3be ("block: add a disk_has_partscan helper")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/linux-block/ZhQJf8mzq_wipkBH@gardel-login/
Link: https://lore.kernel.org/r/20240502130033.1958492-3-hch@lst.de
[axboe: add links and commit message from Keith]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/stable/sysfs-block
block/genhd.c