|
--
Initialization -- |
| pc_ertfs_init() |
Mount
devices from device driver
table. |
|
--
File Operations -- |
| po_open |
Open
a file |
| po_read |
Read
bytes from a file |
| po_write |
Write
Bytes to a file |
| po_lseek |
Move
the file pointer |
| po_close |
Close
a file and flush the file
allocation table |
| po_flush |
Flush
an open file |
| po_trunc |
Truncate
an open file |
| pc_mv |
Rename
a file |
| pc_unlink |
Delete
a file |
| po_chsize |
Truncate
or extend an open file |
| pc_set_attributes |
Set
File Attributes |
| pc_get_attributes |
Get
File Attributes |
| pc_stat |
Obtain
statistics on a path |
| pc_fstat |
Obtain
statistics on an open file |
|
--
Directory Operations -- |
| pc_mkdir |
Create
a directory |
| pc_rmdir |
Delete
a directory |
| pc_deltree |
Delete
an entire directory tree |
| pc_gfirst |
Get
stats on the first file to
match a pattern |
| pc_gnext |
Get
stats on the next file to
match a pattern |
| pc_gdone |
Free
resources used by pc_gfirst/pc_gnext |
|
--
Miscellaneous Functions
-- |
| chkdsk |
Check
file system integrity |
| pc_fat_size |
Calculate
blocks required for a volume's
FAT |
| pc_free |
Calculate
and return the free space
on a disk |
| pc_set_default_drive |
Set
the default drive number |
| pc_set_cwd |
Set
the current working directory |
| pc_isdir |
Determine
if a path is a director |
| pc_isvol |
Determine
if a path is a volume |
| pc_pwd |
Get
string representation of current
working directory |
| pc_set_pwd |
Set
current working directory
for this user |
| pc_setdfltfrvno |
Set
the current default drive
for this user |
|
|
Select
all directory entries
that match rules and
call a user callback
on each. (like the unix
print utility)
|
|
--
Advanced High performance
Functions -- |
| pc_cluster_size |
Get
the cluster size of a drive |
| pc_find_contig_clusters |
Find
contiguous clusters in the
freelist |
| pc_get_free_list |
Get
a list of free cluster segments
on the drive |
| pc_raw_write |
Write
blocks directly to a disk |
| pc_raw_read |
Read
blocks directly from a disk |
| pc_get_file_extents |
Get
the list of block segments
that make up a file |
|
|
Extend
a file with contiguous
clusters.
Also supports direct
assignment blocks to
a file
|
|
--
Formatting routines -- |
| pc_get_media_parms |
Get
media parameter |
| pc_format_media |
Device
level format |
| Write
partition table |
Write
partition table |
| pc_format_volume |
Format
a volume |
|
--Sample
utilities provided with
ERTFS-- |
| |
An
interactive test shell
is provided. This test
shell is an excellent
demonstration of how
to use the API as well
as a useful tool itself.
The console I/O needs
of the test shell are
minimal and can be accomplished
from a simple RS232
connection.
|
| Regression
Test |
This
program tests the ERTFS API
and is a good test program
for checking out ports of
the library to new environments. |
| Check
disk |
This
is a utility and callable
function that performs the
check disk functionality |