From e569de96a05c620200e32f409dc058b0cfe421b1 Mon Sep 17 00:00:00 2001 From: Kushal Kumaran Date: Wed, 7 May 2014 16:50:51 +0530 Subject: [PATCH] Re: Linux-only fdatasync() in 3c13bc --- 8f/d66be6cb11034646cb37b458129937aaa7dfaf | 103 ++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 8f/d66be6cb11034646cb37b458129937aaa7dfaf diff --git a/8f/d66be6cb11034646cb37b458129937aaa7dfaf b/8f/d66be6cb11034646cb37b458129937aaa7dfaf new file mode 100644 index 000000000..e8a0338bd --- /dev/null +++ b/8f/d66be6cb11034646cb37b458129937aaa7dfaf @@ -0,0 +1,103 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 764AD431FAF + for ; Wed, 7 May 2014 04:21:17 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id kHPsGpLHhevk for ; + Wed, 7 May 2014 04:21:11 -0700 (PDT) +Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com + [209.85.216.49]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 7B79D431FAE + for ; Wed, 7 May 2014 04:21:11 -0700 (PDT) +Received: by mail-qa0-f49.google.com with SMTP id cm18so803921qab.8 + for ; Wed, 07 May 2014 04:21:09 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=sender:from:to:subject:in-reply-to:references:user-agent:date + :message-id:mime-version:content-type; + bh=QXfGSWwPj4VcyFdq5VckATc/1J022a7Boq0rm1lW+1I=; + b=KhvFPhx3EUlFHtbC88Kk154eKzcE6Sj7QN+p/8y5iwBafoPYSele+Z9HAdYBp95nvy + sawEdpzhYalQBwjcJzze0Kat/UyZoFjWsZBhnzzeK9GV6otecaylY21r0v2voHx2HfDw + 7uc0AbTBZGntsUVUxQc+owggJA9QA4kjWpdPKzKxTKxQ8cOcgEcwalvWAwOmI6czcP0Y + yM0caXa9SBAaX89nf73G/gH1Qm5du6j5/t2YowFyLM0qQD32FoG9P1myQ59aj2Yg/Din + D5i3Gb0dye9G0FJBvgyleyHJrWj1/00hXxr/DjTyQ2efB8FjphF80pIFI4gmiSPe3sYl + mtvg== +X-Received: by 10.224.22.195 with SMTP id o3mr64469657qab.51.1399461668784; + Wed, 07 May 2014 04:21:08 -0700 (PDT) +Received: from magnesium ([198.199.83.138]) + by mx.google.com with ESMTPSA id b5sm28792146qar.1.2014.05.07.04.21.06 + for + (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); + Wed, 07 May 2014 04:21:07 -0700 (PDT) +X-Google-Original-Message-ID: <87lhudvnqk.fsf@carbon.locationd.net.> +Sender: Kushal Kumaran +Received: by magnesium (Postfix, from userid 1000) + id 1E90049BC7; Wed, 7 May 2014 16:51:06 +0530 (IST) +From: Kushal Kumaran +To: notmuch@notmuchmail.org +Subject: Re: Linux-only fdatasync() in 3c13bc +In-Reply-To: <20140506195938.GA18213@coyotlan.Tlalpan> +References: <20140506195938.GA18213@coyotlan.Tlalpan> +User-Agent: Notmuch/0.17+251~g8ecc7db (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Wed, 07 May 2014 16:50:51 +0530 +Message-ID: <536a1723.0578e00a.601a.ffff976f@mx.google.com> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha1; protocol="application/pgp-signature" +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 07 May 2014 11:21:17 -0000 + +--=-=-= +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable + +X=C4=ABc=C3=B2 writes: + +> Also, commit 3c13bc introduced a call to fdatasync() which is not +> available on FreeBSD, and probably not either on MacOS at least. +> + +fdatasync is POSIX: +http://pubs.opengroup.org/onlinepubs/009695399/functions/fdatasync.html + +=2D-=20 +regards, +kushal + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQEcBAEBAgAGBQJTahcUAAoJEKolkdITDqLtQ6wIAIvXr3mI55gguMxX1ygloS9/ +AeyIupAEOYnpGAytV1snvDytlTKbU5WQ7jESjlXN2Sp5nY+pJ1Tiqf94Ox+7z15n +zOmriDq5VXS7yhm1t2l75U2BSQXiTIpGNG20YFqrge5/1yJK0Yq1c5627PaFrCoM +PF2WVsZ+lg5Wk6cF8lEae8GTAGmgPt2UvHC7H+yFNKoSTSd9tFGGY6UbS2gQdoIi +S4K6PHV+Q+Ido4UtojNDLGEmAiAJy6wYxozeAWJKL9WRPKg8+l24wKs0ibel9ejn +m5hNXXNV5PBw8rfqS9jFV7dlFAGkFeBkl/Fz3LdRaF77Q1E5ux3O/eO8xjmX+Dc= +=mb9R +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2