Re: [RFD w/info-PATCH] device arguments from lookup, partion code in userspace

From: Alexander Viro (viro@math.psu.edu)
Date: Sat May 19 2001 - 07:00:40 EST


On Sat, 19 May 2001, Andrew Morton wrote:

> So. When am I going to be able to:
>
> open("/bin/ls,-l,/etc/passwd", O_RDONLY);

You are not. Think for a minute and you'll see why.

Linus' idea of /dev/tty/<parameters> is marginally sane - it makes sense
to consider that as configuring-upon-open. You _are_ going to do IO on
that file.

Ben's /dev/md0/<living_horror> is ugly - it's open just for side effects,
with no IO supposed to happen.

His idea of passing file descriptor instead of name makes these side effects
even messier.

The stuff you've proposed is a perversion worth of Albert. You've introduced
additional metacharacter into filenames, you will need some form of quoting
to be able to pass literal commas and you will need to quote slashes. It's
way past ugly.

-
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/



This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:32 EST