diff options
author | Chris Johns <chrisj@rtems.org> | 2010-02-22 23:02:41 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2010-02-22 23:02:41 +0000 |
commit | 59762963b2c74d67b5db42ad7589e69b706af067 (patch) | |
tree | 57e0c1407d5fd2894f641365d5610a56ec38bd2f /cpukit/libfs/src/rfs/rtems-rfs-group.h | |
parent | 2010-02-20 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-59762963b2c74d67b5db42ad7589e69b706af067.tar.bz2 |
2010-02-23 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-dir.c: Fix printf format warning for a
64bit off_t.
* libfs/src/rfs/rtems-rfs-file-system.h: Add a macro to get the
file system flags.
* libfs/src/rfs/rtems-rfs-group.c,
libfs/src/rfs/rtems-rfs-group.h: Add rtems_rfs_group_usage.
* libfs/src/rfs/rtems-rfs-rtems.c: Fill in all the fields in the
statvfs struct.
* libfs/src/rfs/rtems-rfs-shell.c: Use rtems_rfs_group_usage.
Diffstat (limited to 'cpukit/libfs/src/rfs/rtems-rfs-group.h')
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-group.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-group.h b/cpukit/libfs/src/rfs/rtems-rfs-group.h index 3adf736e2f..0823612c0d 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-group.h +++ b/cpukit/libfs/src/rfs/rtems-rfs-group.h @@ -148,4 +148,16 @@ int rtems_rfs_group_bitmap_test (rtems_rfs_file_system* fs, rtems_rfs_bitmap_bit no, bool* state); +/** + * Determine the number of blocks and inodes used. + * + * @param fs The file system data. + * @prarm blocks The number of blocks used. + * @param inodes The number of inodes used. + * @return int The error number (errno). No error if 0. + */ +int rtems_rfs_group_usage (rtems_rfs_file_system* fs, + size_t* blocks, + size_t* inodes); + #endif |