Commit Graph

116 Commits

Author SHA1 Message Date
Sebastian Huber
c625a64121 Filesystem: Delete node type operation
Use the fstat handler instead.
2015-01-22 07:52:40 +01:00
Sebastian Huber
a0b1b5edb8 Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
This define was superfluous, undocumented and used inconsistently.
2014-12-16 11:34:38 +01:00
Sebastian Huber
1207288022 Update bug report URL 2014-12-05 07:47:32 +01:00
Sebastian Huber
b8bd90f68f Add supplementary groups to user environment 2014-11-20 10:30:23 +01:00
Sebastian Huber
66c1ef9256 Revert "fstests/mdosfs_fstime: Remove test"
This reverts commit bdcf4102f7.
2014-10-23 10:21:28 +02:00
Sebastian Huber
22cd2821de IMFS: Avoid NULL pointer access
Avoid NULL pointer access in IMFS_is_imfs_instance().  File systems
mounted via mount() always have a valid type string.
2014-10-08 11:26:27 +02:00
Joel Sherrill
3324383ce0 testsuites: Remove BSP_SMALL_MEMORY 2014-05-06 18:31:00 -05:00
Chris Johns
1461b648b7 testsuite: Add a per BSP test check for tests not to build.
Provide a file per BSP to list tests that do not build for a BSP. This change
removes the BSP_SMALL_MEMORY hack from the code. That hack was a
mistake.

Provide configuration files for each BSP with tests that cannot build.
2014-05-05 10:24:41 +10:00
Joel Sherrill
2bea49479a fsdosfsname01: Honor BSP_SMALL_MEMORY 2014-04-22 08:37:02 -05:00
Joel Sherrill
97ae79d762 fsdosfsformat01: Honor BSP_SMALL_MEMORY 2014-04-22 08:37:02 -05:00
Christian Mauderer
5c0c0cf2a6 privateenv: Use POSIX keys instead of task variables. 2014-03-27 14:50:36 +01:00
Christian Mauderer
7d5c27e308 privateenv: Remove sharing of user environment between threads. 2014-03-27 14:50:36 +01:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
f68401e3f5 fstests/fsrename: Fix stack corruption
Use snprintf() instead of sprintf().  Include missing header files.
2014-03-20 13:20:44 +01:00
Sebastian Huber
802d3ba712 tests/fstests: Remove duplicate begin/end messages
Fix file system names.  Remove superfluous defines.
2014-03-20 09:10:08 +01:00
Andre Marques
27d240e050 New fstest to check rename POSIX conformance
This patch is a newer version of the test presented on

http://www.rtems.org/pipermail/rtems-devel/2014-February/005318.html

Unchecked error cases:

- EIO (physical error)

- ENOSPC (no space left in the new filepath)

- EROFS (already covered on testsuites/fstests/fsrofs01)

Untested functionality:

- File system lock during rename() operation

- If after rename() the link count of a file becomes 0 it should be
removed and the space ocupied by the file shall be freed and no longer
accessible (the function statvfs() gives "not implemented" on the imfs
file system, so this is postponed for now)
2014-03-17 10:21:56 +01:00
Sebastian Huber
bc75887774 tests/fstests: Use <rtems/test.h> 2014-03-17 09:17:36 +01:00
Cynthia Rempel
73a7713d8c fstests and libtests: Add contents to multiple documentation files 2014-01-08 12:48:37 -06:00
Cynthia Rempel
23d53e8aaa fsdosfsformat01.doc: Add contents 2014-01-07 15:08:48 -06:00
Cynthia Rempel
d8cd49cb8b fsbdpart01.doc: Add contents 2014-01-07 13:33:36 -06:00
Sebastian Huber
2f68778f08 Filesystem: Add readv/writev handlers
The readv() and writev() support was implemented in terms of multiple
calls to the read and write handlers.  This imposes a problem on device
files which use an IO vector as single request entity.  For example a
low-level network device (e.g. BPF(4)) may use an IO vector to create
one frame from multiple protocol layers each with its own IO vector
entry.
2013-12-20 10:31:53 +01:00
Joel Sherrill
d0beb9bac4 Misc tests: Fix scn files and adjust output 2013-11-18 10:55:24 -06:00
Joel Sherrill
a136fb697d testsuites: Add missing .scn files 2013-11-15 11:55:44 -06:00
Joel Sherrill
892abd53f9 Rename imfs_fspathenval.scn to imfs_fspatheval.scn 2013-11-15 11:55:44 -06:00
Ralf Kirchner
a45b2ac992 fsdosfsname01: Improve test for duplicate names 2013-11-15 14:05:59 +01:00
Ralf Kirchner
0098c5221d fsdosfsformat01: Add test for re-mount of a filesystem 2013-10-18 12:07:10 -04:00
Sebastian Huber
0282e83d64 JFFS2: New tests 2013-09-19 13:16:07 +02:00
Sebastian Huber
bdcf4102f7 fstests/mdosfs_fstime: Remove test
The FAT file system is not conformant with the POSIX requirements.
2013-09-16 10:54:51 +02:00
Sebastian Huber
736983f1cc fstests/fstime: Fix according to POSIX
ftruncate() and open() with O_TRUNC shall upon successful completion
mark for update the st_ctime and st_mtime fields of the file.

