[3954] in arla-drinkers

home help back first fref pref prev next nref lref last post

Re: xfs behaviour on OpenBSD

daemon@ATHENA.MIT.EDU (=?iso-8859-1?q?Love_H=F6rnquist_=C)
Thu Jun 15 08:31:00 2006

From arla-drinkers-bounces@stacken.kth.se Thu Jun 15 12:31:00 2006
Return-Path: <arla-drinkers-bounces@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 294 invoked from network); 15 Jun 2006 12:31:00 -0000
Received: from mx1.kth.se (130.237.32.140)
  by charon.mit.edu with SMTP; 15 Jun 2006 12:31:00 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx1.kth.se (Postfix) with ESMTP id A829F140BD3;
	Thu, 15 Jun 2006 14:30:58 +0200 (CEST)
Received: from mx1.kth.se ([127.0.0.1])
 by localhost (mx1.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP
 id 01620-01-19; Thu, 15 Jun 2006 14:30:49 +0200 (CEST)
Received: from tapas.stacken.kth.se (tapas.stacken.kth.se [130.237.234.140])
	by mx1.kth.se (Postfix) with ESMTP id 1030214108E;
	Thu, 15 Jun 2006 14:30:49 +0200 (CEST)
Received: from tapas.stacken.kth.se (localhost [127.0.0.1])
	by tapas.stacken.kth.se (Postfix) with ESMTP id 95705534FC;
	Thu, 15 Jun 2006 14:30:48 +0200 (CEST)
X-Original-To: arla-drinkers@tapas.stacken.kth.se
Delivered-To: arla-drinkers@tapas.stacken.kth.se
Received: from brev.stacken.kth.se (brev.stacken.kth.se [130.237.234.84])
	by tapas.stacken.kth.se (Postfix) with ESMTP id A2BB5534FC
	for <arla-drinkers@tapas.stacken.kth.se>;
	Thu, 15 Jun 2006 14:30:46 +0200 (CEST)
Received: from mx3.kth.se (mx3.kth.se [130.237.48.97])
	by brev.stacken.kth.se (8.12.10/8.12.10) with ESMTP id k5FCUi1F019232
	for <arla-drinkers@stacken.kth.se>;
	Thu, 15 Jun 2006 14:30:45 +0200 (MET DST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx3.kth.se (Postfix) with ESMTP id 77BC6140D28
	for <arla-drinkers@stacken.kth.se>;
	Thu, 15 Jun 2006 14:30:44 +0200 (CEST)
Received: from mx3.kth.se ([127.0.0.1])
	by localhost (mx3.kth.se [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP
	id 27852-01-47 for <arla-drinkers@stacken.kth.se>;
	Thu, 15 Jun 2006 14:30:43 +0200 (CEST)
Received: from nutcracker-2.local (unknown [69.220.228.106])
	by mx3.kth.se (Postfix) with ESMTP id 25CF9140851
	for <arla-drinkers@stacken.kth.se>;
	Thu, 15 Jun 2006 14:30:43 +0200 (CEST)
Received: by nutcracker-2.local (Postfix, from userid 501)
	id 017016F5276; Thu, 15 Jun 2006 08:30:41 -0400 (EDT)
To: Kristaps Johnson <kristaps@gradient-enterprises.com>
Subject: Re: xfs behaviour on OpenBSD
References: <Pine.LNX.4.64.0606150720530.5425@cycle0.hinterlands.net>
From: =?iso-8859-1?q?Love_H=F6rnquist_=C5strand?= <lha@kth.se>
Date: Thu, 15 Jun 2006 08:30:39 -0400
In-Reply-To: <Pine.LNX.4.64.0606150720530.5425@cycle0.hinterlands.net>
	(Kristaps
	Johnson's message of "Thu, 15 Jun 2006 07:29:53 -0400 (EDT)")
Message-ID: <m2wtbimwi8.fsf@nutcracker-2.local>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.0.50 (darwin)
MIME-Version: 1.0
X-Virus-Scanned: by amavisd-new at kth.se
X-Spam-Status: No, hits=-4.9 tagged_above=-200.0 required=5.0 tests=BAYES_00
X-Spam-Level: 
Cc: arla-drinkers@stacken.kth.se
X-BeenThere: arla-drinkers@stacken.kth.se
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Arla discussions <arla-drinkers.stacken.kth.se>
List-Unsubscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>, 
	<mailto:arla-drinkers-request@stacken.kth.se?subject=unsubscribe>
List-Archive: <http://lists.stacken.kth.se/pipermail/arla-drinkers>
List-Post: <mailto:arla-drinkers@stacken.kth.se>
List-Help: <mailto:arla-drinkers-request@stacken.kth.se?subject=help>
List-Subscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>, 
	<mailto:arla-drinkers-request@stacken.kth.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1111514483=="
Sender: arla-drinkers-bounces@stacken.kth.se
Errors-To: arla-drinkers-bounces@stacken.kth.se
X-Virus-Scanned: by amavisd-new at kth.se

--===============1111514483==
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"

--=-=-=


Kristaps Johnson <kristaps@gradient-enterprises.com> 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


--=-=-=
Content-Type: application/pgp-signature

-----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-----
--=-=-=--

--===============1111514483==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Arla-drinkers mailing list
Arla-drinkers@stacken.kth.se
https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers

--===============1111514483==--

home help back first fref pref prev next nref lref last post