public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* (no subject)
@ 2004-08-26 11:16 Emilio Jesús Gallego Arias
  0 siblings, 0 replies; only message in thread
From: Emilio Jesús Gallego Arias @ 2004-08-26 11:16 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

In-Reply-To: <20040826032457.21377e94.akpm@osdl.org>

Andrew Morton wrote:

> (Generally, getting all of userspace to agree on a particular library
> is socially hard [*], but I don't see that as a reason for putting the
> functionality into the kernel)

Implement it in libc?

Really, I don't understand why people want file as directory occur magically.
In Unix we already have files and directories, it's enough.

You can modify libc creat("file", mode) to create a directory layout with a 
file named #content (or whatever special name you want) and attributes are 
files in this directory:

emilio@ellugar:~/tm$ ls -lR
.:
total 4
drwxr-xr-x  2 emilio emilio 4096 2004-08-26 12:58 file

./file:
total 0
-rw-r--r--  1 emilio emilio 0 2004-08-26 12:58 attribute1
-rw-r--r--  1 emilio emilio 0 2004-08-26 12:58 attribute2
-rw-r--r--  1 emilio emilio 0 2004-08-26 12:57 #content

Of course we should modify open, rename, etc... so open("file", ...) will
do open("file/#content", ...), etc.. but no need to touch any filesystem 
and will work on any fs. 

Of course there are lots of questions of being backwars compatible etc, but
no more than doing it in the kernel.

Regards,

Emilio


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-26 11:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-26 11:16 Emilio Jesús Gallego Arias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox