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?
www.ixsystems.com
Table 1.2.1 Path and Name Lengths¶
1. Introduction — FreeNAS®11.2-U6 User Guide Table of Contents
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¶
Type | Maximum Length | Description |
---|---|---|
File Paths | 1024 bytes | Total 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 Names | 255 bytes | Individual directory or file name length (NAME_MAX). |
Mounted Filesystem Paths | 88 bytes | Mounted filesystem path length (MNAMELEN). Longer paths can prevent a device from being mounted. |
Device Filesystem Paths | 63 bytes | devfs(8) device path lengths (SPECNAMELEN). Longer paths can prevent a device from being created. |