Increase NAME_MAX to 512 bytes (and maybe also PATH_MAX)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I hope this is the good mailing list to ask for this.
(
I asked first where I should ask on linux-newbie,
but linux-newbie mailing list appears to be deprecated :
https://lore.kernel.org/linux-newbie/CAB1LBmsr0AKUAN+gChbLCWB36Dt81F3vtMEnGfK6e9oxYHL7-w@xxxxxxxxxxxxxx
https://lore.kernel.org/linux-newbie/
)
NAME_MAX is 256 and hasn't changed since the 1990s and ext2 filesystem.
PATH_MAX is 4096 and hasn't changed since the beginning of the 2000s.
No change of value occurred for both since the first git commit.
Whilst PATH_MAX in Linux can be circumvented easily
NAME_MAX is a hard limit.
See:
- https://unix.stackexchange.com/questions/721339/what-would-happen-if-i-change-path-max-and-name-max-in-limits-h
- https://savannah.gnu.org/bugs/?67014

However, it is easy to find legal webpages
(from official French government websites for example)
whose title and hence filename upon save is above 256 bytes.
It sometimes makes some bugs more frequent/visible.
See:
- https://www.legifrance.gouv.fr/jorf/id/JORFTEXT000051445248?datePubli=10%2F04%2F2025&nature=DECISION
- https://bugzilla.mozilla.org/show_bug.cgi?id=1959738

My focus on increasing NAME_MAX came from wanting to help my mother.
I helped her switch from Windows to Ubuntu
and long paths and filenames were a problem during the migration.
I know some people may say "Nobody ever ask for this.",
or even "Since it didn't change for so long, we can safely assume it
should never change."
but we, informaticiens, know how to use short codes to shorten files
and folders names.
(I use informaticiens French word since it is common to
computer scientists, software engineers/developers, hardware engineers, etc.)
The people who would naturally ask for this don't know how to find
this mailing list in the first place.
I know this is not easy stuff, it probably needs some new filesystems,
but I think there is a real need for some people.

I asked first about this on Ubuntu,
but the discussion went off-topic :
https://discourse.ubuntu.com/t/increasing-path-max-to-8092-and-name-max-to-512/58748/29
I hope I will encounter here at least one pair of ears interested in
my arguments.
Otherwise, sorry for your time.

Best regards,
    Laurent Lyaudet




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux