Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp758140pxk; Wed, 9 Sep 2020 19:20:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlVQxOhKBF0DuYctF2i/XYq0HM/uV2poVrZJDOhZhvjBYaEL4fQ8BCHrmLadtP9BDbIEHx X-Received: by 2002:a50:f687:: with SMTP id d7mr7339124edn.353.1599704416390; Wed, 09 Sep 2020 19:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599704416; cv=none; d=google.com; s=arc-20160816; b=h7HohERj5rJPPwlKvxKUsImRDN0da1++Ukxvi73kBbySKm+YEDjsMfvpqvkspnuTNZ jbRvHSCBltgIaj2d2c03OGyjVM1qxe8knnYsmpwGsfimiKBa2KWmizpZgN6aD6HLtuKf vxCDz2zqFAutBVYoNopgTwJyxPWWriYf5runIyOs5I0jmqYt1XAMC9G63bRk8k5ITce1 8kg+w8a9BEExyejKSgqvm2eA39v1THhp39mWBtPHH5QX3t2UqSTrCxqyM5BRWB9Fn+mk TSZYLByJD/9Q4FrKVVZPwpuzx0WbWqqTYdrc1hVHXoZY0nOEflKoEBVU4T6mc/+qG4Xt elbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from; bh=/yDE9q5rL1F9u4TJjGtGl/YjVUVbpvmcJXCNiNdTc4s=; b=VBhAC2u3YHk0Orp0NTd9J9PNwyAt2S1FZZBa97QH+MA3b4SK0h3uma2NxsuU9yNJfD FwAQLYU3HftOukVxJXpiWIigjbixA+Kdoxzqtxzxq9PGsTyvhVGzSWJCVUvUIi+HaNSP q4fA96qdzjrE9quFJtfAWV3jVkelm2hWshF5F8yKqGrBFlR/pzfUQIMXoS+IDY18pyRr okhFhJm11pri5K6mG6K7YCeC7WmcITPN2dZW/osAWN8YVH1pyF03Dt0JSH/eF/oorzg2 t5RkzTAR0h2PwJlDCWAkhQCazCrtFFHXbdoGPfdVFgV0idd8NJFfExCNqOQNEfz/5ZP3 jO8A== 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 ci12si517505ejc.448.2020.09.09.19.19.53; Wed, 09 Sep 2020 19:20:16 -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 S1730518AbgIJCQ6 (ORCPT + 99 others); Wed, 9 Sep 2020 22:16:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:52348 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730581AbgIJCNq (ORCPT ); Wed, 9 Sep 2020 22:13:46 -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 B68A2AC1F; Wed, 9 Sep 2020 22:51:06 +0000 (UTC) From: NeilBrown To: Jeff Layton , Jan Kara , "Michael Kerrisk (man-pages)" Date: Thu, 10 Sep 2020 08:50:42 +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: References: <1598685186-27499-1-git-send-email-milan.opensource@gmail.com> <20200908112742.GA2956@quack2.suse.cz> Message-ID: <87mu1yk1j1.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, Sep 08 2020, Jeff Layton wrote: > > Yep. > > My only comment is that there is nothing special about EIO and ENOSPC. There are two type of errors that fsync can return. EBADF EROFS EINVAL - these are usage errors. EIO ENOSPC EDQUOT - these are functional failures. So I would say there *is* something special about those errors, though it isn't *very* special, and it isn't *just* those errors. EDQUOT should be included in the list. NeilBrown > All errors are the same in this regard. Basically, issuing a new fsync > after a failed one doesn't do any good. You need to redirty the pages > first. > --=20 > Jeff Layton --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCAAsFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl9ZXEMOHG5laWxiQHN1 c2UuZGUACgkQOeye3VZigbmtzxAAhBP7kWRRvSM5FxqzA6R1/UmOSLt/LHYytyww brm0loAU/lStB6kJcF7eTUBo+4hQaKNyTwfoAQCVTi+u3oEhvz/TsR1Zmc8qLY5X 6N0f0bFjIbRghPVBjqi1HZX08ZPJkiQF1XsYRKwnijf6WChLZy8Fh6bi5hPo61KU KyG6Lt0S2NQj62lPvCdy6JfxXDeQPZ4nMRu99d5of8yShcdPyIhH1nTRg0gnLsvF 4HDmxYiY6DzJwdjvHOohTMIvQNd8v+fUWLP8TbI7F6xJeqSEWpi2SMs9q5HL/rGq Dn6DA3xkS4kqH1iWRZYdhvPSoWHLeHMl6z5GIvKsc1PuxGuek1sqR9Lw9KQSFBY6 QMf2RkBSQnmm5PFPq1xQsm3SDDS9YIFHt+GRDZWtD6yHzUoz8xe27g9j4uUqDVNn lzG2v+Ae7UcyhJIOJjiYh3n+JysUgUhEbx/1VSc0Sykg7O778OWafouAsp9UEoDD zyWNp2n9cltcjJ4cRA0qmWNYcSf6tTeJSaCkfsqnsYdVMmpjRM04MHm1K7nlYs2L dBbAfwXLw3aMkZFXuFLhigFyjgqj0+OBLR4imrfbYn83OfH/im3Hd6umhP05eaZ+ HbJi7W0Vj9xUavYd09qkrdRD/JHJnqazKD4o6FIV4jvfcMfl0iRnTK6Y5aq1WcQ1 T4ak25w= =8VKx -----END PGP SIGNATURE----- --=-=-=--