Re: [Call For Wartectomy] CRLF conversion out of kernel

Pavel Machek (pavel@bug.ucw.cz)
Sun, 18 Jul 1999 23:54:11 +0200


Hi!

> JarJar Binks^W^WSupport for CRLF<->LF translation in the kernel
> must die. Unless somebody has damn good reasons for preserving this
> bogosity I'm going to exterminate the bloody thing. It is guilty in:
> a) breaking mmap() semantics.
> b) breaking lseek() semantics.
> c) breaking write() semantics.
> d) being bloody slow, painful and kludgy.
> e) making FAT support with the new page cache hard.
> f) confusing the hell of unaware victims^Wusers.
> g) bringing the list of magical filename extensions into the kernel.
> h) belonging to userland *and* being already implemented there.
> If somebody has really convincing arguments for preserving the sucker -
> tell. Otherwise it will die.

Kill it. Install podfuk and use

cat /mnt/file#cr to convert it from dos and

cat /etc/passwd#crlf > /mnt/file to convert it to dos.

If this is too inconvient, I guess few lines of C code into libvfs is
enough to do this kind of translation in userspace [I'm not going to
write them], so you could actually

cd /mnt#dos_brain_damage/ and see all files magically converted. You
could even implement /mnt#dos_brain_damage:txt,doc,c,pas/ if you
wanted to.

Pavel

-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/