From owner-freebsd-bugs Mon Jan 27 20: 0:37 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C357837B481 for ; Mon, 27 Jan 2003 20:00:32 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65CAA43F75 for ; Mon, 27 Jan 2003 20:00:32 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0S40SNS049069 for ; Mon, 27 Jan 2003 20:00:28 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0S40SQ3049061; Mon, 27 Jan 2003 20:00:28 -0800 (PST) Date: Mon, 27 Jan 2003 20:00:28 -0800 (PST) Message-Id: <200301280400.h0S40SQ3049061@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jacques Garrigue Subject: Re: bin/47538: tar buggy on memory disk partitions Reply-To: Jacques Garrigue Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/47538; it has been noted by GNATS. From: Jacques Garrigue To: keramida@FreeBSD.ORG Cc: bug-followup@FreeBSD.ORG Subject: Re: bin/47538: tar buggy on memory disk partitions Date: Tue, 28 Jan 2003 12:55:39 +0900 From: Giorgos Keramidas > On 2003-01-27 18:15, Jacques Garrigue wrote: > > When used on a memory disk (md), tar exhibits buggy behaviour, > > corrupting the data in subtle ways. [...] > > > > Alternatively, you can copy some large amount of data from > > somewhere: > > > > tar cf - -C /usr bin | tar xvf - -C /tmp > > diff -r /usr/bin /tmp/bin > > Can you try a newer version of the 5.X branch? > It seems that this is fixed in -CURRENT. Thanks for your answer. I tried with -CURRENT of this morning, and could repeat the problem. I confirm that this is a tar specific problem: it is avoided with pax. There seems to be some caching going on, so you may have to tweak sizes. Immediately after boot, copy /usr/bin only is not enough to trigger the problem. But if I also copy /usr/local/bin (30MB), then diff -r on the previously copied /usr/bin finds differences! Note that I am working on an old laptop, with only 64MB of memory, so that the swap is really used. My swap partition is 256MB. Note also that the problem is not swap specific: I could reproduce it with a file-backed md, the file on a ufs partition. I profit from the occasion to confirm also PR i386/45558. Writing on a file backed md hangs, when the file is on an msdos partition. Actually I have another related problem: creating a big file on an msdos partition with dd if=/dev/null of=/dos/myfile seek=200000 hangs also, after allocating the file (scandisk recovers it). --------------------------------------------------------------------------- Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp JG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message