Should a larger length be available after using the Linux kernel?

orztrickster

Cadet
Joined
Jun 6, 2022
Messages
7
There are restrictions on Name Lengths in FreeBSD, but when using the Linux kernel, Name Lengths should be able to use a larger length than FreeBSD, but in fact, the restrictions on Name Lengths are the same as those in FreeBSD. Should a larger length be available after using the Linux kernel?



1.2. Path and Name Lengths​

Names of files, directories, and devices are subject to some limits imposed by the FreeBSD operating system. The limits shown here are for names using plain-text characters that each occupy one byte of space. Some UTF-8 characters take more than a single byte of space, and using those characters reduces these limits proportionally. System overhead can also reduce the length of these limits by one or more bytes.


Table 1.2.1 Path and Name Lengths
TypeMaximum LengthDescription
File Paths1024 bytesTotal file path length (PATH_MAX). The full path includes directory separator slash characters, subdirectory names, and the name of the file itself. For example, the path /mnt/tank/mydataset/mydirectory/myfile.txt is 42 bytes long.
Using very long file or directory names can be problematic. A complete path with long directory and file names can exceed the 1024-byte limit, preventing direct access to that file until the directory names or filename are shortened or the file is moved into a directory with a shorter total path length.
File and Directory Names255 bytesIndividual directory or file name length (NAME_MAX).
Mounted Filesystem Paths88 bytesMounted filesystem path length (MNAMELEN). Longer paths can prevent a device from being mounted.
Device Filesystem Paths63 bytesdevfs(8) device path lengths (SPECNAMELEN). Longer paths can prevent a device from being created.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Maybe in the future, but currently, iX needs to develop for both platforms, and is stuck with the lowest common denominator. This allows them to share middleware code between both Core and Scale.
 
Top