Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp38735pxk; Wed, 16 Sep 2020 16:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJmTB4qSS90AzKyQT8gFTagEPJ/xLq8MsuQDJ/TQLqH3A3GPXI6pwIki0lWrn/NuwG2rbg X-Received: by 2002:a17:906:158a:: with SMTP id k10mr27269983ejd.174.1600298835798; Wed, 16 Sep 2020 16:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600298835; cv=none; d=google.com; s=arc-20160816; b=el+335H4O7cCI3ClfDxSY9zxAyEzwZnqguYLomgnkhl/8qHiHP7fy2ugYRuv6YUqBh +9+kDHtg7ZxxSosv/hMEjDfBhvJnpgbqzUXhCwZu/TGnamNhrUnCLXyb3ifjnlT2upp/ uGLhAx4nNFAXhNm628DPgn+AYsbB+48/eN8rAJrvmiLh8/aUFeqk56Zd7btAPw73uWev ic8uU8ttIm6bEAHeqbCGWDTpztF4wrgXj7vCIVNgpjHoR8eZyA+Xbu62UrJQh+3RU3ol vaLuINVbwkazkiMxTk7Ir1yTJ2+W/y2ITsIF3zjgdq2HMg+NwDV8EcCn4zQ/R1OpJ4ko cZ/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:references:in-reply-to :subject:cc:date:to:from; bh=uqpKbz7MctIERrpeoCaP+8GCR8sNW/voY2O11qtD+VQ=; b=ZKWWTbB45LoHJ8xBNoeXeKXVc9bE6/Ar+kBWICZwRpPKFyMvrRIvkNB5Pc27kMu2Sa 6dBSqVwsP66VVW1omzoG5nLPa9vTB0OX71drPzevX2tNP4P9xjtCrhluPxcLgEU2BceO azy5tsO222bu7RryX2mSPEZYCneyGCuaVhqp1W5Ss4F2WSB3A2b69c6cghbjcILuZGy3 2vjR07/KCnhEiLwbfqSs2YuF6oCjwm4qtu6YnBCACULZkDFWzAV9yeTAzVsqg4KmO3dv oGc06zupVpTdtQhHpeJSr6CStY4LJEufKalyKM/nEH9cK3bSjyanbOllVauJCYoHILvF Hjbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r7si12932412ejy.514.2020.09.16.16.26.50; Wed, 16 Sep 2020 16:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbgIPXZr (ORCPT + 99 others); Wed, 16 Sep 2020 19:25:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:47236 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbgIPXZr (ORCPT ); Wed, 16 Sep 2020 19:25:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 35CEDAC3F; Wed, 16 Sep 2020 23:26:01 +0000 (UTC) From: NeilBrown To: Jeff Layton , Jan Kara , "Michael Kerrisk (man-pages)" Date: Thu, 17 Sep 2020 09:25:36 +1000 Cc: milan.opensource@gmail.com, lkml , Andrew Morton , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH] fsync.2: ERRORS: add EIO and ENOSPC In-Reply-To: <8842543f4c929f7004cf356224230516a7fe2fb7.camel@kernel.org> References: <1598685186-27499-1-git-send-email-milan.opensource@gmail.com> <20200908112742.GA2956@quack2.suse.cz> <87k0x2k0wn.fsf@notabene.neil.brown.name> <8842543f4c929f7004cf356224230516a7fe2fb7.camel@kernel.org> Message-ID: <87sgbhi9sf.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, Sep 10 2020, Jeff Layton wrote: > >> Regarding your "NOTES" addition, I don't feel comfortable with the >> "clean" language. I would prefer something like: >>=20 >> When fsync() reports a failure (EIO, ENOSPC, EDQUOT) it must be assumed >> that any write requests initiated since the previous successful fsync >> was initiated may have failed, and that any cached data may have been >> lost. A future fsync() will not attempt to write out the same data >> again. If recovery is possible and desired, the application must >> repeat all the writes that may have failed. >>=20 >> If the regions of a file that were written to prior to a failed fsync() >> are read, the content reported may not reflect the stored content, and >> subsequent reads may revert to the stored content at any time. >>=20 > > Much nicer. I guess someone should turn it into a patch.... > > Should we make a distinction between usage and functional classes of > errors in this? The "usage" errors will probably not result in the pages > being tossed out, but the functional ones almost certainly will... Maybe. I think it is a useful distinction, but to be consistent it would be best to make it in all (section 2) man pages. Maybe not all at once though. It is really up to Michael if that is a direction he is interesting in following. NeilBrown > > --=20 > Jeff Layton --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCAAsFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl9invEOHG5laWxiQHN1 c2UuZGUACgkQOeye3VZigbnU4Q//aNSYicYkJ0wMvKqbDFZKVkkiZ1Ze0PHZO0WR /p+oyRJk0EC3wsG7CTjTgk71DCeMGMh7SQLenHx2apGrzSg585/icGvnj6rY433e FpgleXqdsf0JkRRFvfW1SkK7ak2Qkd39nExoYX3E7nuJUQsi6JQlZwMyxQE6pO8P YfIkwENISnk2kc6L24dboNt1W4Rbg/s4UQC8hNP/8XCHNdtZ/04XsFLdsbzAK87B DWXGDTUPEisXqE0lvQWE1KDoeWQNB8R6bYbSUCQjqOoemqKEnmVWD8kbttpmlaOz /mpIeYsAwp5kQuR1NePCog9zykUML9tfSKjtdoWGVgTB854gzmMFt07KbmsmipL0 YQaGsHnWl7u520D2EJ2Y3oS5DnizAKRGG2jv3i64eIWD9lAl6Cg0VS3AOLHAd1Jn xNlpi+tKOklZNPj41mTViAE30UtYYeqy5F7cJG+3gkc/V6a6KgSgMeE84WTaOF67 eqP9ijvWsOTK6TbIif+3Wqiacgk5OHZQ3bpCgub87Na2IsazfB+jpVYxZfledwSo Xn2acKrPwo8qMhaMzEnJC6DDGeyL1TqOTeQHyk9Ja2AvaZa43a80jyWMjpJCEcgq fcqCpO2OPAKGAlgXI2yRvApvZdw2lEUx4CPjGR0f46H74IcOdjjVnhhHL3ndnI4p 1pnGIIE= =o6L5 -----END PGP SIGNATURE----- --=-=-=--