FreeCalypso > hg > freecalypso-sw
comparison rvinterf/include/ffslimits.h @ 295:3dd74b16df82
fc-fsio: pathname recursion handling revamped
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 01 Mar 2014 08:01:08 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
294:797468042b32 | 295:3dd74b16df82 |
---|---|
1 /* | |
2 * Limits on FFS filenames and pathnames | |
3 * | |
4 * The deepest pathname allowed is one of the form /1/2/3/4/5/6, where the | |
5 * last component may be a file, a directory or a symlink; if this last | |
6 * component is a directory, it has to be empty, because any child of | |
7 * that directory would violate the depth limit. | |
8 * | |
9 * The proper FFS pathname form begins with a slash (all pathnames must | |
10 * be absolute, no Unix processes in the fw means no current directories), | |
11 * has exactly one slash in each separating place (no double slashes), | |
12 * and no trailing slash except in the special case of the root directory, | |
13 * whose full pathname is "/". | |
14 * | |
15 * Each component name is [1,20] characters long; combining this limit | |
16 * with the maximum depth of 6 puts the maximum length of a properly-formed | |
17 * full pathname at 126 characters. | |
18 */ | |
19 | |
20 #define MAX_FN_COMPONENT 20 | |
21 #define MAX_NAME_DEPTH 6 | |
22 #define MAX_FULL_PATHNAME ((MAX_FN_COMPONENT+1) * MAX_NAME_DEPTH) |