Re: VFAT: Can't create file named 'aux.h'?
From: H. Peter Anvin
Date: Mon Mar 20 2006 - 16:48:30 EST
Followup to: <20060320134533.febb0155.rdunlap@xxxxxxxxxxxx>
By author: "Randy.Dunlap" <rdunlap@xxxxxxxxxxxx>
In newsgroup: linux.dev.kernel
>
> "AUX" is (was) a reserved "filename" in DOS. The Linux MS-DOS
> filesystem preserves (protects) that. The extension part does not
> matter; it only checks the first 8 characters of the filename.
> You'll need to use a different filesystem or filename...
>
But this is VFAT, not FAT. It should probably take the reserved name
and mangle it.
>
> /* MS-DOS "device special files" */
> static const unsigned char *reserved_names[] = {
> "CON ", "PRN ", "NUL ", "AUX ",
> "LPT1 ", "LPT2 ", "LPT3 ", "LPT4 ",
> "COM1 ", "COM2 ", "COM3 ", "COM4 ",
> NULL
> };
>
There should be more than that. At the very least there is "CLOCK$"
(arguably anything with $), "MSCD001" (and probably more than 001), as
well as "COM5".."COM8".
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/