[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] ide: Check validity of logical block size
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH] ide: Check validity of logical block size |
Date: |
Wed, 3 Dec 2014 15:53:05 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 03.12.2014 um 13:35 hat Kevin Wolf geschrieben:
> Our IDE emulation can't handle logical block sizes other than 512. Check
> for it.
>
> The original assumption was that other values would silently be ignored
> (which is bad enough), but it's not quite true: The physical block size
> is exposed in IDENTIFY DEVICE as a multiple of the logical block size.
> Setting a logical block size therefore also corrupts the physical block
> size (4096/4096 doesn't silently downgrade to 4096/512, but 512/512).
>
> Signed-off-by: Kevin Wolf <address@hidden>
Applied to block-next.
Kevin