Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 1998 16:23:54 +0200 (CEST)
From:      xcejka00@dcse.fee.vutbr.cz
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/6465: File contents are zeroed after reboot
Message-ID:  <199804301423.QAA00382@pccejkar.dcse.fee.vutbr.cz>

next in thread | raw e-mail | index | archive | help

>Number:         6465
>Category:       kern
>Synopsis:       File contents are zeroed after reboot
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 30 07:30:03 PDT 1998
>Last-Modified:
>Originator:     Rudolf Cejka
>Organization:
FEE TU Brno, Czech Republic
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	First of all, I tried this on "FreeBSD 3.0-980304-SNAP i386"
	(GENERIC kernel too). File contents were zeroed totally. Now,
	I'm trying today's -CURRENT (Thu Apr 30 1998) and it looks
	"better" - files are zeroed only partially... But it still does
	not look very well... (ffs is my root filesystem.)

>Description:

	Look at how-to-repeat. When I'm trying to use nullfs layer,
	everything looks well until reboot. But after reboot - contents
	of files are disrupted, if they were copied via nullfs layer.

>How-To-Repeat:

	It's very easy. Just type these commands:
	(Important note: File "any_file" must be long enough, 30000 bytes or
	more for example.)

	cd /
	mkdir test
	mount -t null /test /mnt
	cp any_file /mnt/test.bad
	cp any_file /test/test.ok
	diff /test/test.bad /test/test.ok
	... Files are the same, OK
	... Reboot Your machine ...
	diff /test/test.bad /test/test.ok
	... And files differ!!!Lengths are the same, but content of
	    /test/test.bad is partially zeroed

>Fix:
	
	I tried to find this bug, but I haven't any idea. I think - the
	problem is in ffs or memory management (nullfs looks normally).

>Audit-Trail:
>Unformatted:

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?199804301423.QAA00382>