public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Miklos Szeredi <mszeredi@inf.bme.hu>
Cc: Andrew Morton <akpm@osdl.org>,
	viro@parcelfarce.linux.theplanet.co.uk,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fmount system call
Date: Thu, 22 Apr 2004 12:45:03 +0100	[thread overview]
Message-ID: <20040422124503.A20320@infradead.org> (raw)
In-Reply-To: <200404221054.i3MAsOJ06500@kempelen.iit.bme.hu>; from mszeredi@inf.bme.hu on Thu, Apr 22, 2004 at 12:54:24PM +0200

On Thu, Apr 22, 2004 at 12:54:24PM +0200, Miklos Szeredi wrote:
> This patch adds a new fmount() system call, which is exactly the same
> as mount(), except the second parameter (mount target) is a file
> descriptor instead of a path.
> 
> The main advantage is that caller can check permissions on target
> without rename races.  This can be done without fmount(), by doing
> chdir() + mount("."), but this only works for directories and uses the
> CWD which can be slightly tricky to restore.

While I like the idea of fmount I think we should use the chance to untangle
the mess the other mount paramters are.


  reply	other threads:[~2004-04-22 11:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-22 10:54 [PATCH] fmount system call Miklos Szeredi
2004-04-22 11:45 ` Christoph Hellwig [this message]
2004-04-22 11:59   ` Miklos Szeredi
2004-04-23 12:10     ` Christoph Hellwig
2004-04-23 13:35       ` Miklos Szeredi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040422124503.A20320@infradead.org \
    --to=hch@infradead.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mszeredi@inf.bme.hu \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox