Commit Graph

24 Commits

Author SHA1 Message Date
Sebastian Huber
698c2e504a tests/psxtests: Use <rtems/test.h> 2014-03-25 08:06:16 +01:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
847ad441cd Filesystem: Wait for unmount() to finish 2012-05-29 12:25:34 +02:00
Joel Sherrill
6c2de6052d psxtests - Eliminate missing prototype warnings 2012-05-11 14:12:11 -05:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Sebastian Huber
3ba4f828e4 Filesystem: Read-only file system checks
o Make sure EROFS is indicated for write operations on a read-only file
   system.
 o Add error indication for read-only file systems in fchmod() and
   fchown() according to POSIX.
2012-03-13 12:23:44 +01:00
Sebastian Huber
3b7c123c8d Filesystem: Reference counting for locations
o A new data structure rtems_filesystem_global_location_t was
   introduced to be used for
    o the mount point location in the mount table entry,
    o the file system root location in the mount table entry,
    o the root directory location in the user environment, and
    o the current directory location in the user environment.
   During the path evaluation global start locations are obtained to
   ensure that the current file system instance will be not unmounted in
   the meantime.
 o The user environment uses now reference counting and is protected
   from concurrent access.
 o The path evaluation process was completely rewritten and simplified.
   The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation
   method.  Recursive calls in the path evaluation have been replaced
   with iteration to avoid stack overflows.  Only the evaluation of
   symbolic links is recursive.  No dynamic memory allocations and
   intermediate buffers are used in the high level path evaluation.  No
   global locks are held during the file system instance specific path
   evaluation process.
 o Recursive symbolic link evaluation is now limited by
   RTEMS_FILESYSTEM_SYMLOOP_MAX.  Applications can retrieve this value
   via sysconf().
 o The device file system (devFS) uses now no global variables and
   allocation from the workspace.  Node names are allocated from the
   heap.
 o The upper layer lseek() performs now some parameter checks.
 o The upper layer ftruncate() performs now some parameter checks.
 o unmask() is now restricted to the RWX flags and protected from
   concurrent access.
 o The fchmod_h and rmnod_h file system node handlers are now a file
   system operation.
 o The unlink_h operation has been removed.  All nodes are now destroyed
   with the rmnod_h operation.
 o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system
   operations.
 o The path evaluation and file system operations are now protected by
   per file system instance lock and unlock operations.
 o Fix and test file descriptor duplicate in fcntl().
 o New test fstests/fsnofs01.
2012-03-13 12:23:37 +01:00
Ralf Corsepius
cafefbf263 Add HAVE_CONFIG_H. 2011-02-22 09:47:36 +00:00
Joel Sherrill
33c46f1a70 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx02/init.c, psx02/task.c, psx03/init.c, psx04/init.c,
	psx04/task1.c, psx04/task2.c, psx04/task3.c, psx05/init.c,
	psx05/task.c, psx05/task2.c, psx05/task3.c, psx06/init.c,
	psx06/task.c, psx06/task2.c, psx07/init.c, psx08/init.c,
	psx08/task2.c, psx08/task3.c, psx09/init.c, psx10/init.c,
	psx10/task.c, psx10/task2.c, psx10/task3.c, psx11/init.c,
	psx11/task.c, psx12/init.c, psxalarm01/init.c, psxbarrier01/test.c,
	psxcancel01/init.c, psxchroot01/test.c, psxitimer/init.c,
	psxkey01/task.c, psxkey02/init.c, psxkey03/init.c, psxmount/test.c,
	psxmsgq01/init.c, psxmsgq03/init.c, psxmsgq04/init.c,
	psxrwlock01/test.c, psxsem01/init.c, psxsignal01/init.c,
	psxsignal01/task1.c, psxsignal02/init.c, psxsignal03/init.c,
	psxsignal05/init.c, psxspin01/test.c, psxspin02/test.c,
	psxstack01/init.c, psxstack02/init.c, psxualarm/init.c: Eliminate
	double space after parenthesis on rtems_test_assert().
2010-10-21 21:22:25 +00:00
Chris Johns
042a44210a 2010-06-02 Chris Johns <chrisj@rtems.org>
* psxfile01/test.c, psxmount/test.c, psxreaddir/test.c,
        psxstat/test.c: Update to the new mount API.
