Re: [PATCH] Add MS_BIND_FLAGS mount flag

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Miklos Szeredi
Date: Thursday, February 14, 2008 - 10:39 am

> > And I'm not against doing it with the "at*" variants, as Trond

Sure.

Although, an (almost) equivalent userspace code would be:

mount_fooat(int fd, const char *path)
{
	char tmpbuf[64];
	int tmpfd = openat(fd, path);

	sprintf(tmpbuf, "/proc/self/fd/%i", tmpfd);
	return mount_foo(tmpbuf, ...);
}

Or is there something (other than not requiring proc) that the *at
variant gives?

Miklos

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Tue Feb 12, 10:45 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Christoph Hellwig, (Wed Feb 13, 11:02 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 1:30 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Trond Myklebust, (Thu Feb 14, 6:06 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 8:19 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 8:22 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 8:23 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 9:03 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 9:13 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Trond Myklebust, (Thu Feb 14, 9:26 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 10:31 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 10:39 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Paul Menage, (Thu Feb 14, 11:05 am)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Trond Myklebust, (Thu Feb 14, 12:17 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 3:18 pm)
Re: [PATCH] Add MS_BIND_FLAGS mount flag, Miklos Szeredi, (Thu Feb 14, 3:30 p