Received: by 10.192.165.156 with SMTP id m28csp874257imm; Fri, 13 Apr 2018 09:16:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/0f9jLdI1M+MAFqeIqwK8pccpI7ABMS6S4Oavbvl/Zm0gpDn31abK2GEFG9GnBeVn+vgeQ X-Received: by 10.99.170.70 with SMTP id x6mr4644163pgo.114.1523636167241; Fri, 13 Apr 2018 09:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523636167; cv=none; d=google.com; s=arc-20160816; b=NQdPuGFOSS7TjSuqBNz2lf1MrArXSmzOEXKHRM5hA84okxowjt+I3FNMcGCjy+4Lbr 9pddowYBGnxfQu2dN/9IcRFaoOYdK+Z0roZA4EYnSMW4I01KxS+L4wRbAY00qMXMR8yb Vp55cqXBnnpI3NTJ9z7a60GuxWjSNRIcBEs0i5GI4hnMPCoZvuW4bRYwv4KHUdBXk/Wz BE2YdrYm6fHCJPaFn7ZT/xkSJlqO49xEbxlmZ80BGUMacjopCj8hfct6cJg9tntfI4Pm pDTS7+i/A8/SVSypXiMXfKX9T7oZZIs+JhMPXAjMGftt9u+tKcmrZUXnawzlgGl5omBW ei5w== 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=jMr1I3eUkVg8qnKanM8D5fuJNU5fONOobV9ltM/bj+4=; b=SwYnsOkzv4uh/eSKUdN077+fPPBB4iy5v5IGofQBMbxfVcaFK1qWT5D7+uD38fwdqU tiq2wKPcHCOdCkpZB0ykyHpOSgwBNa78LghBen4V0vbrbyN0++3ZNcPnJR63K2UgZnbR 8kIIq+y3Cb/he3kChGYjKXuuewJNy1Q43EkNWWroZ072enVaJfWO28lZSgeC4qZXUpEl msw1IMuo0td0fSU8ByjF3uzLZZ5MBOVcqrKgpRjAl8fre7LBgy/1rotDLV8TI8xWS+r3 +vzpPK6Td1NvLRyGlECkW5ghIVpmnUvzj3swb5/+7sQ9hToYyI9TCssJ1Kfh7jHbhkL6 h0WA== 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 c6si4914962pfl.136.2018.04.13.09.15.53; Fri, 13 Apr 2018 09:16: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752806AbeDMQLs (ORCPT + 99 others); Fri, 13 Apr 2018 12:11:48 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:41406 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960AbeDMQLr (ORCPT ); Fri, 13 Apr 2018 12:11:47 -0400 Received: by mail-wr0-f171.google.com with SMTP id s12so9471510wrc.8; Fri, 13 Apr 2018 09:11:46 -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=jMr1I3eUkVg8qnKanM8D5fuJNU5fONOobV9ltM/bj+4=; b=s8N0XzN90ZjcbfMxEi3ihccyywIsFvbTQXl0ty1MyLNcW5KrSLg9IqaTE/0TJRTUSz IHQw5ITmwQLCFV2XQfoQtGsVaw7UrCY1CmnocSlF3YElfFJbXjpXK1zT1dFHeBsiHwhV JCE0yiZyrnYehUa30FIeOs0ki7lj9o/5pncUrK60ZFWsJWSupsDgHUKBV8xnQdVSczto pto/11eRjd1zI9I3cCGxzaqb5lK6jp0f9JrR1mfw/TNKcjCA3CT/09r8hWF5iXDgHELs zwR5uyr97CHfUSn+61vfsGmkx+ZfAKi3/lfce0viGFy5RtXLwdD8JaCfJ9OFSbnh6zgn OSlw== X-Gm-Message-State: ALQs6tCLMZzJCEUQ26vH6JOGZ9X4LXcU4H9laB/g6FStm65O4gW2luDd 9tjUKx5m/f1ojLmMo2q0hhc= X-Received: by 10.223.209.194 with SMTP id m2mr4411347wri.214.1523635905747; Fri, 13 Apr 2018 09:11:45 -0700 (PDT) Received: from localhost.localdomain (u-086-c117.eap.uni-tuebingen.de. [134.2.86.117]) by smtp.gmail.com with ESMTPSA id k35sm5371772wre.55.2018.04.13.09.11.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Apr 2018 09:11:44 -0700 (PDT) From: Christian Brauner To: viro@zeniv.linux.org.uk, tglx@linutronix.de, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, pombredanne@nexb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, serge@hallyn.com Cc: Christian Brauner Subject: [PATCH 0/6] statfs: handle mount propagation Date: Fri, 13 Apr 2018 18:11:20 +0200 Message-Id: <20180413161126.31313-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 little series - unifies the definition of constants in statfs.h and fs.h - 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. The patchset was made against Al's vfs/for-next tree but they also apply cleanly against current linus/master. So if they are deemed suitable for inclusion in the current release that should work too. 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_PRIVATE statfs: add ST_SLAVE 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