Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp137462pxa; Thu, 13 Aug 2020 22:50:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylbBbfvGlnI7KN3r7kJP5Zfxy40ML2fzdJ25ElNYqgHRJ8eP4aRS2Odi50V+bEZ3wPVeSE X-Received: by 2002:a17:906:84cf:: with SMTP id f15mr934253ejy.259.1597384206075; Thu, 13 Aug 2020 22:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597384206; cv=none; d=google.com; s=arc-20160816; b=b2jba4an9WOGvW1zhpASwMz19vrRKSwj7nZTZgYsUZaSY6uaaR9xthY8X5OBVCu/jA 0oePwd61CQiNztEmbj907DtMBjAlc3mPVO5eopB3jvQDOhk65jtczOi11TpLTk2igAD/ Rz2nKWp1SudFT5NQlya7fyNrGFJx6nQMbOGcaw/tXYuhwPBUf0ZSWj4f8R8n8g7Ts0ga AQQKOL0ZWO9Ff7AeeW0hgIYFaiVuOmWuAKJMfY9lLW0f6IeyuPpZsE7yvp2ZJ/kbiw/5 mOlFsOR1z5Vgg6MJ3lMLsgpvUKDSUbP6zcPoaHaAOuY4fr/jg0X0uoAZYmLG7NisGfCV PUbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fBBZ1VE6Pl61w02scuLSTrYPkXkkmltKzTwwdi9Dq0s=; b=JCMXROv1x7c60PXOI1cbByNhYPc0ZZXHACGej9rZDJ58dQzgLXlieXkvYKu1OUNFuX shSFDPOtCWkSvfd9ROvpRTH9Vb7dyjJeZ4IUU2fIE4tF/pvXbH/o6rUwje80EB1M7Vuh s1i8X6UAk8qjwTbuOLS5ep+Z6/+yBf1i4YPD5i7sdRrPYEuwvw27s3qYd9wDmo+oZkwj giLmK+W0qSwgmW4VxpaFe6yRYr4Fr5kFRx2Hfk3rwcFuy4z8QPpZ0pq2wcZEOQfi2yda N5zw3u/1mC2dRULuYISh1lgvIGkNLjjJ/ZpEXgiPnr5yRkh/bOt1VW46xy2sUetZP2d4 P2nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tfz-net.20150623.gappssmtp.com header.s=20150623 header.b=cvBvSNsG; 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 co25si4895776edb.151.2020.08.13.22.49.43; Thu, 13 Aug 2020 22:50:06 -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; dkim=pass header.i=@tfz-net.20150623.gappssmtp.com header.s=20150623 header.b=cvBvSNsG; 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 S1726298AbgHNFtK (ORCPT + 99 others); Fri, 14 Aug 2020 01:49:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbgHNFtJ (ORCPT ); Fri, 14 Aug 2020 01:49:09 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7007EC061383 for ; Thu, 13 Aug 2020 22:49:09 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id c19so7674677wmd.1 for ; Thu, 13 Aug 2020 22:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tfz-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fBBZ1VE6Pl61w02scuLSTrYPkXkkmltKzTwwdi9Dq0s=; b=cvBvSNsGQMXqH9DBta9cyj9+60K2gEDrczZHyxiE8AJxJRKljzClHw97cLtJ2F07aW jswI2vSz37+TmOVWQFyqYFrCFMNaRh3Vc9wE0fxjHcNjto+yZaFcbEpQy+MKkzLBufLu AkOHko/GEmRONQjkTQ4mZ3G3AEI8SX6yV3rPr0ZVIm9J7fGisb+kbHJWf1x86bnHsKr3 3/MtNrjD7waRFt6sUM0f/2BIoXNbufacioD1ZVbHY+ZusXgJM9PNp7iQ+he+amu3U9Xc qNVrG52Qft+BPLUAmqlG1i4TeCsna6iyk2EtqF8zJzrr3VwjEOPtrt3fRwCXRly++M7Y TgRg== 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=fBBZ1VE6Pl61w02scuLSTrYPkXkkmltKzTwwdi9Dq0s=; b=h0Q/mF5GtfKPAk/ggkal6OTXEoL4iZs1yZtphaF/HzICubCZma711lG3v1QocnXQya SJiPdq2pT+FsZwEK+z+cSa781uZislzSwdNGggO5zHHTOgx88twhMs8RUHC7RtNchqQM 2oPs7ZpPPtDFXb5mgtv6Xsm06dOkUowrVU5QhlKlAWHJ4l0Wma40mePSPkczDa+hkAXo GA4qf0vvsvbsVgV3EpDnQj6w7GVnANNpAFJVAIBFAum9ZZRfTn15tc1wga7vKP0StPs+ MA1hKOa6EqGl/OFcMT1GomrfhqBgHlyiRvLX44gylkTlw8esaYQvn9d9qT2+mimOG/w6 bkXQ== X-Gm-Message-State: AOAM530Wvl+eNZQN1inGMN6/AO0cH2EIRonmquO27QClbziw46WAML9v oYtYwpir76tLjVOmbSYGs4cCvwVYRnEK3axs2pK9wA== X-Received: by 2002:a1c:bd56:: with SMTP id n83mr916007wmf.64.1597384145882; Thu, 13 Aug 2020 22:49:05 -0700 (PDT) MIME-Version: 1.0 References: <20200814035453.210716-1-kalou@tfz.net> <20200814035453.210716-3-kalou@tfz.net> <20200814052801.GA10141@infradead.org> In-Reply-To: <20200814052801.GA10141@infradead.org> From: Pascal Bouchareine Date: Thu, 13 Aug 2020 22:48:55 -0700 Message-ID: Subject: Re: [PATCH v4 2/2] fcntl: introduce F_SET_DESCRIPTION To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, Andrew Morton , Alexey Dobriyan , Al Viro , Jeff Layton , "J. Bruce Fields" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 13, 2020 at 10:28 PM Christoph Hellwig wrote: > > One intended usage is to allow processes to self-document sockets > > for netstat and friends to report > > NAK. There is no way we're going to bloat a criticial structure like > struct file for some vanity information like this. The useful case is for sockets - Is there a more suited place to do that? Do you think adding a setsockopt and sk_description to struct sock would work, or would be considered the same?