diff options
author | Chris Johns <chrisj@rtems.org> | 2011-03-15 05:02:34 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2011-03-15 05:02:34 +0000 |
commit | d0fcd0b8a660e12e2f99affe198f035cf2cf8256 (patch) | |
tree | f6bc0d4e897c276a21e6ebcd40766e5040c6377a /cpukit/libfs/src/rfs/rtems-rfs-rtems.h | |
parent | 2011-03-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-d0fcd0b8a660e12e2f99affe198f035cf2cf8256.tar.bz2 |
2011-03-15 Chris Johns <chrisj@rtems.org>
PR 1763/shell
* libmisc/shell/hexdump-conv.c: Remove debug hacks.
PR 1757/filesystem
* libfs/src/rfs/rtems-rfs-block-pos.h,
libfs/src/rfs/rtems-rfs-block.h, libfs/src/rfs/rtems-rfs-file.c,
libfs/src/rfs/rtems-rfs-rtems-file.c: Set the file size in
iop-size when a file is open. Fix lseek to end of file then write
for sizes less than half the file system block size.
* libfs/src/rfs/rtems-rfs-rtems-dev.c,
libfs/src/rfs/rtems-rfs-rtems-dir.c,
libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h:
Fix the fstat and fchmod calls due to the change in the iop struct
where pathinfo went away. The node_access field in pathinfo was
overloaded.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-rtems.h | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.h b/cpukit/libfs/src/rfs/rtems-rfs-rtems.h index dd2c5b7cd9..17b87f5ef8 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.h +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.h @@ -274,20 +274,46 @@ extern const rtems_filesystem_file_handlers_r rtems_rfs_rtems_file_handlers; /** * The following routine does a stat on a node. * - * @param pathloc + * @param fs The file system data. + * @param inode The inode to stat held in memory. + * @param buf The stat buffer to fill. + * @return int The result code. + */ +int rtems_rfs_rtems_stat_inode (rtems_rfs_file_system* fs, + rtems_rfs_inode_handle* inode, + struct stat* buf); + +/** + * The following routine does a stat on a node. + * + * @param iop * @param buf * @return int */ -int rtems_rfs_rtems_stat (rtems_filesystem_location_info_t* loc, struct stat* buf); +int rtems_rfs_rtems_fstat (rtems_filesystem_location_info_t* pathloc, + struct stat* buf); + +/** + * File change mode routine changes an inode. + * + * @param fs The file system data. + * @param inode The inode to change held in memory. + * @param buf The new mode. + * @return int The result code. + */ +int rtems_rfs_rtems_fchmod_inode (rtems_rfs_file_system* fs, + rtems_rfs_inode_handle* inode, + mode_t mode); /** * File change mode routine. * - * @param pathloc + * @param iop * @param mode * @return int */ -int rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* loc, mode_t mode); +int rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* pathloc, + mode_t mode); /** * Routine to remove a node from the RFS file system. |