RTEMS Logo

RTEMS 4.7.99.2 On-Line Library


IMFS_dir_fstat() for Directories

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.3.7: IMFS_dir_fstat() for Directories

Corresponding Structure Element:

imfs_dir_fstat()

Arguments:

rtems_filesystem_location_info_t   *loc,
struct stat                        *buf

File:

imfs_directory.c

Description:

The node access information in the rtems_filesystem_location_info_t structure is used to locate the appropriate IMFS_jnode_t structure. The following information is taken from the IMFS_jnode_t structure and placed in the stat structure:

The st_size field is obtained by running through the chain of directory entries and summing the sizes of the dirent structures associated with each of the children of the directory.


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2004 OAR Corporation