[RFC][PATCH] block ioctl to read/write last sector (New! Improved!)

2001-02-13 Thread Michael E Brown
To address the concerns of Andi Kleen, with a good suggestion from Richard Johnson, I have revised my previous patch attempt. Please check this out and comment. Changelog: 1) use get_gendisk() instead of walking array manually 2) pass in struct instead of guessing.. + struct { +

Re: [RFC][PATCH] block ioctl to read/write last sector

2001-02-07 Thread Michael E Brown
On 7 Feb 2001, Andi Kleen wrote: > But what happens when you e.g. run a software blocksize of 4096 and the device > has >1 inaccessible 512 byte sector at the end? > I think it would be better to pass in a offset in 512 byte units to a special > ioctl (and do error checking in the driver for impo

Re: [RFC][PATCH] block ioctl to read/write last sector

2001-02-07 Thread Andi Kleen
Michael E Brown <[EMAIL PROTECTED]> writes: > Problem Summary: > There is no function exported to userspace to read or write the last > 512-byte sector of an odd-size disk. > > The block device uses 1K blocksize, and will prevent userspace from > seeing the odd-block at the end of the disk,

[RFC][PATCH] block ioctl to read/write last sector

2001-02-06 Thread Michael E Brown
Problem Summary: There is no function exported to userspace to read or write the last 512-byte sector of an odd-size disk. The block device uses 1K blocksize, and will prevent userspace from seeing the odd-block at the end of the disk, if the disk is odd-size. IA-64 architecture defines a