Changeset 12eee4fd in rtems


Ignore:
Timestamp:
Feb 13, 2015, 7:53:41 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
40a18d7f
Parents:
50f8bfd
Message:

IMFS: CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM

Resurrect CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM.

Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    r50f8bfd r12eee4fd  
    345345    { RTEMS_FILESYSTEM_TYPE_IMFS, IMFS_initialize }
    346346#endif
     347#endif
     348
     349#ifdef CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
     350  #define CONFIGURE_IMFS_DISABLE_FCHMOD
     351  #define CONFIGURE_IMFS_DISABLE_CHOWN
     352  #define CONFIGURE_IMFS_DISABLE_UTIME
     353  #define CONFIGURE_IMFS_DISABLE_LINK
     354  #define CONFIGURE_IMFS_DISABLE_SYMLINK
     355  #define CONFIGURE_IMFS_DISABLE_READLINK
     356  #define CONFIGURE_IMFS_DISABLE_RENAME
     357  #define CONFIGURE_IMFS_DISABLE_UNMOUNT
    347358#endif
    348359
  • doc/user/conf.t

    r50f8bfd r12eee4fd  
    26782678
    26792679@c
     2680@c === CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM ===
     2681@c
     2682@subsection Use a Root IMFS with a Minimalistic Feature Set
     2683
     2684@findex CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
     2685
     2686@table @b
     2687@item CONSTANT:
     2688@code{CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM}
     2689
     2690@item DATA TYPE:
     2691Boolean feature macro.
     2692
     2693@item RANGE:
     2694Defined or undefined.
     2695
     2696@item DEFAULT VALUE:
     2697This is not defined by default.
     2698
     2699@end table
     2700
     2701@subheading DESCRIPTION:
     2702In case this configuration option is defined, then the following configuration
     2703options will be defined as well
     2704@itemize @bullet
     2705@item @code{CONFIGURE_IMFS_DISABLE_FCHMOD},
     2706@item @code{CONFIGURE_IMFS_DISABLE_CHOWN},
     2707@item @code{CONFIGURE_IMFS_DISABLE_UTIME},
     2708@item @code{CONFIGURE_IMFS_DISABLE_LINK},
     2709@item @code{CONFIGURE_IMFS_DISABLE_SYMLINK},
     2710@item @code{CONFIGURE_IMFS_DISABLE_READLINK},
     2711@item @code{CONFIGURE_IMFS_DISABLE_RENAME}, and
     2712@item @code{CONFIGURE_IMFS_DISABLE_UNMOUNT}.
     2713@end itemize
     2714
     2715@c
    26802716@c === CONFIGURE_IMFS_DISABLE_CHOWN ===
    26812717@c
    2682 @subsection Disable change owner support of root IMFS
     2718@subsection Disable Change Owner Support of Root IMFS
    26832719
    26842720@findex CONFIGURE_IMFS_DISABLE_CHOWN
     
    27062742@c === CONFIGURE_IMFS_DISABLE_FCHMOD ===
    27072743@c
    2708 @subsection Disable change mode support of root IMFS
     2744@subsection Disable Change Mode Support of Root IMFS
    27092745
    27102746@findex CONFIGURE_IMFS_DISABLE_FCHMOD
     
    27322768@c === CONFIGURE_IMFS_DISABLE_UTIME ===
    27332769@c
    2734 @subsection Disable change times support of root IMFS
     2770@subsection Disable Change Times Support of Root IMFS
    27352771
    27362772@findex CONFIGURE_IMFS_DISABLE_UTIME
     
    27582794@c === CONFIGURE_IMFS_DISABLE_LINK ===
    27592795@c
    2760 @subsection Disable create hard link support of root IMFS
     2796@subsection Disable Create Hard Link Support of Root IMFS
    27612797
    27622798@findex CONFIGURE_IMFS_DISABLE_LINK
     
    27842820@c === CONFIGURE_IMFS_DISABLE_SYMLINK ===
    27852821@c
    2786 @subsection Disable create symbolic link support of root IMFS
     2822@subsection Disable Create Symbolic Link Support of Root IMFS
    27872823
    27882824@findex CONFIGURE_IMFS_DISABLE_SYMLINK
     
    28102846@c === CONFIGURE_IMFS_DISABLE_READLINK ===
    28112847@c
    2812 @subsection Disable read symbolic link support of root IMFS
     2848@subsection Disable Read Symbolic Link Support of Root IMFS
    28132849
    28142850@findex CONFIGURE_IMFS_DISABLE_READLINK
     
    28362872@c === CONFIGURE_IMFS_DISABLE_RENAME ===
    28372873@c
    2838 @subsection Disable rename support of root IMFS
     2874@subsection Disable Rename Support of Root IMFS
    28392875
    28402876@findex CONFIGURE_IMFS_DISABLE_RENAME
     
    28622898@c === CONFIGURE_IMFS_DISABLE_MOUNT ===
    28632899@c
    2864 @subsection Disable mount support of root IMFS
     2900@subsection Disable Mount Support of Root IMFS
    28652901
    28662902@findex CONFIGURE_IMFS_DISABLE_MOUNT
     
    28882924@c === CONFIGURE_IMFS_DISABLE_UNMOUNT ===
    28892925@c
    2890 @subsection Disable unmount support of root IMFS
     2926@subsection Disable Unmount Support of Root IMFS
    28912927
    28922928@findex CONFIGURE_IMFS_DISABLE_UNMOUNT
     
    29142950@c === CONFIGURE_IMFS_DISABLE_MKNOD ===
    29152951@c
    2916 @subsection Disable make nodes support of root IMFS
     2952@subsection Disable Make Nodes Support of Root IMFS
    29172953
    29182954@findex CONFIGURE_IMFS_DISABLE_MKNOD
     
    29402976@c === CONFIGURE_IMFS_DISABLE_RMNOD ===
    29412977@c
    2942 @subsection Disable remove nodes support of root IMFS
     2978@subsection Disable Remove Nodes Support of Root IMFS
    29432979
    29442980@findex CONFIGURE_IMFS_DISABLE_RMNOD
  • testsuites/fstests/Makefile.am

    r50f8bfd r12eee4fd  
    22
    33_SUBDIRS =
     4_SUBDIRS += fsimfsconfig03
    45_SUBDIRS += fsimfsconfig02
    56_SUBDIRS += fsimfsconfig01
  • testsuites/fstests/configure.ac

    r50f8bfd r12eee4fd  
    7878# Explicitly list all Makefiles here
    7979AC_CONFIG_FILES([Makefile
     80fsimfsconfig03/Makefile
    8081fsimfsconfig02/Makefile
    8182fsimfsconfig01/Makefile
  • testsuites/fstests/fsimfsconfig01/init.c

    r50f8bfd r12eee4fd  
    2121#include <sys/stat.h>
    2222#include <errno.h>
     23#include <fcntl.h>
    2324#include <stdio.h>
    2425#include <unistd.h>
     
    4142  const char *generic = "generic";
    4243  const char *mnt = "mnt";
     44  const char *dev = "device";
     45  const char *file = "file";
     46  const char *fifo = "fifo";
    4347  int rv;
     48  int fd;
    4449
    4550  TEST_BEGIN();
     
    7176  rtems_test_assert(rv == 0);
    7277
     78  rv = mknod(dev, S_IFCHR | S_IRWXU, 0);
     79  rtems_test_assert(rv == 0);
     80
     81  fd = creat(file, S_IRWXU);
     82  rtems_test_assert(fd == 3);
     83
     84  rv = close(fd);
     85  rtems_test_assert(rv == 0);
     86
     87  errno = 0;
     88  rv = mkfifo(fifo, S_IRWXU);
     89  rtems_test_assert(rv == -1);
     90  rtems_test_assert(errno == ENOSYS);
     91
    7392  errno = 0;
    7493  rv = mount(
     
    88107
    89108  errno = 0;
    90   rv = unlink(generic);
    91   rtems_test_assert(rv == -1);
    92   rtems_test_assert(errno == ENOTSUP);
    93 
    94   errno = 0;
    95109  rv = symlink(generic, "link");
    96110  rtems_test_assert(rv == -1);
     
    102116  rtems_test_assert(errno == ENOTSUP);
    103117
     118  errno = 0;
     119  rv = unlink(generic);
     120  rtems_test_assert(rv == -1);
     121  rtems_test_assert(errno == ENOTSUP);
     122
    104123  TEST_END();
    105124  rtems_test_exit(0);
     
    108127#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    109128#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     129
     130#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
    110131
    111132#define CONFIGURE_FILESYSTEM_IMFS
Note: See TracChangeset for help on using the changeset viewer.