Re: [Fdutils] [patch 2/3] floppy: support arbitrary first-sector numbers
27 Oct
2008
27 Oct
'08
8:20 p.m.
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
6524
Age (days ago)
6524
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alain Knaff