[3955] in arla-drinkers

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

Re: xfs behaviour on OpenBSD

daemon@ATHENA.MIT.EDU (Kristaps Johnson)
Thu Jun 15 08:44:46 2006

From arla-drinkers-bounces@stacken.kth.se Thu Jun 15 12:44:46 2006
Return-Path: <arla-drinkers-bounces@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 860 invoked from network); 15 Jun 2006 12:44:46 -0000
Received: from mx1.kth.se (130.237.32.140)
  by charon.mit.edu with SMTP; 15 Jun 2006 12:44:46 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx1.kth.se (Postfix) with ESMTP id 3F5701405D9;
	Thu, 15 Jun 2006 14:44:45 +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 29731-01-90; Thu, 15 Jun 2006 14:44:31 +0200 (CEST)
Received: from tapas.stacken.kth.se (tapas.stacken.kth.se [130.237.234.140])
	by mx1.kth.se (Postfix) with ESMTP id 12AEA140867;
	Thu, 15 Jun 2006 14:44:31 +0200 (CEST)
Received: from tapas.stacken.kth.se (localhost [127.0.0.1])
	by tapas.stacken.kth.se (Postfix) with ESMTP id CBBF8534FC;
	Thu, 15 Jun 2006 14:44:30 +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 306F3534FC
	for <arla-drinkers@tapas.stacken.kth.se>;
	Thu, 15 Jun 2006 14:44:29 +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 k5FCiS1F019377
	for <arla-drinkers@stacken.kth.se>;
	Thu, 15 Jun 2006 14:44:28 +0200 (MET DST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx3.kth.se (Postfix) with ESMTP id 5AC62140D28
	for <arla-drinkers@stacken.kth.se>;
	Thu, 15 Jun 2006 14:44:28 +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 30139-01-14 for <arla-drinkers@stacken.kth.se>;
	Thu, 15 Jun 2006 14:44:27 +0200 (CEST)
Received: from outbound.mailhop.org (outbound.mailhop.org [63.208.196.171])
	by mx3.kth.se (Postfix) with ESMTP id D1004140DF7
	for <arla-drinkers@stacken.kth.se>;
	Thu, 15 Jun 2006 14:44:26 +0200 (CEST)
Received: from syru32-020.syr.edu ([128.230.32.20]
	helo=dryad.gradient-enterprises.com)
	by outbound.mailhop.org with esmtpa (Exim 4.51)
	id 1FqrCz-0005uj-D0; Thu, 15 Jun 2006 08:44:25 -0400
Received: from cycle0.hinterlands.net (cycle0.hinterlands.net [192.168.1.168])
	by dryad.gradient-enterprises.com (Postfix) with ESMTP id DAEF43C94A;
	Thu, 15 Jun 2006 08:47:29 -0400 (EDT)
Received: from kristaps (helo=localhost)
	by cycle0.hinterlands.net with local-esmtp (Exim 3.36 #1 (Debian))
	id 1FqrDB-0002fY-00; Thu, 15 Jun 2006 08:44:37 -0400
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 128.230.32.20
X-Report-Abuse-To: abuse@dyndns.com (see
	http://www.mailhop.org/outbound/abuse.html for abuse reporting
	information)
X-MHO-User: wwcrew
Date: Thu, 15 Jun 2006 08:44:37 -0400 (EDT)
From: Kristaps Johnson <kristaps@gradient-enterprises.com>
X-X-Sender: kristaps@cycle0.hinterlands.net
To: =?iso-8859-1?q?Love_H=F6rnquist_=C5strand?= <lha@kth.se>
Subject: Re: xfs behaviour on OpenBSD
In-Reply-To: <m2wtbimwi8.fsf@nutcracker-2.local>
Message-ID: <Pine.LNX.4.64.0606150832160.5425@cycle0.hinterlands.net>
References: <Pine.LNX.4.64.0606150720530.5425@cycle0.hinterlands.net>
	<m2wtbimwi8.fsf@nutcracker-2.local>
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: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: arla-drinkers-bounces@stacken.kth.se
Errors-To: arla-drinkers-bounces@stacken.kth.se
X-Virus-Scanned: by amavisd-new at kth.se


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

Problem solved.  I was trying to read a single sizeof struct 
nnpfs_message_header and kept receiving eof.  I'll revert back to 
NNPFS_MSG_MAX_DATASIZE.  Thank you, Kristaps.
_______________________________________________
Arla-drinkers mailing list
Arla-drinkers@stacken.kth.se
https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers

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