source: rtems/cpukit/libfs/src/imfs/miniimfs_init.c @ 624867b

4.104.114.84.95
Last change on this file since 624867b was 624867b, checked in by Eric Norum <WENorum@…>, on Feb 8, 2005 at 5:12:54 PM

Add copy-on-write semantics to rtems_tarfs_load().

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  Mini-IMFS Initialization
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <sys/types.h>         /* for mkdir */
19#include <fcntl.h>
20#include <unistd.h>
21#include <stdlib.h>
22
23#include <assert.h>
24
25#include "imfs.h"
26#include <rtems/libio_.h>
27
28#if defined(IMFS_DEBUG)
29#include <stdio.h>
30#endif
31
32/*
33 *  miniIMFS file system operations table
34 */
35
36rtems_filesystem_operations_table  miniIMFS_ops = {
37  IMFS_eval_path,
38  IMFS_evaluate_for_make,
39  NULL, /* XXX IMFS_link, */
40  NULL, /* XXX IMFS_unlink, */
41  IMFS_node_type,
42  IMFS_mknod,
43  NULL, /* XXX IMFS_chown, */
44  NULL, /* XXX IMFS_freenodinfo, */
45  NULL, /* XXX IMFS_mount, */
46  miniIMFS_initialize,
47  NULL, /* XXX IMFS_unmount, */
48  NULL, /* XXX IMFS_fsunmount, */
49  NULL, /* XXX IMFS_utime, */
50  NULL, /* XXX IMFS_evaluate_link, */
51  NULL, /* XXX IMFS_symlink, */
52  NULL  /* XXX IMFS_readlink */
53};
54
55/*
56 *  miniIMFS_initialize
57 */
58
59int miniIMFS_initialize(
60  rtems_filesystem_mount_table_entry_t *temp_mt_entry
61)
62{
63    return IMFS_initialize_support(
64      temp_mt_entry,
65      &miniIMFS_ops,
66      &rtems_filesystem_null_handlers,  /* for memfiles */
67      &rtems_filesystem_null_handlers   /* for directories */
68   );
69}
Note: See TracBrowser for help on using the repository browser.