Changeset a9df916 in rtems for testsuites/fstests


Ignore:
Timestamp:
Feb 8, 2015, 6:43:09 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
547c2282
Parents:
a2f5c7e1
git-author:
Sebastian Huber <sebastian.huber@…> (02/08/15 18:43:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/12/15 19:53:36)
Message:

IMFS: Add fine grained configuration

Remove miniIMFS. Statically initialize the root IMFS.

Add configuration options to disable individual
features of the root IMFS, e.g.

o CONFIGURE_IMFS_DISABLE_CHOWN,
o CONFIGURE_IMFS_DISABLE_FCHMOD,
o CONFIGURE_IMFS_DISABLE_LINK,
o CONFIGURE_IMFS_DISABLE_MKNOD,
o CONFIGURE_IMFS_DISABLE_MOUNT,
o CONFIGURE_IMFS_DISABLE_READLINK,
o CONFIGURE_IMFS_DISABLE_RENAME,
o CONFIGURE_IMFS_DISABLE_RMNOD,
o CONFIGURE_IMFS_DISABLE_SYMLINK,
o CONFIGURE_IMFS_DISABLE_UNMOUNT, and
o CONFIGURE_IMFS_DISABLE_UTIME.

Location:
testsuites/fstests
Files:
8 added
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/Makefile.am

    ra2f5c7e1 ra9df916  
    22
    33_SUBDIRS =
     4_SUBDIRS += fsimfsconfig02
     5_SUBDIRS += fsimfsconfig01
    46_SUBDIRS += fsdosfsname01
    57_SUBDIRS += fsdosfswrite01
  • testsuites/fstests/configure.ac

    ra2f5c7e1 ra9df916  
    7878# Explicitly list all Makefiles here
    7979AC_CONFIG_FILES([Makefile
     80fsimfsconfig02/Makefile
     81fsimfsconfig01/Makefile
    8082fsdosfsname01/Makefile
    8183fsdosfswrite01/Makefile
  • testsuites/fstests/fsimfsgeneric01/init.c

    ra2f5c7e1 ra9df916  
    397397};
    398398
     399static const rtems_filesystem_operations_table *imfs_ops;
     400
     401static int other_clone(rtems_filesystem_location_info_t *loc)
     402{
     403  return (*imfs_ops->clonenod_h)(loc);
     404}
     405
    399406static void test_imfs_make_generic_node_errors(void)
    400407{
     
    404411  rtems_filesystem_mount_table_entry_t *mt_entry =
    405412    (rtems_filesystem_mount_table_entry_t *) rtems_chain_first(chain);
    406   const char *type = mt_entry->type;
     413  rtems_filesystem_operations_table other_ops;
    407414  void *opaque = NULL;
    408415  rtems_resource_snapshot before;
     
    422429
    423430  errno = 0;
    424   mt_entry->type = "XXX";
     431  imfs_ops = mt_entry->ops;
     432  other_ops = *imfs_ops;
     433  other_ops.clonenod_h = other_clone;
     434  mt_entry->ops = &other_ops;
    425435  rv = IMFS_make_generic_node(
    426436    path,
     
    429439    NULL
    430440  );
    431   mt_entry->type = type;
     441  mt_entry->ops = imfs_ops;
    432442  rtems_test_assert(rv == -1);
    433443  rtems_test_assert(errno == ENOTSUP);
  • testsuites/fstests/mimfs_support/fs_support.c

    ra2f5c7e1 ra9df916  
    6565#define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS  1
    6666
     67#define CONFIGURE_FILESYSTEM_IMFS
     68
    6769#define CONFIGURE_INIT
    6870#include <rtems/confdefs.h>
Note: See TracChangeset for help on using the changeset viewer.