Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp383557ybv; Wed, 19 Feb 2020 23:52:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyYDszD+/NDRvqDEgQtyTeonTBvoO7Ygo8aVCup4WyoAuycaoK45lodhYulOkJjApYfnFIL X-Received: by 2002:a05:6808:b39:: with SMTP id t25mr1116067oij.71.1582185157373; Wed, 19 Feb 2020 23:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582185157; cv=none; d=google.com; s=arc-20160816; b=wyiveF5F+03g4RAbG9809u0q2tBb5pWr6mGmj11T4ok19FxvFxOy3ufWZDR8pd78TY TcZYSiXyeBnYBAxS7n1nyK755BvY6df9km4pilYNRbPtyBEf7jblSFQdct9KOEBedop6 GzVwODrdkIQdHYR8BgbAKw2TMPd1QvDeGMQk05soO8aTnU4mXsSgVvlUtDxKZKbX32Bm 70Sv79AmZ2xd40yUkVBnk/+5sgVBR0/2vMvd7Cxj62i1FTPiYRRpxHZdRA6LCUk8n/4g qNdaFg5jE0g9Zy6N3DUD2gBAJo4FpjpuTlfeuxUzD8o2p+ueX/t8WBzZoKxAobTZRyi2 aEcQ== 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:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :dkim-signature; bh=UKHnTXS8JHsJkGLe40P/26aUTaSDknlNIIOYz4XwZEQ=; b=E+QLIXK9DL8nk3xDXv43UmWcXFCwCUYkutIgZYcIqpK3bhLxBeKsgGATL+3DzOI3id AidGm0LbcjQ1inzbdG711NVa12VBwjHzatDdlnDcn63t6zrt4naHcUF5g5WMNnrZvLLk 6FGnyfJcsTSs5mr8F8WcoRBJ2nWUjN4j8LXHHw1pi24VMhs8iPTvE2iV9JxHcTRPWfFa nAPLCJGuCGGof3MwdlaHU3u6BVAFT32W0QAzyIOosxcKbfE2x0N89AhhB+5LrIW/kScS ajWeJFHQePfw+Bgxo+rkamb9oXPnc1SfNQQsVBlE0hxPNVTzzzXjkoPSIJtvIuGLmDJc YCSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=emykKyOq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si3078548oie.32.2020.02.19.23.52.25; Wed, 19 Feb 2020 23:52:37 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=emykKyOq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbgBTHwL (ORCPT + 99 others); Thu, 20 Feb 2020 02:52:11 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:22186 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726248AbgBTHwL (ORCPT ); Thu, 20 Feb 2020 02:52:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582185130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UKHnTXS8JHsJkGLe40P/26aUTaSDknlNIIOYz4XwZEQ=; b=emykKyOq8s2GuvmKqKSePF6p5H7+tzAtGsCojaiv3Eg7BAXKu74T0fIYBeHoFBfpKslj/w ofuZVxOAT1bgdytU4y0Vkpx4BVHwB6w0mXKYdif/EOVK1T+e3G8ZQMYTlIoxS+piziyr8c H426l5S7s76nR2w/6jgeVyHgoo3yDVA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-424-WzSeYNV4P9u2xPZQedKB9Q-1; Thu, 20 Feb 2020 02:52:08 -0500 X-MC-Unique: WzSeYNV4P9u2xPZQedKB9Q-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 510F313E4; Thu, 20 Feb 2020 07:52:07 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-122-163.rdu2.redhat.com [10.10.122.163]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5A0B7863A5; Thu, 20 Feb 2020 07:52:06 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <158215745745.386537.12978619503606431141.stgit@warthog.procyon.org.uk> To: Linus Torvalds Cc: dhowells@redhat.com, Al Viro , linux-afs@lists.infradead.org, Linux Kernel Mailing List Subject: Re: [RFC PATCH] afs: Create a mountpoint through symlink() and remove through rmdir() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <426584.1582185125.1@warthog.procyon.org.uk> Date: Thu, 20 Feb 2020 07:52:05 +0000 Message-ID: <426585.1582185125@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > Your argument that if the prefix is made really long it couldn't be a > valid symlink at all on AFS is fair, but seems somewhat excessive. Normally, mountpoint creation and removal would be hidden behind the appropriate command line tool and not done directly with ln/rmdir. > The only issue I see with this interface is that you can now create > these kinds of things by untarring a tar-ball etc. That would be true with mknod approach too. Even if tar couldn't do the second-stage write, it could still create a lot of half-formed mountpoints by extracting chardevs. David