Library Table of Contents Index Previous Next Comments

Understanding NFS and CIFS file naming

About file naming conventions in multiprotocol environments  Top

File naming conventions depend on both the network clients' operating systems and the file-sharing protocols. The operating system and the file-sharing protocols determine the

Length of file names  Top

Data ONTAP supports the following file name lengths:

Characters a file name can use  Top

If you are sharing a file between clients on different operating systems, you should use characters that are legal to both operating systems. For example, if you use UNIX to create a file, don't use a colon (:) in the file name because the colon is an illegal MS-DOS character. Because restrictions on legal characters vary from one operating system to another, refer to the documentation for your client operating system for more information about prohibited characters.

Case-sensitivity of a file name  Top

File names are case-insensitive, but case-preserving, for CIFS clients and case-sensitive for NFS clients.

For example, if a CIFS client creates Spec.txt, both CIFS and NFS clients display the file name as Spec.txt. If a CIFS user later tries to create spec.txt, the user's application instructs the user to choose another name because, to the CIFS client, that name currently exists. If an NFS user later creates a file named spec.txt, NFS and CIFS clients display the file name differently, as follows:

Creating lowercase file names  Top

You can set an option to have all new file names created in lowercase text for better compatibility between 16-bit applications and some UNIX tools. This option is turned on by default, which does not force lowercase file names.

To set lowercase text for all new file names, complete the following step.

Step

Action

1

Enter the following command:

options cifs.save_case off

How Data ONTAP creates file names  Top

Data ONTAP creates and maintains two file names for files in any directory that has access from a CIFS client: the original long name and a file name in 8.3 format. Data ONTAP generates an 8.3 format file name as follows:

  1. It truncates the original file name to six characters, if the file name exceeds six characters.
  2. It appends a tilde (~) and a number or letter to the name, to ensure that the file name is unique. If it runs out of letters and numbers because there are too many similar names, it creates a unique file name that bears no relation to the original file name.
  3. It truncates the file name extension to three characters.
Example

If an NFS client creates a file named specifications.html, the 8.3 format file name created by Data ONTAP is specif~1.htm. If this name already exists, Data ONTAP uses a different number at the end of the file name. For example, if the NFS client creates another file named specifications_new.html, the 8.3 format of specifications_new.html is specif~2.htm.

Library Table of Contents Index Previous Next Comments