summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-10 18:16:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-10 18:16:42 +0000
commitb5e273943e6e1a02be08608c0d2520f899377efc (patch)
tree3b58e43eeb967dea6d306f48b663f58af67c5a18 /cpukit
parent2011-06-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-b5e273943e6e1a02be08608c0d2520f899377efc.tar.bz2
2011-06-10 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1812/filesystem * libfs/src/imfs/imfs_stat.c: stat() implementation for IMFS did not set st_blksize field. Set it based upon user configuration.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/libfs/src/imfs/imfs_stat.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 6806c4c41b..c5d7a98a75 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-10 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ PR 1812/filesystem
+ * libfs/src/imfs/imfs_stat.c: stat() implementation for IMFS did not
+ set st_blksize field. Set it based upon user configuration.
+
2011-06-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/smp.c: Fix typo so this compiles.
diff --git a/cpukit/libfs/src/imfs/imfs_stat.c b/cpukit/libfs/src/imfs/imfs_stat.c
index 29867faa7b..0172680409 100644
--- a/cpukit/libfs/src/imfs/imfs_stat.c
+++ b/cpukit/libfs/src/imfs/imfs_stat.c
@@ -77,5 +77,7 @@ int IMFS_stat(
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
+ buf->st_blksize = imfs_rq_memfile_bytes_per_block;
+
return 0;
}