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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 88153C433DF for ; Mon, 18 May 2020 14:42:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6E4AE206D4 for ; Mon, 18 May 2020 14:42:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726940AbgEROmS (ORCPT ); Mon, 18 May 2020 10:42:18 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35909 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbgEROmR (ORCPT ); Mon, 18 May 2020 10:42:17 -0400 Received: from ip5f5af183.dynamic.kabel-deutschland.de ([95.90.241.131] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jagy5-0006pE-JF; Mon, 18 May 2020 14:42:14 +0000 Date: Mon, 18 May 2020 16:42:12 +0200 From: Christian Brauner To: David Howells Cc: mtk.manpages@gmail.com, Miklos Szeredi , lkml , "linux-fsdevel@vger.kernel.org" , Petr Vorel , linux-man Subject: Re: Setting mount propagation type in new mount API Message-ID: <20200518144212.xpfjlajgwzwhlq7r@wittgenstein> References: <909768.1589812234@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <909768.1589812234@warthog.procyon.org.uk> Sender: linux-man-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org On Mon, May 18, 2020 at 03:30:34PM +0100, David Howells wrote: > Michael Kerrisk (man-pages) wrote: > > > I've been looking at the new mount API (fsopen(), fsconfig(), > > fsmount(), move_mount(), etc.) and among the details that remain > > mysterious to me is this: how does one set the propagation type > > (private/shared/slave/unbindable) of a new mount and change the > > propagation type of an existing mount? > > Christian said he was going to have a go at writing mount_setattr(). It's not > trivial as it has to be able to handle AT_RECURSIVE. Right, I've put this on my roadmap now. It's becoming more urgent for us too since I've already switched over a few bits to the new mount api to make use of detached/anonymous mounts. I've planned to start working on a version early next week. Christian