4 ms·
I don't think there's a path limit in ext4, but looks like individual file/folders are limited to 255 bytes, while hfs+ (on Linux) is 255 utf-16 characters, whi
by e12e 8y ago
I don't think there's a path limit in ext4, but looks like individual file/folders are limited to 255 bytes, while hfs+ (on Linux) is 255 utf-16 characters, which is potentially longer.
The 255 bytes limit seems common (xfs, zfs)-while reiser allows 4kb or so.
What kind of naming scheme do you have that you had a problem? Long, multibyte file names?
- cesarb 8y agoIIRC, there's a limit that the whole path passed to system calls has to fit into a single page. For most architectures, that's 4096 bytes including the terminating nul character. (This limit arises because the kernel has to copy the passed path to kernel space before doing any work on it, and allocating more than a single page is costlier.)
- e12e 8y agoJust tried, there's definitely a 255 sigle file/folder name limit with zfs - but I had no problem making very deep folder trees. However 'touch' wouldn't accept a path that was too long - 4kb looks about right. Bash cd wouldn't let mee leap all the way down in one go - but if I got down there (while ls a * ;do cd a * ;done) - I could create a file (ed: view from "top"): find -iname ok|wc 1 1 12805 I guess I've got a hard time imagining 4kb path and 255 byte path segments being a serious issue - but maybe my imagination is the problem?
- et2o 8y agohttps://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits https://en.wikipedia.org/wiki/Comparison_of_file_systems#Lim... For other's reference