Date: Wed, 10 Nov 2004 07:36:04 -0800 From: Nehal <nehalmistry@gmx.net> To: freebsd-hackers@freebsd.org Subject: read/write less than sector size Message-ID: <41923564.7W4yXnkn0Ia1Jjug%nehalmistry@gmx.net>
next in thread | raw e-mail | index | archive | help
if i open /dev/ad1s1 for example, i try to read() or write() not in multiples of 512, it will return an error. how would i do this? currently, if i need to read 100 bytes, i read in the full sector, then memcpy the bytes i need. is there a better way? -- thx, Nehal
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41923564.7W4yXnkn0Ia1Jjug%nehalmistry>