I'm curretly using linux-4.4.1 and patching the yaffs code to it.
Now I'm facing to the problem when I mount the filesystem to the device.
If user try to mount /dev/ram0 to /mnt as yaffs filesystem by mistake, it must be rejected because /dev/ram0 is not mtd device.
However, it is allowed when i use the current yaffs multi version.
I found out the yaffs single version includes matching the major number of super block device code in yaffs_internal_read_super as below (yaffs_vfs_single.c)
while as the yaffs multi version doesn't.(yaffs_vfs_multi.c)
if (MAJOR(sb->s_dev) != MTD_BLOCK_MAJOR)
return NULL; /* This isn't an mtd device */
Why is it excluded in multi version?
|
Byeongyeop, Ha
Research Engineer
Core Component technology R&D Team Security Solution Business Unit. HANWHA TECHWIN CO.,LTD
|