From owner-freebsd-questions@FreeBSD.ORG Fri Jul 22 06:44:01 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A36F21065674 for ; Fri, 22 Jul 2011 06:44:01 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from nm18-vm0.bullet.mail.bf1.yahoo.com (nm18-vm0.bullet.mail.bf1.yahoo.com [98.139.213.138]) by mx1.freebsd.org (Postfix) with SMTP id 3C4BC8FC1C for ; Fri, 22 Jul 2011 06:44:00 +0000 (UTC) Received: from [98.139.212.150] by nm18.bullet.mail.bf1.yahoo.com with NNFMP; 22 Jul 2011 06:44:00 -0000 Received: from [98.139.212.249] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 22 Jul 2011 06:44:00 -0000 Received: from [127.0.0.1] by omp1058.mail.bf1.yahoo.com with NNFMP; 22 Jul 2011 06:44:00 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 478458.29784.bm@omp1058.mail.bf1.yahoo.com Received: (qmail 40992 invoked by uid 60001); 22 Jul 2011 06:44:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1311317040; bh=H12pHg05vD3N73lO9VtYVVsAci5sxE2vsUBCP0oYKis=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=dCcggBGYsoRKS9NcbO1rHoiw4mcbtctSSYnBWl5Mg26qMBW8tVn18pT92LXI37YuwwVqpbcrNYi8fBc7imGduPkIKaCDPiZXfTDjg0CauNYaXF9coZnEbB1RX5BIoC2x2lwiaF4FkVHr4u0k2Psyy+rp7MUAmvEex8agSI2I9rg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=Nj7zl7qUyy+8fhMgp+yaoPAd8zNzYO0u9cQMnKJecIDX9KHl91OQVev/LhTZ4bLAV02GJM+nfYFNOCbXkIHw/XPwruYSxXL/KFn9NjjZWRMbllAmBiaZD8zumJGPxGX0uSO1MjTqBvnYHVVGB15Bt6R/MEAQ431QYsBrDZNf8Ng=; X-YMail-OSG: 6jbDDu0VM1l0VNTrbqCvicjeGnMNqaSgMvomV42q6niUps8 pv9hWS_qptUpZehxTkDKU7ZF4pWRHX_YmAeIzRoDm4U3zIPhvH9dcqzyFAIy E53QEFFMxBiZo6Dxmxi_0fl9Zkdk5osdDD86yM.SBvNWP4yv69EU8CWgnRL1 xBhVbHGqzgbAVS5i.BVEZP5JxvFu8Aj49znRsMb64WLYBY9k11vytEQOllCf NIoqG_G6Y93DQKrkEbxiugE8497cM8TWcD9fES7aS18O4DgycxK.hqi2ztpL gfFsCV6vesUVjlB5N_38pCRw2cR6Z7SE.dTSyICYnwtlHNm370A6FKOY1j_H usyQuljo8Yk_jy1d0Aq6WVqjNHFmyPv5HkFu7YLV7kr_dESYZw_.fqb8- Received: from [112.134.99.113] by web160115.mail.bf1.yahoo.com via HTTP; Thu, 21 Jul 2011 23:44:00 PDT X-Mailer: YahooMailClassic/14.0.3 YahooMailWebService/0.8.112.310352 Message-ID: <1311317040.38368.YahooMailClassic@web160115.mail.bf1.yahoo.com> Date: Thu, 21 Jul 2011 23:44:00 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Fri, 22 Jul 2011 11:11:59 +0000 Subject: How to sync a file on FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2011 06:44:01 -0000 Hi all How to sync a file on FreeBSD (esp. on 8.1) to disk? I used fsync(2), but does not immediately flush to disk. I want my writing to a file (a log file) immediately available to other users to read. Best regards Unga