Received: by 10.192.165.148 with SMTP id m20csp787453imm; Wed, 2 May 2018 08:48:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqI4wuCQsKBLZPk2XXMv2ZnbaFntQC1gBUEcff+egEyIxSfwy8RbMmQJ2AghmQ7e90x3Zdb X-Received: by 2002:a17:902:1025:: with SMTP id b34-v6mr20674117pla.324.1525276124040; Wed, 02 May 2018 08:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525276124; cv=none; d=google.com; s=arc-20160816; b=yqu7LNVj0WUTaidfhgtDVefXccJIAIhjjsJMzSVrur9kJOszcMsnJYB5dHpF4q8PKZ NRACvnUF3Yiohxg+z68yOaIxxJ/mqSqKKg1nV4PRoOyKFM8KGnMo6XQ6qgA3B34d1ArG Xt+0tyyUSecLPBxaG0fy9CGrE7HSxnIbTuHyq8iVvvEYYvQ23OnuFu+ahE3DKI8mAWu3 5Ke/Ejc3nJn6MJGSaALH6ScK/lkwzwhHkgHnBObmT/PQdsQyz0LjwvHoW/nZb3yYMrvV dNHrpV9PTv0+bQR9x5o9++/Ef8AuFA9jPBLuq4WnojUJ105s04nHoVsjzsutjMZzno4y pcuQ== 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:subject:cc:to:from :arc-authentication-results; bh=YSHR4mz100tqITQVjZB7GOSUUFz2JZ3qcD3oM9++yJQ=; b=pRBodf5DynHAw86fgCYaW4/NWs0nq+BM+W8vNcKFbtUtE5oxd0gvOoDwCu1ul8/efa j5U4CqMYkWNimHOW8UNJW+QG43fw0rvug8/IBBQT+UNNuMkwa+zk87teaLRaTWfwuUMo 0Lw36pFKGm+BGJz9JoQ1Fbxs6dEKuc9d9TRaAGEggpjyBiUUk4gZAyHZND4VYCB1/3q6 94jRVnZHje4LT4encDx9YM4DFoagrXAegJgdlUqqxGwS1BpTJxjTKnnr6y+K7xninJqc s9t/QisHzoo16haGJZOMXGvEeqsYvB+bgxD/5h0PchNUGyLfXW+mwK1b6DuHInL4zmOb hk+A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4-v6si11699679plb.312.2018.05.02.08.48.30; Wed, 02 May 2018 08:48:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751975AbeEBPpn (ORCPT + 99 others); Wed, 2 May 2018 11:45:43 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34937 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbeEBPph (ORCPT ); Wed, 2 May 2018 11:45:37 -0400 Received: by mail-wm0-f67.google.com with SMTP id o78so25311067wmg.0; Wed, 02 May 2018 08:45:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YSHR4mz100tqITQVjZB7GOSUUFz2JZ3qcD3oM9++yJQ=; b=e/PjjhdZW7C69OJIiQEvpKZUhZp5IExqayHh+Dw2Tr8YcSlibJGYxumf1eWrpovxdu bQpXPl2fIV6I23s6VyxdpoEO6O6MGAM9XCaXwKu6HGM45PiLlra56f7+dXJC5boufatH yHd8Eej4OJ/nQrEFjmU5Ec/Bw08QiNSN9N/muDFsL1/NMpqTFS6LLoGhoOGuHdCxDRQn 7MuYeEaWWh8z9BDFoh4XbYmyNmpg4iJi8aemzTb9R06xcY9Ek/ThDXXdm98pEbP44v5T olxZC/X1EWf9+jXtLTqI/PSBX7KP+P87EpVIgAvJeony7IBsSKQSQ9canb2o7SUy1VTL 68OA== X-Gm-Message-State: ALQs6tB/pCJ/kt0/Z9kGuQPT2lEfM/xx5d4WIdJ+nGvOwRNPOrEuPRAV 1oHKm+P9vTrjvhwSsoilAJo= X-Received: by 2002:a50:8e09:: with SMTP id 9-v6mr26550558edw.101.1525275935935; Wed, 02 May 2018 08:45:35 -0700 (PDT) Received: from localhost.localdomain ([193.175.2.17]) by smtp.gmail.com with ESMTPSA id w26-v6sm6827884edq.77.2018.05.02.08.45.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 08:45:35 -0700 (PDT) From: Christian Brauner To: viro@zeniv.linux.org.uk, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org Cc: tglx@linutronix.de, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, pombredanne@nexb.com, Christian Brauner Subject: [PATCH 0/6 resend] statfs: handle mount propagation Date: Wed, 2 May 2018 17:42:33 +0200 Message-Id: <20180502154239.14013-1-christian.brauner@ubuntu.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, This is the second resend of this patchset. I'm not sure whether it has simply been overlooked but the number of people get_maintainer.pl was rather small and seemed a little random so I added Linus and Christoph, two people I know that do look at VFS stuff at least from time to time, although they weren't listed by get_maintainer.pl. I hope that's ok. This little series - unifies the definition of constants in statfs.h and fs.h *Note, that Andreas has expressed doubts whether this unification is useful. Please see https://lkml.org/lkml/2018/4/13/571 . I still think it is but I'm happy to drop these two patches if others agree.* - extends statfs to handle mount propagation. This will let userspace easily query a given mountpoint for MS_UNBINDABLE, MS_SHARED, MS_PRIVATE and MS_SLAVE without always having to do costly parsing of /proc//mountinfo. To this end the flags: - ST_UNBINDABLE - ST_SHARED - ST_PRIVATE - ST_SLAVE are added. They have the same value as their MS_* counterparts. Thanks! Christian Christian Brauner (6): fs: use << for MS_* flags statfs: use << to align with fs header statfs: add ST_UNBINDABLE statfs: add ST_SHARED statfs: add ST_SLAVE statfs: add ST_PRIVATE fs/statfs.c | 16 +++++++++++++++- include/linux/statfs.h | 30 +++++++++++++++++------------- include/uapi/linux/fs.h | 33 +++++++++++++++++---------------- 3 files changed, 49 insertions(+), 30 deletions(-) -- 2.17.0