diff options
author | Chris Johns <chrisj@rtems.org> | 2010-05-15 06:29:55 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2010-05-15 06:29:55 +0000 |
commit | 8162008060cd4d8243a973d69f2765bc9507efca (patch) | |
tree | 5e8d4699638dffc3113d6166bca3c10d95d004a6 /cpukit/libfs/src/imfs/imfs_stat.c | |
parent | 1783ee42131bb704d35cb73e7de68b03da479b1c (diff) |
2010-05-15 Chris Johns <chrisj@rtems.org>
* libfs/src/imfs/imfs_initsupp.c, libfs/src/imfs/imfs.h,
libfs/src/imfs/imfs_stat.c: PR1419. Return a device for the IMFS.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_stat.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_stat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_stat.c b/cpukit/libfs/src/imfs/imfs_stat.c index 533899e259..29867faa7b 100644 --- a/cpukit/libfs/src/imfs/imfs_stat.c +++ b/cpukit/libfs/src/imfs/imfs_stat.c @@ -27,6 +27,7 @@ int IMFS_stat( struct stat *buf ) { + IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; @@ -58,6 +59,14 @@ int IMFS_stat( break; } + /* + * The device number of the IMFS is the major number and the minor is the + * instance. + */ + fs_info = loc->mt_entry->fs_info; + buf->st_dev = + rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); + buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; |