diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-10 10:56:55 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-13 16:07:46 +0200 |
commit | 73bf499ce7710ff8e75833042f88d1ff5b3e84fa (patch) | |
tree | 96a60b16f8d9874bdf124ec1e7f935fcc08c6460 /cpukit/libfs/src/jffs2/src/fs-rtems.c | |
parent | score: Delete _Thread_Set_transient() (diff) | |
download | rtems-73bf499ce7710ff8e75833042f88d1ff5b3e84fa.tar.bz2 |
JFFS2: Add device identifier for the flash device
It is used in combination with the inode number to uniquely identify a
file system node in the system.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libfs/src/jffs2/src/fs-rtems.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/libfs/src/jffs2/src/fs-rtems.c b/cpukit/libfs/src/jffs2/src/fs-rtems.c index 85f9edef8f..00a52bd796 100644 --- a/cpukit/libfs/src/jffs2/src/fs-rtems.c +++ b/cpukit/libfs/src/jffs2/src/fs-rtems.c @@ -405,9 +405,12 @@ static int rtems_jffs2_fstat( ) { struct _inode *inode = rtems_jffs2_get_inode_by_location(loc); + struct super_block *sb = inode->i_sb; + rtems_jffs2_flash_control *fc = sb->s_flash_control; - rtems_jffs2_do_lock(inode->i_sb); + rtems_jffs2_do_lock(sb); + buf->st_dev = fc->device_identifier; buf->st_blksize = PAGE_SIZE; buf->st_mode = inode->i_mode; buf->st_ino = inode->i_ino; @@ -419,7 +422,7 @@ static int rtems_jffs2_fstat( buf->st_mtime = inode->i_mtime; buf->st_ctime = inode->i_ctime; - rtems_jffs2_do_unlock(inode->i_sb); + rtems_jffs2_do_unlock(sb); return 0; } |