Red Hat Bugzilla – Bug 155962
Deprecate newlines in ext2/3 filenames
Last modified: 2007-11-30 17:11:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Epiphany/1.6.1
Description of problem:
Many people don't know that ext2/3 allows newlines in filenames.
Deprecating this would alert people to this and allow eventual removal.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
First of all, e2fsprogs has nothing to do with the live running ext3 filesystem:
mounted filesystems are all managed by the kernel, not by e2fsprogs.
But more importantly, the behaviour of filenames is thoroughly defined by Unix,
SingleUnix and POSIX standards. There's no way ext3 is going to suddenly become
non-standards-compliant by implementing a feature like this. The standards have
become fixed over time, and unfortunately, for better or worse, it's way too
late to start changing what counts as a legal filename or not.
I don't see it as much of a problem, though: most people won't ever encounter
this case. Those who do either have a need for it, or they did it by accident.
And there are certainly things we can do to make recovery from such accidents
painless, like making sure that Nautilus and KDE can browse, rename and delete
such files correctly. But that's not a filesystem problem.