summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psximfs02 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuites/psxtests/psx[g-m1]*: Change license to BSD-2Joel Sherrill2022-04-122-6/+44
| | | | Updates #3053.
* imfs: Fix index underrun when extending empty fileChristian Mauderer2022-04-071-1/+29
| | | | | | | | | | | | | | | | | | | | | | | Currently the following sequence causes a endless loop when extending an IMFS file: - Create a file with zero length and close it. - Make sure nearly no allocatable memory is left. - Open the file and write enough data into it that more than the remaining memory will be used. In that case when extending the IMFS file, the file currently need zero blocks. If allocating enough new blocks fails, the already allocated new blocks will be freed again. The comparison of block>=old_blocks that has been used prior to this patch compared two unsigned numbers. If old_blocks was zero, the comparison of these two numbers always evaluated to true. This patch frees the last block in a separate step to avoid this problem. Fixes #4639
* config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORSSebastian Huber2019-12-191-1/+1
| | | | | | | Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753.
* config: Add CONFIGURE_IMFS_ENABLE_MKFIFOSebastian Huber2019-12-131-2/+1
| | | | | | | | Obsolete undocumented configuration options CONFIGURE_MAXIMUM_FIFOS and CONFIGURE_MAXIMUM_PIPES. Replace these options with the new CONFIGURE_IMFS_ENABLE_MKFIFO configuration option. Update #3840.
* tests: Remove configure feature checksSebastian Huber2018-05-021-4/+0
| | | | Update #3409.
* testsuite/psxtests: Merged nested Makefile.am files into one Makefile.amChris Johns2018-04-101-20/+0
| | | | | | This change is part of the testsuite Makefile.am reorganization. Update #3382
* psximfs02: Use floating-point taskSebastian Huber2018-01-191-0/+1
| | | | This test uses sprintf().
* tests: Use simple console driverSebastian Huber2017-11-061-1/+1
| | | | | Update #3170. Update #3199.
* tests: Remove TEST_INITSebastian Huber2017-10-281-2/+0
| | | | | | | | The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
* testsuite: Use printk for all test output where possible.Chris Johns2017-10-231-0/+2
| | | | | | | | | | - Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
* psximfs02/init.c: Increase size of buffer to avoid overwriteJoel Sherrill2017-07-281-2/+2
|
* psximfs02/init.c: Avoid potential string overflowJoel Sherrill2017-06-211-2/+2
|
* Filesystem: Remove superfluous permission checksSebastian Huber2016-01-051-5/+0
| | | | The permission is check by the upper layer.
* CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK was undocumented and not error checkedJoel Sherrill2015-10-271-2/+2
| | | | closes #2431.
* IMFS: Add fine grained configurationSebastian Huber2015-02-121-0/+2
| | | | | | | | | | | | | | | | | | 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.
* Filesystem: Simplify FIFO and pipe configurationSebastian Huber2015-02-091-1/+0
|
* IMFS: Replace node union with individual structSebastian Huber2015-01-272-29/+6
| | | | | | This reduces the average node size. Add and use IMFS_GENERIC_INITIALIZER().
* tests/psxtests: Use <rtems/test.h>Sebastian Huber2014-03-251-2/+6
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-212-2/+2
|
* psximfs02: Clean up outputJoel Sherrill2014-01-072-3/+4
|
* score: Change greedy allocation APISebastian Huber2012-07-171-10/+15
|
* psxtests - Eliminate missing prototype warningsJoel Sherrill2012-05-111-2/+5
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-113-9/+0
| | | | | | | | | | | | 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.
* Revert: Remove CVS IdsJoel Sherrill2012-05-071-0/+4
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* Remove CVS-Ids.Ralf Corsépius2012-05-041-4/+0
|
* Filesystem: Reference counting for locationsSebastian Huber2012-03-131-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove all .cvsignore files.Joel Sherrill2012-02-011-2/+0
|
* 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR 1589/build * psx01/Makefile.am, psx02/Makefile.am, psx03/Makefile.am, psx04/Makefile.am, psx05/Makefile.am, psx06/Makefile.am, psx07/Makefile.am, psx08/Makefile.am, psx09/Makefile.am, psx10/Makefile.am, psx11/Makefile.am, psx12/Makefile.am, psx13/Makefile.am, psx14/Makefile.am, psx15/Makefile.am, psx16/Makefile.am, psxaio01/Makefile.am, psxaio02/Makefile.am, psxaio03/Makefile.am, psxalarm01/Makefile.am, psxautoinit01/Makefile.am, psxautoinit02/Makefile.am, psxbarrier01/Makefile.am, psxcancel/Makefile.am, psxcancel01/Makefile.am, psxchroot01/Makefile.am, psxclassic01/Makefile.am, psxcleanup/Makefile.am, psxcleanup01/Makefile.am, psxclock/Makefile.am, psxcond01/Makefile.am, psxeintr_join/Makefile.am, psxenosys/Makefile.am, psxfatal01/Makefile.am, psxfatal02/Makefile.am, psxfchx01/Makefile.am, psxfile01/Makefile.am, psxfile02/Makefile.am, psxfilelock01/Makefile.am, psxgetrusage01/Makefile.am, psxid01/Makefile.am, psximfs01/Makefile.am, psximfs02/Makefile.am, psxintrcritical01/Makefile.am, psxitimer/Makefile.am, psxkey01/Makefile.am, psxkey02/Makefile.am, psxkey03/Makefile.am, psxmount/Makefile.am, psxmsgq01/Makefile.am, psxmsgq02/Makefile.am, psxmsgq03/Makefile.am, psxmsgq04/Makefile.am, psxmutexattr01/Makefile.am, psxobj01/Makefile.am, psxpasswd01/Makefile.am, psxpasswd02/Makefile.am, psxpipe01/Makefile.am, psxrdwrv/Makefile.am, psxreaddir/Makefile.am, psxrwlock01/Makefile.am, psxsem01/Makefile.am, psxsignal01/Makefile.am, psxsignal02/Makefile.am, psxsignal03/Makefile.am, psxsignal04/Makefile.am, psxsignal05/Makefile.am, psxsignal06/Makefile.am, psxspin01/Makefile.am, psxspin02/Makefile.am, psxstack01/Makefile.am, psxstack02/Makefile.am, psxstat/Makefile.am, psxsysconf/Makefile.am, psxtime/Makefile.am, psxtimer01/Makefile.am, psxtimer02/Makefile.am, psxtimes01/Makefile.am, psxualarm/Makefile.am, psxusleep/Makefile.am: Remove obsolete optional manager capability.
* Add HAVE_CONFIG_H.Ralf Corsepius2011-02-221-0/+4
|
* 2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2011-02-141-0/+5
| | | | | * psximfs02/init.c: Disable EPERM test which does not work when POSIX is disabled.
* 2010-08-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-08-301-0/+4
| | | | | | * configure.ac: AC_CHECK_DECLS([seteuid]). * psximfs02/init.c: Provide decl for seteuid if not provided by libc.
* 2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-08-101-2/+1
| | | | | PR 1665/testing * psximfs02/init.c: Fix uninitialized variable warning.
* 2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill2010-08-091-0/+1
| | | | | | | PR 1661/testing * psximfs02/init.c: Changes to improve coverage of imfs_initsupp.c, by using a bad value for CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK
* 2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-08-091-5/+3
| | | | | | PR 1661/testing * psxchroot01/test.c, psximfs01/init.c, psximfs02/init.c, psxpipe01/init.c: Eliminate most references to RTEMS_Malloc_Heap.
* 2010-08-06 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill2010-08-072-2/+21
| | | | | | | | | | | | | | PR 1654/testing * psx13/test.c, psx13/psx13.scn: Test case to improve testing of dup2 routine. * psxfile01/test.c, psxfile01/psxfile01.scn: New test to improve testing of fcntl routine. * psximfs01/init.c, psximfs01/psximfs01.scn: Improve testing of imfs routines. * psximfs02/init.c, psximfs02/psximfs02.scn: Improve coverage of imfs routines. * psxpasswd02/init.c, psxpasswd02/psxpasswd02.scn: New tests to improve coverage of getpwent.c.
* 2010-07-30 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill2010-08-023-1/+58
| | | | | | | PR 1642/testing * psximfs02/init.c, psximfs02/psximfs02.scn, psximfs02/psximfs02.doc: Added test cases to exercise chmod(), chown() and routines in imfs_debug.c.
* 2010-07-29 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill2010-07-295-0/+244
PR 1642/testing * psximfs02/init.c, psximfs02/psximfs02.scn, psximfs02/psximfs02.doc, psximfs02/Makefile.am: New test added. * configure.ac, Makefile.am: Changes to accommodate psximfs02 test.