truncate() shall upon successful completion, if the file size is
changed, mark for update the st_ctime and st_mtime fields of the file.

The POSIX standard "The Open Group Base Specifications Issue 7", IEEE
Std 1003.1, 2013 Edition says nothing about the behaviour of truncate()
if the file size remains unchanged.

Future directions of the standard may mandate the behaviour specified in
ftruncate():

http://austingroupbugs.net/view.php?id=489
2013-09-13 16:47:55 +02:00
Sebastian Huber
2477a39357 fstests/fspermission: Fix resource leak 2013-09-13 16:47:55 +02:00
Chris Johns
2f9cef8819 Check times with a no change truncate via open.
The open path should update the times even if the truncate does not
change the size.
2013-08-08 08:11:57 +10:00
Ralf Kirchner
581c9982a3 fsdsosfsname01: Ensure endian correctness 2013-06-03 17:28:41 +02:00
Ralf Kirchner
e1483973c4 fsdosfsname01: Add compatibility tests
Test handling of file names and directory names according to Microsofts
specification for the FAT file system. Tests for compatibility with a
genuine MS Windows FAT file system have been added.
2013-06-03 17:28:41 +02:00
Ralf Kirchner
52f3aa0519 fsdosfsname01: Add multibyte tests
Test handling of file names and directory names according to Microsofts specification
for the FAT file system. Tests for multibyte file names and directory names have been added.
2013-06-03 17:28:41 +02:00
Ralf Kirchner
ccd212efab fsdosfsname01: New test
Test handling of file names and directory names according to Microsofts
specification for the FAT file system. So far tested only for the
default character set (code page 850).
2013-06-03 17:28:40 +02:00
Ralf Kirchner
e67025e390 dosfs: Add RTEMS_DOSFS_SEMAPHORES_PER_INSTANCE 2013-05-24 08:55:05 +02:00
Ralf Kirchner
8db586c8c4 fstests: Use "tmacros.h" instead of "pmacros.h" 2013-05-24 08:52:35 +02:00
Sebastian Huber
12c99a6476 fstests/fsstatvfs: Fix end of test message 2013-05-16 11:40:42 +02:00
Andrei Mozzhuhin
56f2260008 dosfs: Add statvfs() support 2013-05-16 11:40:41 +02:00
Sebastian Huber
7b369afba9 testsuites: Fix warnings 2013-04-11 13:58:33 +02:00
Gedare Bloom
fad2d38a9f RTEMS: Delete ChangeLog files.
This commit deletes all RTEMS ChangeLog files. These files have been abandoned
since converting to git version control. The historical data may be recovered
by checking out any commit before this one. Most of the contents of these
ChangeLog files can also be found in the git log.

Two external ChangeLog files, ChangeLog.slac and ChangeLog.zlib, remain.
2013-03-08 15:55:06 -05:00
Sebastian Huber
71cf3e9d2f libblock: Do resource allocation in one place
All resource allocations take place in rtems_bdbuf_init() now.  After
rtems_bdbuf_init() no fatal errors can happen due to configuration
errors or resource limits.  This makes it easier to detect
configuration errors for users.
2013-02-21 10:50:04 +01:00
Sebastian Huber
4ddeb343a1 fstests/fsrdwr: Add test case 2013-02-20 09:11:40 +01:00
Sebastian Huber
3d6d4dae0b fstests/fsrdwr: Fix warning 2013-02-20 09:11:40 +01:00
Sebastian Huber
0a3a1b2419 fstests: Prevent compiler optimizations 2013-02-15 18:00:19 +01:00
Sebastian Huber
80e37434ac fstests/fsrdwr: Free allocated memory 2013-01-30 17:21:26 +01:00
Sebastian Huber
2e0177d8d8 fstests: Check resources used by FAT file system 2013-01-30 17:08:05 +01:00
Sebastian Huber
065441d80f fstests: Use global environment and clean up
This releases all resources acquired by the chroot().
2013-01-30 17:08:05 +01:00
Sebastian Huber
334222f042 fstests: Initialize swapout task 2013-01-30 17:08:05 +01:00
Sebastian Huber
399afaf5ba fstests: Perform a quick format 2013-01-30 17:08:05 +01:00