2010-06-02 00:50:37 +00:00
Joel Sherrill
2317457e10 2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c,
	psx03/init.c, psx03/task.c, psx04/init.c, psx04/task1.c,
	psx04/task2.c, psx04/task3.c, psx05/init.c, psx05/task.c,
	psx05/task2.c, psx05/task3.c, psx06/init.c, psx06/task.c,
	psx06/task2.c, psx07/init.c, psx08/init.c, psx08/task2.c,
	psx08/task3.c, psx09/init.c, psx10/init.c, psx10/task.c,
	psx10/task2.c, psx10/task3.c, psx11/init.c, psx11/task.c,
	psx12/init.c, psxalarm01/init.c, psxbarrier01/test.c,
	psxcancel01/init.c, psxchroot01/test.c, psxclock/init.c,
	psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c,
	psxfile01/test_write.c, psxitimer/init.c, psxkey01/task.c,
	psxkey02/init.c, psxkey03/init.c, psxmount/test.c, psxmsgq01/init.c,
	psxmsgq03/init.c, psxmsgq04/init.c, psxreaddir/test.c,
	psxrwlock01/test.c, psxsem01/init.c, psxsignal01/init.c,
	psxsignal01/task1.c, psxsignal02/init.c, psxsignal03/init.c,
	psxsignal05/init.c, psxspin01/test.c, psxspin02/test.c,
	psxstack01/init.c, psxstat/test.c, psxtime/test.c, psxualarm/init.c:
	Use rtems_test_assert() consistently instead of system assert().
	rtems_test_assert() is designed to integrate into the RTEMS test
	suite infrastructure.
2009-12-08 17:52:53 +00:00
Ralf Corsepius
22397d3d35 Remove __P (unused anachronism). 2009-10-30 13:26:25 +00:00
Ralf Corsepius
1b4f2b305c Remove stray white spaces. 2004-04-16 09:24:30 +00:00
Ralf Corsepius
3239698d1f Remove stray white spaces. 2004-04-15 13:26:21 +00:00
Ralf Corsepius
0fdaca2197 2004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>
* psxcancel/init.c: Include <rtems/console.h> instead of <console.h>.
	* psxmount/test.c: Include <rtems/imfs.h> instead of <imfs.h>.
	* psxreaddir/test.c: Include <rtems/imfs.h> instead of <imfs.h>.
	* psxstat/test.c: Include <rtems/imfs.h> instead of <imfs.h>.
2004-04-01 10:14:37 +00:00
Joel Sherrill
d8024895e3 2002-08-01 Joel Sherrill <joel@OARcorp.com>
* Per PR47 add support for buffered test output.  This involved
	adding defines to redirect output to a buffer and dump it when
	full, at "test pause", and at exit.  To avoid problems when redefining
	exit(), all tests were modified to call rtems_test_exit().
	Some tests, notable psxtests, had to be modified to include
	the standard test macro .h file (pmacros.h or tmacros.h) to
	enable this support.
	* include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c,
	psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c,
	psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c,
	psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c,
	psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c,
	psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c,
	psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c,
	psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c,
	psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am,
	psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c,
	psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c,
	psxtime/test.c, psxtimer/psxtimer.c: Modified.
2002-08-02 00:53:21 +00:00
Jennifer Averett
1e566bbb1c 2000-11-17 Jennifer Averret <jennifer@OARcorp.com>
* psxmount/test.c, psxmount/psxmount.scn: Improve output to report
	expected error condition in one case.
	* psxreaddir/test.c, psxreaddir.scn: Added test cases to exercise
	readdir() of root of mounted filesystem.  Also corrected the screen
	file for some mistakes noticed in this effort.
2000-11-17 19:06:40 +00:00
Joel Sherrill
c34ac29529 2000-11-13 Joel Sherrill <joel@OARcorp.com>
* psxmount/psxmount.scn, psxmount/test.c: Correct spelling.
2000-11-15 21:41:04 +00:00
Joel Sherrill
0bbc89df41 2000-10-24 Joel Sherrill <joel@OARcorp.com>
* psxmount/test.c, psxstat/test.c: Include <imfs.h> to get IMFS_ops.
	It was formerly incorrectly prototyped in <libio.h>.
2000-10-25 16:52:28 +00:00
Jennifer Averett
22542b6ba7 Removed leading space from output. 1999-11-16 20:50:36 +00:00
Joel Sherrill
4c1b914ed8 Minor changes to make the screen match a bit better. 1999-11-02 16:39:44 +00:00
Joel Sherrill
dbf969e1d5 Test modified to reflect change in calling sequence of mount(). 1999-07-01 22:08:13 +00:00
Jennifer Averett
c2f9b97543 Cleaned up test.
Updated scn files to match present expected test output.
1998-12-03 22:41:57 +00:00
Joel Sherrill
0895bdb89c Added tests in support of the file system infrastructure. 1998-11-23 18:57:48 +00:00