Skip to content

bdev: Refresh bdev size for disks without partitioning

Jan Kara linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bdev: Factor out bdev revalidation into a common helperfs/block_dev.c+14 -123 replies
2/2bdev: Refresh bdev size for disks without partitioningfs/block_dev.c+10 -97 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] bdev: Refresh bdev size for disks without partitioning

Hello,

I've been debugging for quite a long time strange issues with encrypted DVDs not being readable on Linux (bko#194965). In the end I've tracked down the problem to the fact that block device size is not updated when the media is inserted in case the DVD device is already open. This is IMO a bug in block device code as the size gets properly update in case the device has partition scanning enabled. The following series fixes the problem by refreshing disk size on each open even for devices with partition scanning disabled.

Honza