Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4095025imm; Mon, 30 Jul 2018 08:35:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdEIkRuMFhTtKnGVeFX1LIvFZvuc1ws4pNFMc3kwQit53RCh8depuoDUKSb/fZMqvSPWHlT X-Received: by 2002:a63:3190:: with SMTP id x138-v6mr16789413pgx.60.1532964907757; Mon, 30 Jul 2018 08:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532964907; cv=none; d=google.com; s=arc-20160816; b=JfCrqiC+SmHUdSjS4vJSIUJdHIxdlfuHSMxjQlYqPnfESLlVp1cHHKrUxJxa7/a7N/ 6dcT12ZYIuaz2y6LtWYjB+Am0FpQLLz7otquYDSlCYPZ1V1VnvmCLCsF6TrWFf54w+u5 //Fvwd9JaUtp6ifS2BC3qwBVB3/N/ydOVeblc4ey9p7QE5Ly86zsirWe3PmFyAk+WytR GFDe1XYCIGD04Q/eJ+8i9ukfn2T+TU82fWyGjo5RmiQKcC2xCxeLubIWPbY1QB9c4bRf isODUxCYTcQRgVvbvpjosPsUDUPG0u3l0NBcxoQNu/kFTBpOUYOJ3d6ZbzC/H1bfTEDU rG3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=LTiZ3ONQn+FWeSors3ZLi4iqpyblwKpLfDuonWDqQ40=; b=lIned29652KZyA/ujKUIh2LvEcSVMFQW8Y+1LdpH1b+1ak/4RdcootX1MrV10lx8nC amNOQ7BubtXnCLE2FR+pG6J2XHheLnw8xCLACxRVYeZRDZ5bWJU/8E5w70GiJCVxyHnI d8ft8uP48geJzUzDxxVXy5H7xTIhvqfyEZcQn6lQkcOjd7+oKpsRUfve//Klaaehm/zq V32qK16ha097s7ERiC2shGxiRxqGdvQCazr3mEMzkT+y9ixVrioiMiNz81YL/gdGQfZ4 ECT/E2oAWFbm7P6JaH03HpHSyGHoGWhJcpMsJnPJWysI2+6xDEOewmprNwApE8VHsi5j X8oQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n128-v6si11498501pfn.90.2018.07.30.08.34.53; Mon, 30 Jul 2018 08:35:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728713AbeG3RIr (ORCPT + 99 others); Mon, 30 Jul 2018 13:08:47 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36592 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726798AbeG3RIr (ORCPT ); Mon, 30 Jul 2018 13:08:47 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 93EBF805A530; Mon, 30 Jul 2018 15:33:16 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id CBFE32026D68; Mon, 30 Jul 2018 15:33:15 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20180730143104.GB24051@amd> References: <20180730143104.GB24051@amd> <20180729113749.GA7333@amd> <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> <153271292330.9458.14583488053811372222.stgit@warthog.procyon.org.uk> <25489.1532953411@warthog.procyon.org.uk> To: Pavel Machek Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 36/38] vfs: Add a sample program for the new mount API [ver #10] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21164.1532964795.1@warthog.procyon.org.uk> Date: Mon, 30 Jul 2018 16:33:15 +0100 Message-ID: <21165.1532964795@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 30 Jul 2018 15:33:16 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 30 Jul 2018 15:33:16 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pavel Machek wrote: > Well, I guess errors should have numbers, and catalog explaining what > error means what. That way userspace can translate, and it is what we > do with errno. > > I believe numbers are best. If you hate numbers, you can still use > strings, as long as you can enumerate them in docs (but it will be > strange design). Simply returning error numbers is *not* sufficient. The messages need to be parameterised. David