Re: xfs behaviour on OpenBSD

Love Hörnquist Åstrand <[email protected]>
Newsgroups gmane.comp.file-systems.arla.general
Message-ID <[email protected]>
Kristaps Johnson <[email protected]> writes:

> Hello everybody.  I wonder if somebody can shed some light on strange 
> behahiour (or sloppy thinking on my part).
>
> If I mount_xfs on OpenBSD (3.9), and run two versions of a programme, one 
> that read(2)s and one that fread(3)s, the read returns end-of-file while 
> the fread returns correct values.

nnpfs dev will only return untruncted messages, you need to pass in a
larger buffer.

fread behavies diffrently because its buffered in libc, ktrace and you'll
see that the read(2) is larger then 1 byte.

Love

_______________________________________________
Arla-drinkers mailing list
[email protected]
https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers
signature.asc (application/pgp-signature, 823 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iQIVAwUARJFS8RZyDLTSep3UAQJGKA/+I6hILXtql7rTeld1dvttD2Wrqq/lbxvv
7UAhA/f1UT1C2PVYQ1vOgogd7/A9kJxvE2s4eqVpcJJbOofnBKBOVO8d1g/llE5V
BtV22M77sx6S5bjb1ubpoCvk6HXNI2YoamlyC1371K1SAYvlEURJy59ig/yNfZKm
D36sVI7XXTJRAFSw9jUpvlVjN4RTICGmUxbrPwVRNfsvjgoLx+kCSkvJb9vUUgxg
1Fm8AVFAsWCggfdarPfMWZWjO5XWcHqoQ0eIrBPcLAPG0165eu7Vmhz+8u3S4VY9
T4BBWT3G0Ju/eFpR7RE4F+nBjJj3c5xrQkgFkk5WSiOUfqF3RX4AOxJkeA1zp35i
kVDhqDkzUcFXA61pkymrFKEEpsIOdX7KUoGdzpgvzEoP+EMpTuO9thfiGG+zPRLO
OoHfq/KvZinlnBncq2sOGDpZZhYflUc9+0BdQSc1DPSCEltC+NoYNRGTgaAvU4d3
IfZM2SV64ANtlqPZ38gsjv8FH7ihkKUhKU4ZZNoHWJOARsFuZOpybwqpToEuAjrC
ydZoVL0BHSLK11vkajTwbNNfc5eDI2KVS1armfJ6VkwJ3S8uhAQmDDBJoci/6j3x
A9DOB4pXCczJqoeI/e6C4R7SfRNcJkf+9rdwNZX/jdzMLjFeaJSQQD/YY3yL9RM0
9H9G1cmJY2w=
=GJcz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.