3 ms·
IIRC, 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 terminat
by cesarb 8y ago
IIRC, 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?