File System Overview
The file system manages storage devices and all files including configuration files and system software stored on them.
File System
The file system manages files and directories on storage devices. In the file system, users can create, delete, modify, and rename a file or a directory, and view contents of a file.
Storage Device
The device supports the flash card.
Naming Rules for Files
A file name is a string of 1 to 255 case-sensitive characters without spaces. The file name formats are as follows:
- File name
If the name of a file is in this format, the file is in the current working directory.
- Drive + Path + File name
This file name format uniquely identifies a file in a specified path.
In the format, drive indicates the storage device and can be set to flash:.
drive of devices in a stack can be set to:- flash: root directory of the flash card of the master switch on a device in a stack.
- stack ID#flash: root directory of the flash card in a slot on a device in a stack.
For example, slot2#flash: indicates the flash card in slot 2.
In the file name, path indicates the directory and subdirectory. The directory name is case-sensitive. The space character and the following characters and cannot be used in the directory name: ~ * / \ : ' "
The path can be an absolute path or relative path. The relative path is related to the root directory or the current working directory. A relative path beginning with a slash (/) is related to the root directory.flash:/my/test/ is an absolute path.
/selftest/ is related to the root directory and indicates the selftest directory in the root directory.
selftest/ is related to the current working directory and indicates the selftest directory in the current working directory.
For example, in the dir flash:/my/test/mytest.txt command, flash:/my/test/ is an absolute path.
To find the mytest.txt file from a directory related to the root directory, run the dir /my/test/mytest.txt command.
To find the mytest.txt file from a directory related to the current working directory (flash:/my/ for example), run the dir test/mytest.txt command.
NOTE:
In the file operation command format, filename indicates the file name.
In the file operation command format, directory indicates the path (drive + path).
File List Information
Run the dir command to view information about files.
<HUAWEI> dir Directory of flash:/ Idx Attr Size(Byte) Date Time FileName 0 drwx - Mar 03 2013 03:44:28 $_checkpoint 1 -rw- 104,517,153 Mar 02 2013 18:22:18 devicesoft.cc 2 drwx - Mar 03 2013 03:42:52 POST 3 -rw- 14 Mar 03 2013 03:45:32 SysResTemplate.ini 4 -rw- 16,781 Mar 03 2013 03:41:39 device.sys 5 drwx - Jan 19 2012 09:54:13 logfile 6 drwx - Feb 27 2013 04:44:53 lost+found 7 -rw- 33,036 Mar 03 2013 03:41:39 vrpcfg.cfg 670,092 KB total (569,904 KB free)
Item |
Description |
---|---|
$_checkpoint |
Directory for storing configuration rollback point information. |
**.cc |
Software version file. |
POST |
Directory for storing hardware self-test information when the system starts. |
SysResTemplate.ini |
System forwarding resource template, which exists in the user directory after the forwarding mode is set in the system. |
device.sys |
System hardware configuration file. |
logfile |
Directory for storing log information:
|
lost+found |
Directory for storing information about the damaged file in the file management module recovered by the system during abnormal restart. |
**.zip/**.cfg/**.dat |
System configuration file. |