summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_handlers_memfile.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-12 13:44:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-12 13:44:12 +0000
commitd19415873fb6b6197d77916758593c9897a0cb69 (patch)
treefb1e3dd1eb1f4c8d47c262fae6e68500aef79087 /cpukit/libfs/src/imfs/imfs_handlers_memfile.c
parent2001-01-12 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-d19415873fb6b6197d77916758593c9897a0cb69.tar.bz2
2001-01-12 Jake Janovetz <janovetz@uiuc.edu>
* src/imfs/imfs.h, src/imfs/imfs_creat.c, src/imfs/imfs_debug.c, src/imfs/imfs_eval.c, src/imfs/imfs_fchmod.c, src/imfs/imfs_handlers_memfile.c, src/imfs/imfs_init.c, src/imfs/imfs_initsupp.c, src/imfs/imfs_stat.c, src/imfs/memfile.c, src/imfs/miniimfs_init.c: Final developmental update to "tarfs". When rtems_tarfs_load() is called, it checks the permissions on each file. If there is write permission, it just creates a standard file using "creat()" and therefore, uses the IMFS MEMORY_FILE. If there is no write permission, it creates a LINEAR_FILE node with the appropriate properties. If the permission is ever changed to writeable, IMFS_fchmod converts it to a regular memory file.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_handlers_memfile.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_handlers_memfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_handlers_memfile.c b/cpukit/libfs/src/imfs/imfs_handlers_memfile.c
index eb2ab47b39..2de3aaeb4e 100644
--- a/cpukit/libfs/src/imfs/imfs_handlers_memfile.c
+++ b/cpukit/libfs/src/imfs/imfs_handlers_memfile.c
@@ -22,18 +22,18 @@
rtems_filesystem_file_handlers_r IMFS_linearfile_handlers = {
memfile_open,
memfile_close,
- linearfile_read,
+ memfile_read,
NULL, /* write */
memfile_ioctl,
- linearfile_lseek,
+ memfile_lseek,
IMFS_stat,
- NULL, /* chmod */
+ IMFS_fchmod,
NULL, /* ftruncate */
NULL, /* fpathconf */
IMFS_fdatasync, /* fsync */
IMFS_fdatasync,
IMFS_fcntl,
- NULL /* rmnod */
+ memfile_rmnod
};
rtems_filesystem_file_handlers_r IMFS_memfile_handlers = {