[Yaffs] yaffs must reject when user try to mount no-mtd devi…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: ??????(Byeongyeop Ha)
Date:  
To: yaffs@stoneboat.aleph1.co.uk
Subject: [Yaffs] yaffs must reject when user try to mount no-mtd device
<-- Warning: charset 'ks_c_5601-1987' is not supported -->

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??
?
?
?
[http://hanwha.eagleoffice.co.kr/neo/img/neo/theme/mail/sign/image/hanwha_value_en.jpg]?
?
________________________________?
?
[???? ?????? CI ???? ????]?
?
?
Byeongyeop, Ha?
?
Research Engineer?
SoC Development Group?
?
Core Component technology R&D Team?
?
Security Solution Business Unit.?
?
HANWHA TECHWIN CO.,LTD?
Office : 070-7147-8356?
Mobile : 010-5593-1512?
Email : <mailto:byungyub.ha@hanwha.com>?
?
?
________________________________?
?
?
?
?