Messages in this thread | | | Subject | | From | Emilio Jesús Gallego Arias <> | Date | Thu, 26 Aug 2004 13:16:33 +0200 |
| |
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
- 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/
| |