From owner-freebsd-questions@FreeBSD.ORG Tue Oct 15 08:44:03 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 509B1E88 for ; Tue, 15 Oct 2013 08:44:03 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-qe0-x22f.google.com (mail-qe0-x22f.google.com [IPv6:2607:f8b0:400d:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0FDD62D32 for ; Tue, 15 Oct 2013 08:44:02 +0000 (UTC) Received: by mail-qe0-f47.google.com with SMTP id b4so5916599qen.6 for ; Tue, 15 Oct 2013 01:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=C1F0WrE5GumYHxYTiiItCo8h2LoomBTkXxrIoTns3Yo=; b=DloxP2I+92F6v+u6W/TPysE23HqZiYlZMYanqiHstBrcSlUWHy0NiOKnT+AWMi3p65 Wq0vSlW4tbyVOHeJ/OfW7jUoipUbhcKLRG48pQuXMpPPWdcLOk2WbEsa7J7xjpQT3/2x JJGyFZiBg/cioPB6BQI9QUta/WVyN7m8thQtMD2R0xMpsllC30t7s5vMpaBQ0djUXnxk 7p+u7UAQMYdKOwsAw/E99YEaJMKdc7/F/Fym1/oNL2r5jDHFqbMAespfecHQwqI6zO5x 4biTjgyaDCuz3Q6w4qVNP7E+rC5ltMMs0TCa6OGCzexWftdo4W4IGMqopT3qx6/NiE2/ xWlg== MIME-Version: 1.0 X-Received: by 10.49.12.237 with SMTP id b13mr5554936qec.15.1381826642148; Tue, 15 Oct 2013 01:44:02 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.49.16.170 with HTTP; Tue, 15 Oct 2013 01:44:01 -0700 (PDT) In-Reply-To: <2351E8C5-4FC0-4AE9-AC21-312DA46C0EE8@mac.com> References: <525A6831.5070402@gmail.com> <20131014133953.58f74659@gumby.homeunix.com> <525C1D1C.9050708@gmail.com> <525C2554.7080203@pchotshots.com> <525C2FBC.4080808@cran.org.uk> <2351E8C5-4FC0-4AE9-AC21-312DA46C0EE8@mac.com> Date: Tue, 15 Oct 2013 10:44:01 +0200 X-Google-Sender-Auth: dzJV0WjFsujPzLMswTNOAFoVCWA Message-ID: Subject: Re: SU+J Lost files after a power failure From: CeDeROM To: Charles Swiger Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Daniel Feenberg , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 08:44:03 -0000 On Mon, Oct 14, 2013 at 11:04 PM, Charles Swiger wrote: > First, unless you call fsync() before close() and your OS and/or drive ha= rdware isn't being deceptive when fsync() returns about whether the bits ha= ve made it to permanent storage, then you might be surprised at just how lo= ng the unwritten buffers containing the last updates to the file data take = to get properly flushed to disk. Nice hint! Thank you! :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info