1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1998. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Mounting and Unmounting File Systems |
---|
10 | |
---|
11 | ? Characteristics of a Mount Point |
---|
12 | ? The mount point must be a directory. It may have files and other directories under |
---|
13 | it. These files and directories will be hidden when the file system is mounted. |
---|
14 | ? The task must have read/write/execute permissions to the mount point or the |
---|
15 | mount attempt will be rejected. |
---|
16 | ? Only one file system can be mounted to a single mount point. |
---|
17 | ? The Root of the mountable file system will be referenced by the name of the mount |
---|
18 | point after the mount is complete. |
---|
19 | ? Mount table chain |
---|
20 | ? Content of the mount table chain entry |
---|
21 | |
---|
22 | struct rtems_filesystem_mount_table_entry_tt |
---|
23 | @{ |
---|
24 | Chain_Node Node; |
---|
25 | rtems_filesystem_location_info_t mt_point_node; |
---|
26 | rtems_filesystem_location_info_t mt_fs_root; |
---|
27 | int options; |
---|
28 | void *fs_info; |
---|
29 | |
---|
30 | rtems_filesystem_limits_and_options_t pathconf_limits_and_options; |
---|
31 | |
---|
32 | /* |
---|
33 | * When someone adds a mounted filesystem on a real device, |
---|
34 | * this will need to be used. |
---|
35 | * |
---|
36 | * The best option long term for this is probably an open file descriptor. |
---|
37 | */ |
---|
38 | char *dev; |
---|
39 | @}; |
---|
40 | |
---|
41 | ? Adding entries to the chain during mount() |
---|
42 | When a file system is mounted, its presence and location in the file system |
---|
43 | hierarchy is recorded in a dynamic list structure known as a chain. A unique |
---|
44 | rtems_filesystem_mount_table_entry_tt structure is logged for each file system that is |
---|
45 | mounted. This includes the base file system. |
---|
46 | |
---|
47 | ? Removing entries from the chain during unmount() |
---|
48 | When a file system is dismounted its entry in the mount table chain is extracted |
---|
49 | and the memory for this entry is freed. |
---|
50 | |
---|
51 | |
---|
52 | |
---|