Re: [RFC PATCH] afs: Create a mountpoint through symlink() and remove through rmdir()
From: David Howells
Date: Thu Feb 20 2020 - 02:52:12 EST
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> 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.