source: rtems/doc/filesystem/mounting.t @ 4d77134

4.104.114.84.95
Last change on this file since 4d77134 was 4d77134, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/99 at 18:26:28

Added initial version of 3 other chapters.

  • Property mode set to 100644
File size: 1.8 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 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
13it. 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
15mount 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
18point after the mount is complete.
19? Mount table chain
20? Content of the mount table chain entry
21
22struct 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()
42When a file system is mounted, its presence and location in the file system
43hierarchy is recorded in a dynamic list structure known as a chain. A unique
44rtems_filesystem_mount_table_entry_tt structure is logged for each file system that is
45mounted. This includes the base file system.
46
47? Removing entries from the chain during unmount()
48When a file system is dismounted its entry in the mount table chain is extracted
49and the memory for this entry is freed.
50
51
52
Note: See TracBrowser for help on using the repository browser.