source: rtems/doc/filesystem/mounting.t @ 482ffbb2

4.104.114.84.95
Last change on this file since 482ffbb2 was ffce9b39, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 11, 1999 at 8:10:03 PM

More cleanup.

  • Property mode set to 100644
File size: 2.0 KB
Line 
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 Filesystems
10
11@section Mount Points
12
13The following is the list of the characteristics of a mount point:
14
15@itemize @bullet
16
17@item The mount point must be a directory. It may have files and other
18directories under it. These files and directories will be hidden when the
19file system is mounted.
20
21@item The task must have read/write/execute permissions to the mount point
22or the mount attempt will be rejected.
23
24@item Only one file system can be mounted to a single mount point.
25
26@item The Root of the mountable file system will be referenced by the name
27of the mount point after the mount is complete.
28
29@end itemize
30
31@section Mount Table Chain
32
33Each entry in the mount table chain is of the following type:
34
35@example
36struct rtems_filesystem_mount_table_entry_tt
37@{
38   Chain_Node                             Node;
39   rtems_filesystem_location_info_t       mt_point_node;
40   rtems_filesystem_location_info_t       mt_fs_root;
41   int                                    options;
42   void                                  *fs_info;
43
44   rtems_filesystem_limits_and_options_t  pathconf_limits_and_options;
45
46  /*
47   *  When someone adds a mounted filesystem on a real device,
48   *  this will need to be used.
49   *
50   *  The best option long term for this is probably an
51   *  open file descriptor.
52   */
53   char                                  *dev;
54@};
55@end example
56
57@section Adding entries to the chain during mount
58
59When a file system is mounted, its presence and location in the file
60system hierarchy is recorded in a dynamic list structure known as a chain.
61A unique rtems_filesystem_mount_table_entry_tt structure is logged for
62each file system that is mounted. This includes the base file system.
63
64@section Removing entries from the chain during unmount
65
66When a file system is dismounted its entry in the mount table chain is
67extracted and the memory for this entry is freed.
68
69
70
Note: See TracBrowser for help on using the repository browser.