forked from Imagelibrary/rtems
2010-07-13 Vinu Rajashekhar <vinutheraj@gmail.com>
PR 1614/filesystem * libfs/src/imfs/fifoimfs_init.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c: Fix rtems_tarfs_load to work with pipe filesystem.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "imfs.h"
|
||||
|
||||
static const rtems_filesystem_operations_table fifoIMFS_ops = {
|
||||
const rtems_filesystem_operations_table fifoIMFS_ops = {
|
||||
.evalpath_h = IMFS_eval_path,
|
||||
.evalformake_h = IMFS_evaluate_for_make,
|
||||
.link_h = IMFS_link,
|
||||
@@ -43,7 +43,7 @@ static const rtems_filesystem_operations_table fifoIMFS_ops = {
|
||||
.symlink_h = IMFS_symlink,
|
||||
.readlink_h = IMFS_readlink,
|
||||
.rename_h = IMFS_rename,
|
||||
.statvfs_h = NULL
|
||||
.statvfs_h = rtems_filesystem_default_statvfs
|
||||
};
|
||||
|
||||
int fifoIMFS_initialize(
|
||||
|
||||
@@ -248,6 +248,7 @@ extern const rtems_filesystem_file_handlers_r IMFS_link_handlers;
|
||||
extern const rtems_filesystem_file_handlers_r IMFS_memfile_handlers;
|
||||
extern const rtems_filesystem_file_handlers_r IMFS_fifo_handlers;
|
||||
extern const rtems_filesystem_operations_table IMFS_ops;
|
||||
extern const rtems_filesystem_operations_table fifoIMFS_ops;
|
||||
extern const rtems_filesystem_limits_and_options_t IMFS_LIMITS_AND_OPTIONS;
|
||||
|
||||
/*
|
||||
|
||||
@@ -108,7 +108,8 @@ int rtems_tarfs_load(
|
||||
if (status != 0)
|
||||
return -1;
|
||||
|
||||
if (root_loc.ops != &IMFS_ops)
|
||||
if (root_loc.ops != &IMFS_ops
|
||||
&& root_loc.ops != &fifoIMFS_ops)
|
||||
return -1;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user