Thread (2 messages) 2 messages, 2 authors, 2025-01-16

Re: [PATCH] block: limit disk max sectors to (LLONG_MAX >> 9)

From: Jens Axboe <axboe@kernel.dk>
Date: 2025-01-16 14:13:37

On Wed, 15 Jan 2025 17:26:48 +0800, Ming Lei wrote:
Kernel `loff_t` is defined as `long long int`, so we can't support disk
which size is > LLONG_MAX.

There are many virtual block drivers, and hardware may report bad capacity
too, so limit max sectors to (LLONG_MAX >> 9) for avoiding potential
trouble.

[...]
Applied, thanks!

[1/1] block: limit disk max sectors to (LLONG_MAX >> 9)
      commit: 3d9a9e9a77c5ebecda43b514f2b9659644b904d0

Best regards,
-- 
Jens Axboe


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help