On 1 Aug 02 at 18:52, Alexander Viro wrote:
> On Fri, 2 Aug 2002, Petr Vandrovec wrote:
>
> > > Uh-oh...
> > >
> > > Let me see if I got it straight:
> > >
> > > a) your disk doesn't work with half-Kb requests
> > > b) you have a partition with odd number of sectors
> > > c) hardsect_size is set to half-Kb
> > > d) old code worked since it rounded size to multiple of kilobyte.
> > >
> > > Correct?
> >
> > Yes, exactly. Replacing disk is not an option...
>
> OK. At the very least we need a way for driver to tell what the sector
> size is. And that can be a problem - AFAICS IDE shares the queue for
> master and slave and sector size is queue property.
>
> BTW, what type of partition table do you have there?
Normal DOS partition, with 512 byte block size, as this is 512B block
device, at least I believed to it until now. As start=63, it apparently
also handles 1024B requests on odd address (I believe that sfdisk -d dumps
start 0-based).
# partition table of /dev/hdc
unit: sectors
/dev/hdc1 : start= 63, size=12685617, Id=83, bootable
/dev/hdc2 : start= 0, size= 0, Id= 0
/dev/hdc3 : start= 0, size= 0, Id= 0
/dev/hdc4 : start= 0, size= 0, Id= 0
Petr Vandrovec
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:17 EST