public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to do IO across hardsector boundries
@ 2004-08-01  0:22 Thomas S. Iversen
  2004-07-31 23:32 ` Alan Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas S. Iversen @ 2004-08-01  0:22 UTC (permalink / raw)
  To: linux-kernel

Hi There

As part of an assignment I am trying to port a piece of software from 
FreeBSD to linux. Essentially this software (crypto) makes a virtual 
blockdevice with "virtual" sectors on top. Under FreeBSD these virtual 
sectors are just read/written using a simple command:

buf=g_read(dev, offset, len)
error=g_write(dev,offset,buf,len)

In linux however I have only seen the BIO layer which operates on IO on 
hardsector boundaries.

So my question really is, how do I go about updating for instance the 
512 bytes located for at byte 64 to 64+511 on the actual media without 
getting in trouble regarding the data from offset 0-63 and 64+512->1023?

Regards Thomas

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-01 13:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-01  0:22 How to do IO across hardsector boundries Thomas S. Iversen
2004-07-31 23:32 ` Alan Cox
2004-08-01  8:53 ` Arjan van de Ven
2004-08-01 13:10 ` Richard B. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox