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=-5.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 1A0F3C5B57A for ; Fri, 28 Jun 2019 17:07:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7DA52083B for ; Fri, 28 Jun 2019 17:07:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbfF1RHY (ORCPT ); Fri, 28 Jun 2019 13:07:24 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:39188 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbfF1RHX (ORCPT ); Fri, 28 Jun 2019 13:07:23 -0400 Received: by mail-lf1-f67.google.com with SMTP id p24so4434406lfo.6 for ; Fri, 28 Jun 2019 10:07:21 -0700 (PDT) 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=vrV0dEwyk2LuSe6MmD0iqFfp+0OybudxsnVPHFscGuk=; b=XgU0I32QwxnqJMQU/Y/zPjlBDzTYke0s1vc6wj+BJA/lLgYABSFyQZASrTVQj/ahd5 /XFhuUk0z+AirR8OB6pdC89jppmqEIvULUmSvzthbVf1JIEMZgoiOWxUfFtPTc3cgjQg YYlGPd6W0Z8rtMXWWfvqxq4F71dm+HS6U3Dpeap+koDLcnud2OTLn81c/Xqk6BdslgsU GcV+kHFKLb0Ww34nBMW5zNh2rEZaZaXxbS2qvHvD4X66Ru2vWmEF3+GJXntSzIo6IC6o Kk+9NNuMPNi+ZE1qIjhaVe/EknpUD/lM5sWlzn4oUgjnyB8fIan7xyWA6fjHHdA5BFfH f5Ew== X-Gm-Message-State: APjAAAXksCJvVnh9T8EIB1qmp/j+JtT7JwbdNImkCKdX+k0DPvA6z/z+ kBvmzfitCQNm3EUk92r/QoUF9hv6AuaHAQPCa3lG4VPD7OhrgA== X-Google-Smtp-Source: APXvYqz2nrpriCXm3YK7rxMHPw1vV31LxgysWsxf3EfE1AuAUQWKd9l0BF81SEtXU0eEcRqmYJ3y6XlgymBer4iS+ho= X-Received: by 2002:a19:ed07:: with SMTP id y7mr5813677lfy.56.1561741641146; Fri, 28 Jun 2019 10:07:21 -0700 (PDT) MIME-Version: 1.0 References: <20190626190343.22031-1-aring@mojatatu.com> <20190626190343.22031-2-aring@mojatatu.com> <293c9bd3-f530-d75e-c353-ddeabac27cf6@6wind.com> <18557.1561739215@warthog.procyon.org.uk> In-Reply-To: <18557.1561739215@warthog.procyon.org.uk> From: Matteo Croce Date: Fri, 28 Jun 2019 19:06:45 +0200 Message-ID: Subject: Re: [RFC iproute2 1/1] ip: netns: add mounted state file for each netns To: David Howells Cc: Nicolas Dichtel , Alexander Aring , netdev , linux-fsdevel@vger.kernel.org, kernel@mojatatu.com Content-Type: text/plain; charset="UTF-8" Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Jun 28, 2019 at 6:27 PM David Howells wrote: > > Nicolas Dichtel wrote: > > > David Howells was working on a mount notification mechanism: > > https://lwn.net/Articles/760714/ > > https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=notifications > > > > I don't know what is the status of this series. > > It's still alive. I just posted a new version on it. I'm hoping, possibly > futiley, to get it in in this merge window. > > David Hi all, this could cause a clash if I create a netns with name ending with .mounted. $ sudo ip/ip netns add ns1.mounted $ sudo ip/ip netns add ns1 Cannot create namespace file "/var/run/netns/ns1.mounted": File exists Cannot remove namespace file "/var/run/netns/ns1.mounted": Device or resource busy If you want to go along this road, please either: - disallow netns creation with names ending with .mounted - or properly document it in the manpage Regards, -- Matteo Croce per aspera ad upstream