Messages in this thread | | | Date | Tue, 07 Sep 2004 14:26:22 +0200 | From | Gunnar Ritter <> | Subject | Re: silent semantic changes with reiser4 |
| |
Christer Weinigel <christer@weinigel.se> wrote:
> Additionally, files-as-directores does not solve the problem of > "cp a b" losing named streams. There is curently no copyfile syscall > in the Linux kernel, "cp a b" essentially does "cat a >b". So unless > cp is modified we don't gain anything. If cp is modified to know > about named streams, it really does not matter if named streams are > accessed as file-as-directories, via openat(3) or via a shared library > with some other interface.
You cannot just 'modify cp'. cp is a programming interface standardized in POSIX.1. You can of course add non-standard extensions to some cp implementations, but it seems hardly evitable then that you either have to use cp in a non-standard manner regularly with Linux or risk to lose data.
This is even more severe with tar/pax. Just patching GNU tar for file streams, as it was suggested earlier in this discussion, is still far away from a real solution because it neither solves the issues with the POSIX.1 pax standard nor those with other implementations of it.
Given these facts, it does not seem so clear to me that adding named streams for Windows and Mac OS interoperability would be a win to Linux in the end. The loss of interoperability to Unix/POSIX/today's Linux might have much worse effects.
The current xattr extension is much less of a problem because it only holds metadata, which is mostly not applicable to other environments anyway.
Gunnar
-- http://omnibus.ruf.uni-freiburg.de/~gritter - 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/
| |