From owner-freebsd-fs@FreeBSD.ORG Fri Sep 17 20:22:54 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C4C16A4CE for ; Fri, 17 Sep 2004 20:22:54 +0000 (GMT) Received: from web41207.mail.yahoo.com (web41207.mail.yahoo.com [66.218.93.40]) by mx1.FreeBSD.org (Postfix) with SMTP id 7018C43D2D for ; Fri, 17 Sep 2004 20:22:54 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Message-ID: <20040917202254.5843.qmail@web41207.mail.yahoo.com> Received: from [83.129.247.236] by web41207.mail.yahoo.com via HTTP; Fri, 17 Sep 2004 13:22:54 PDT Date: Fri, 17 Sep 2004 13:22:54 -0700 (PDT) From: Arne "Wörner" To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: soft updates / short or lost files after system crash X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 20:22:54 -0000 Hi! I experienced a. short and b. disapeared files on two of my ufs2 fs with soft updates enabled (in an intentional system crash caused by pressing the reset button). Test cases:{ 1. I did a > dd if=/dev/zero of=a bs=1 [where a was in the fs on ad1s1e] and when the file a was about 1MB, I pressed the reset button (I wanted to do a sync shortly before pressing the button, but I am not sure now, if I did). After the next reboot background fsck logged some messages (see appendix A). The file a disapeared. 2. I did a > dd if=/dev/zero of=/root/a bs=1 & dd if=/dev/zero of=/opt/a & sync ; sleep 20 ; sync [where /root/a is in a non-soft-updates fs; and /opt/a is in a soft-updates fs] and pressed the reset button shortly after the second sync, when the files where about 2MB. After the next reboot ackground fsck logged some messages (see appendix B). The file /root/a was about 2MB and /opt/a just 2K. } I was quite sure, that a sync would bring every unclean block to disc before it terminates or abount at its termination time. Did I do something wrong (maybe mis-configuration)? Is there a bug in the soft updates configuration? Should I write a bug report? Thank you for your time. Bye Arne appendix A: Sep 17 19:23:31 neo fsck: /dev/ad1s1e: Reclaimed: 0 directories, 1 files, 424 fragments Sep 17 19:23:31 neo fsck: /dev/ad1s1e: 106404 files, 26065010 used, 33244724 free (4620 frags, 4155013 blocks, 0.0% fragmentation) appendix B: Sep 17 19:38:02 neo fsck: /dev/ad1s1e: INCORRECT BLOCK COUNT I=3 (3712 should be 4) (CORRECTED) Sep 17 19:38:02 neo fsck: /dev/ad1s1e: Reclaimed: 0 directories, 0 files, 929 fragments Sep 17 19:38:02 neo fsck: /dev/ad1s1e: 106254 files, 26058903 used, 33250326 free (4614 frags, 4155714 blocks, 0.0% fragmentation) _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com