akpm@linux-foundation.org wrote:
From: Keith Wansbrough keith@lochan.org
The current floppy_struct allows floppies to number sectors starting from 0 or 1. This patch allows arbitrary first-sector numbers - for example, 0xC1 for Amstrad CPC disks.
This extends the existing 1-bit field (FD_ZEROBASED, bit 2 of stretch) to 8 bits (FD_SECTMASK, bits 2 to 9).
Currently 0x00 denotes a first sector number of 1, and 0x01 denotes a first sector number of 0. We extend this by interpreting FD_SECTMASK as the first sector number with the LSB flipped.
Thanks.
I now added support for this to fdutils, downloadable as patch 20081027: http://fdutils.linux.lu/fdutils-5.5-20081027.diff.gz
Regards,
Alain