O_DIRECT foolish question

Bruno Diniz de Paula (diniz@cs.rutgers.edu)
12 Feb 2003 16:19:24 -0500


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-4113-1045084804-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

I am trying to use O_DIRECT to read ordinary files and read syscall
always returns 0, unless when the file size equals the fs block size. Is
it true that I can only use O_DIRECT when the size of the file written
in the inode is a multiple of block size?

Thanks and excuse me for the newbie question,

Bruno.
--=20
Bruno Diniz de Paula <diniz@cs.rutgers.edu>
Rutgers University

--=_courier-4113-1045084804-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+SrpbZGORSF4wrt8RApGkAJ4hQr6iYqJYOKwxz5scl0qCaSrMOwCfTzBJ
LeluJWaL1YwA6sjeHWHGjn8=
=W2gA
-----END PGP SIGNATURE-----

--=_courier-4113-1045084804-0001-2--