Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752093AbbGOOie (ORCPT ); Wed, 15 Jul 2015 10:38:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53956 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751468AbbGOOid (ORCPT ); Wed, 15 Jul 2015 10:38:33 -0400 Date: Wed, 15 Jul 2015 16:38:30 +0200 From: Karel Zak To: jon Cc: Valdis.Kletnieks@vt.edu, coreutils@gnu.org, linux-kernel@vger.kernel.org Subject: Re: Feature request, "create on mount" to create mount point directory on mount, implied remove on unmount Message-ID: <20150715143830.GG31997@ws.net.home> References: <1435924919.6501.432.camel@jonspc> <172423.1436043394@turing-police.cc.vt.edu> <1436050108.6501.509.camel@jonspc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436050108.6501.509.camel@jonspc> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1512 Lines: 35 On Sat, Jul 04, 2015 at 11:48:28PM +0100, jon wrote: > It solves these problems: > 1) It solves the problem of processes writing data into the mount point > when not mounted (as does, I accept a user space automounter, but as I > explained the usage scenario differs). > > 2) It would be useful for embedded devices, installers etc. I do quite > a bit of work in the embedded space, sometimes running kernel+shell+user > process only, sometimes no udev, no systemd, not even full fat init. > > 3) installers or similar could use such an option for mounting install > data. By specifying the flag user space processes can infer that the FS > is successfully mounted by the presence of the mount point without the > need to explicitly code against an event system or parse log files. > > 3) Users can use it to have a slightly improved new mount behaviour and > also hopefully be used as a flag to indicate that "oh so clever user > space managers" should stay away entries using it in fstab. man mount (since util-linux v2.23, May 2013): x-mount.mkdir[=mode] Allow to make a target directory (mountpoint). It's userspace mount(8) option and you can use it in your fstab. Karel -- Karel Zak http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/