We already support read/write on directories in the VFS, that's not a
problem.
> It's still a file. If it's not a file anymore, it ain't UNIX.
It's a file with the directory bit set, I believe that's UNIX.
> > > If it doesn't have the directory bit set, Midnight commander
> > > won't let me look at it, and I wouldn't blame cd or ls for
> > > complaining. If it does have the 'd' bit set, I wouldn't blame
> > > cp, tar, find, or a million other programs if they did the wrong
> > > thing. They've had 30 years to expect that files aren't
> > > directories. They're going to act weird.
> >
> > No problem, it's a directory.
> >
> > > Linus has been kicking this idea around for a couple years now
> > > and it's still a cute solution looking for a problem. It just
> > > doesn't belong in UNIX.
> >
> > Hmm, ok, do we still have any *technical* reasons?
>
> If you define *technical* to not include design, sure.
Sorry, I don't see what you mean, do you mean the design is
difficult?
> Oh, did I mention unnecessary, solvable in userspace?
That's exactly the point: the generic filesystem allows all the
funny-shaped stuff to be dealt with in user space. The
filesystem itself is lovely and clean.
BTW, I didn't realize I was reinventing Linus's wheel, this just
seemed very obvious and natural to me. So I had to believe
there's a technical obstacle somewhere.
Has anyone written code to demonstrate the idea?
-- Daniel - 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/