forked from Imagelibrary/rtems
* README, base_mp/apptask.c, base_mp/init.c, base_mp/system.h, base_mp/node1/base_mp.doc, base_mp/node2/base_mp.doc, base_sp/apptask.c, base_sp/base_sp.doc, base_sp/init.c, base_sp/system.h, cdtest/init.c, cdtest/main.cc, cdtest/system.h, fileio/fileio.doc, fileio/init.c, fileio/system.h, hello/hello.doc, hello/init.c, hello/system.h, minimum/init.c, minimum/minimum.doc, paranoia/init.c, paranoia/paranoia.doc, paranoia/system.h, ticker/init.c, ticker/system.h, ticker/tasks.c, ticker/ticker.doc, unlimited/init.c, unlimited/system.h, unlimited/test1.c, unlimited/test2.c, unlimited/test3.c, unlimited/unlimited.doc: URL for license changed.
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
#
|
|
# fileio.doc,v
|
|
#
|
|
# COPYRIGHT (c) 1989-1999.
|
|
# On-Line Applications Research Corporation (OAR).
|
|
#
|
|
# The license and distribution terms for this file may be
|
|
# found in the file LICENSE in this distribution or at
|
|
# http://www.rtems.com/license/LICENSE.
|
|
#
|
|
|
|
This sample implements some basic tests for the file systems
|
|
available. It provides the following functionality:
|
|
|
|
- perform basic file read/write tests on arbitrary file paths with
|
|
selectable I/O buffer size
|
|
- perform functions to evaluate FAT disk partition tables
|
|
- perform functions to mount FAT disks to the file system tree
|
|
|
|
A sample session might look like this:
|
|
|
|
- start this system
|
|
|
|
- select "p" (part_table_initialize) to read in the partition table of
|
|
first harddisk, enter the device name "/dev/hda", when prompted
|
|
|
|
- select "f" (fsmount) to try to mount the partitions
|
|
/dev/hda1../dev/hdc4 to corresponding mount points. Non-existant
|
|
partitions will report an error, but will not abort the tests
|
|
|
|
- select "w" (write file) to create a new file on the mounted disk (or
|
|
in the IMFS). Enter the file name (e.g. "/mnt/hda1/test_1M.txt"),
|
|
the file size (e.g. 64K or 2M) and the buffer size to use for the
|
|
write calls (e.g. 32 or 4K). Then the sample will try to write the
|
|
corresponding file and print the time consumed and data rate achived.
|
|
|
|
- select "r" (read file) to read a file (without displaying the
|
|
contents). It has similar parameters as "write file", but does not
|
|
query the file size.
|
|
|
|
- select "s" to call the rtems shell with its various capabilities.
|
|
|
|
|
|
|
|
|