Re: [PATCH] disk: dos: Infer MBR partition sector size from underlying drive sector size

2023-08-23 Thread Tom Rini
On Mon, Aug 14, 2023 at 01:48:45AM +0200, Marek Vasut wrote: > Block devices with 4k sectors imply the MBR sectors are also 4k instead > of regular 512B. Avoid hard-coding the 512B sector size and isntead read > the current block device sector size from it, and if the sector size is > larger than

Re: [PATCH] disk: dos: Infer MBR partition sector size from underlying drive sector size

2023-08-14 Thread Simon Glass
On Sun, 13 Aug 2023 at 17:49, Marek Vasut wrote: > > Block devices with 4k sectors imply the MBR sectors are also 4k instead > of regular 512B. Avoid hard-coding the 512B sector size and isntead read > the current block device sector size from it, and if the sector size is > larger than 512B, use

[PATCH] disk: dos: Infer MBR partition sector size from underlying drive sector size

2023-08-13 Thread Marek Vasut
Block devices with 4k sectors imply the MBR sectors are also 4k instead of regular 512B. Avoid hard-coding the 512B sector size and isntead read the current block device sector size from it, and if the sector size is larger than 512B, use the block device sector size. Signed-off-by: Marek Vasut -