From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13029CA9ECF for ; Fri, 1 Nov 2019 20:57:58 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C039B217D9 for ; Fri, 1 Nov 2019 20:57:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C039B217D9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 474ZJz3DcyzF68v for ; Sat, 2 Nov 2019 07:57:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=209.85.167.193; helo=mail-oi1-f193.google.com; envelope-from=geert.uytterhoeven@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Received: from mail-oi1-f193.google.com (mail-oi1-f193.google.com [209.85.167.193]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 474ZJr3XK9zF5yv for ; Sat, 2 Nov 2019 07:57:45 +1100 (AEDT) Received: by mail-oi1-f193.google.com with SMTP id b19so45306oib.13 for ; Fri, 01 Nov 2019 13:57:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B2Wo++qvCAWopO2MVN1SxMuOaw9O5ooxGYbXrtTGoLc=; b=JFmsn8q8YeMYzqyuY8ekeCzbwnRHcYtNiPzdH3ZpHdUgbh5a7bibt+QnsggbZlCFCl 7MtDXm8hjaDWGRMcmngbPSDqs7+793a+ushcArrHzGKssIFVJJKYXCCaveWB0zF8cbQ7 fUlJGTS5ObaREM9py1GkviflM0qMJhsjSzZXILWZpPVmS+uFEV+0/mDpDs7ZyPIEqyq/ 0iZrPs2Q9MloWAOutjFLpaoNrhluvDNUcmcHRYC20McUVo4AEGvvM/dIu0dHQzbHbNnt hVkZKst7tXYhSZ9Rnrtk7b+bkqeeeCqL+iSoYJDehsdwFYotEaBk5YvKjH1+59Lsos91 49sA== X-Gm-Message-State: APjAAAUVerfwolcgUYilHDh6i7Llb/DsSW+2ujQ+uIphVZLght7VsRFM Do6Nu6H3F1Wuv8L8SHswNQ1KFKwWyYKK6kDA+Lk= X-Google-Smtp-Source: APXvYqyMPGVgSghm8B6Z8BliWMbf63SJMtQqkLmxrpCWnOLjhSTH18y22Nnv6Mk4zTGM1EgQgPb5eF27WcBVRETo4XE= X-Received: by 2002:a05:6808:60a:: with SMTP id y10mr3730740oih.102.1572641862721; Fri, 01 Nov 2019 13:57:42 -0700 (PDT) MIME-Version: 1.0 References: <20191031010736.113783-1-Valdis.Kletnieks@vt.edu> In-Reply-To: <20191031010736.113783-1-Valdis.Kletnieks@vt.edu> From: Geert Uytterhoeven Date: Fri, 1 Nov 2019 21:57:31 +0100 Message-ID: Subject: Re: [RFC] errno.h: Provide EFSCORRUPTED for everybody To: Valdis Kletnieks Content-Type: text/plain; charset="UTF-8" X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: driverdevel , Linux-Arch , Theodore Ts'o , Arnd Bergmann , "Darrick J. Wong" , Greg Kroah-Hartman , Linux Kernel Mailing List , linux-f2fs-devel@lists.sourceforge.net, linux-xfs@vger.kernel.org, Andreas Dilger , Jan Kara , Linux FS Devel , Jaegeuk Kim , Gao Xiang , Ext4 Developers List , linux-erofs@lists.ozlabs.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Hi Valdis, On Thu, Oct 31, 2019 at 2:11 AM Valdis Kletnieks wrote: > Three questions: (a) ACK/NAK on this patch, (b) should it be all in one > patch, or one to add to errno.h and 6 patches for 6 filesystems?), and > (c) if one patch, who gets to shepherd it through? > > There's currently 6 filesystems that have the same #define. Move it > into errno.h so it's defined in just one place. > > Signed-off-by: Valdis Kletnieks Thanks for your patch! > --- a/include/uapi/asm-generic/errno.h > +++ b/include/uapi/asm-generic/errno.h > @@ -98,6 +98,7 @@ > #define EINPROGRESS 115 /* Operation now in progress */ > #define ESTALE 116 /* Stale file handle */ > #define EUCLEAN 117 /* Structure needs cleaning */ > +#define EFSCORRUPTED EUCLEAN I have two questions: a) Why not use EUCLEAN everywhere instead? Having two different names for the same errno complicates grepping. b) Perhaps both errors should use different values? Do they have the same semantics? I'm not a fs developer, so this is a bit fuzzy to me. According to Documentation/, one seems to originate in mtd, the other in xfs. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds