summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psximfs02/init.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-12testsuites/psxtests/psx[g-m1]*: Change license to BSD-2Joel Sherrill1-3/+22
Updates #3053.
2022-04-07imfs: Fix index underrun when extending empty fileChristian Mauderer1-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
2019-12-19config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORSSebastian Huber1-1/+1
Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753.
2019-12-13config: Add CONFIGURE_IMFS_ENABLE_MKFIFOSebastian Huber1-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.
2018-05-02tests: Remove configure feature checksSebastian Huber1-4/+0
Update #3409.
2018-01-19psximfs02: Use floating-point taskSebastian Huber1-0/+1
This test uses sprintf().
2017-11-06tests: Use simple console driverSebastian Huber1-1/+1
Update #3170. Update #3199.
2017-10-28tests: Remove TEST_INITSebastian Huber1-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.
2017-10-23testsuite: Use printk for all test output where possible.Chris Johns1-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.
2017-07-28psximfs02/init.c: Increase size of buffer to avoid overwriteJoel Sherrill1-2/+2
2017-06-21psximfs02/init.c: Avoid potential string overflowJoel Sherrill1-2/+2
2016-01-05Filesystem: Remove superfluous permission checksSebastian Huber1-5/+0
The permission is check by the upper layer.
2015-10-27CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK was undocumented and not error checkedJoel Sherrill1-2/+2
closes #2431.
2015-02-12IMFS: Add fine grained configurationSebastian Huber1-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.
2015-02-09Filesystem: Simplify FIFO and pipe configurationSebastian Huber1-1/+0
2015-01-27IMFS: Replace node union with individual structSebastian Huber1-3/+0
This reduces the average node size. Add and use IMFS_GENERIC_INITIALIZER().
2014-03-25tests/psxtests: Use <rtems/test.h>Sebastian Huber1-2/+6
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2014-01-07psximfs02: Clean up outputJoel Sherrill1-2/+2
2012-07-17score: Change greedy allocation APISebastian Huber1-10/+15
2012-05-11psxtests - Eliminate missing prototype warningsJoel Sherrill1-2/+5
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+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.
2012-03-13Filesystem: Reference counting for locationsSebastian Huber1-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.
2011-02-22Add HAVE_CONFIG_H.Ralf Corsepius1-0/+4
2011-02-142011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-0/+5
* psximfs02/init.c: Disable EPERM test which does not work when POSIX is disabled.
2010-08-302010-08-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-0/+4
* configure.ac: AC_CHECK_DECLS([seteuid]). * psximfs02/init.c: Provide decl for seteuid if not provided by libc.
2010-08-102010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+1
PR 1665/testing * psximfs02/init.c: Fix uninitialized variable warning.
2010-08-092010-08-09 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill1-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-092010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-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-072010-08-06 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill1-0/+16
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-08-022010-07-30 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill1-1/+31
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-292010-07-29 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill1-0/+153
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.