Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jan 2003 20:00:28 -0800 (PST)
From:      Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/47538: tar buggy on memory disk partitions
Message-ID:  <200301280400.h0S40SQ3049061@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/47538; it has been noted by GNATS.

From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
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 <keramida@FreeBSD.ORG>
 > On 2003-01-27 18:15, Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp> 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
 		<A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301280400.h0S40SQ3049061>