
Chapter 10. File Access
The reason for this behaviour is that when tl-nds-mountpath is used in combination with
tl-nds-posixuser, assigning uid/gid values, a whole directory with many home directories can be
assigned incorrect uid/gid values, if the ndsHomeDirectory attribute of one user has a bad value.
Netware file systems are case insensitive when using NCP and CIFS, but case sensitive when using NFS.
Often, the path specified in NDS has a different case than the actual directory. If you try to mount the
path as specified in NDS, you will get an error message. The best way of solving this is to enter the
correct home directory path in NDS. However, correcting this for many users can be time consuming.
Therefore, tl-nds-mountpath contains support for testing different combinations of uppercase and
lowercase characters. When it finds a combination that works, the result is returned to the automounter.
Since the number of possible combinations is typically very large, not all combinations can be tested.
The combinations to test is specified by the parameter
/utils/tl-nds-mountpath/directory_cases . It is a list of strings. Each string can contain the
letters l, u or n, for lowercase, uppercase and NDS, respectively. These strings specify the different case
combinations for the beginning of the name of directories. The default value is "n l u ul". This means that
tl-nds-mountpath tries all combinations of directories that are named like:
• Just like it is specified in NDS
• With all letters in lowercase
• With all letters in uppercase
• With the first letter in uppercase, and the rest in lowercase
Other variants can be added as well, but please note that if you have a deep directory structure and many
case strings, the number of different combinations will be very large, which means that the execution of
tl-nds-mountpath might take a long time. The number of different combinations k is s **( d -1 ), where
s is the number of case strings, and d is the number of directories in the home directory path. The
average search time t is k *0.005/2 seconds (assuming one mount requests takes 5 ms). The table below
lists the search time for some sample values of s and d .
Table 10-2. Combinations and average search time for tl-nds-mountpath
Directories in
home directory
path:
1 2 3 4
1 case string 1 (5 ms) 1 (5 ms) 1 (5 ms) 1 (5 ms)
2 case strings 1 (5 ms) 2 (5 ms) 4 (10 ms) 8 (20 ms)
3 case strings 1 (5 ms) 3 (7.5 ms) 9 (22.5 ms) 27 (67.5 ms)
4 case strings 1 (5 ms) 4 (10 ms) 16 (40 ms) 64 (160 ms)
5 case strings 1 (5 ms) 5 (12.5 ms) 25 (62.5 ms) 125 (312.5 ms)
6 case strings 1 (5 ms) 6 (15 ms) 36 (90 ms) 216 (540 ms)
10.2.4.4.3. Special considerations when using directories mounted from Netware 6.5 as home
121
Komentarze do niniejszej Instrukcji