diff options
Diffstat (limited to 'cpukit/libblock/src/blkdev-imfs.c')
-rw-r--r-- | cpukit/libblock/src/blkdev-imfs.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cpukit/libblock/src/blkdev-imfs.c b/cpukit/libblock/src/blkdev-imfs.c index a46babb593..881236e167 100644 --- a/cpukit/libblock/src/blkdev-imfs.c +++ b/cpukit/libblock/src/blkdev-imfs.c @@ -181,14 +181,19 @@ static int rtems_blkdev_imfs_fstat( struct stat *buf ) { - rtems_blkdev_imfs_context *ctx = - IMFS_generic_get_context_by_location(loc); - rtems_disk_device *dd = &ctx->dd; + rtems_blkdev_imfs_context *ctx; + rtems_disk_device *dd; + IMFS_jnode_t *node; + + ctx = IMFS_generic_get_context_by_location(loc); + dd = &ctx->dd; - buf->st_rdev = rtems_disk_get_device_identifier(dd); buf->st_blksize = rtems_disk_get_block_size(dd); buf->st_blocks = rtems_disk_get_block_count(dd); + node = loc->node_access; + buf->st_rdev = IMFS_generic_get_device_identifier_by_node(node); + return IMFS_stat(loc, buf); } |