mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
mtd: Translate BIOC_PARTINFO into MTDIOC_PARTINFO on FTL driver
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
b321ae023c
commit
62fa4b0018
@@ -540,6 +540,12 @@ static int ftl_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
|
||||
|
||||
cmd = MTDIOC_FLUSH;
|
||||
}
|
||||
else if (cmd == BIOC_PARTINFO)
|
||||
{
|
||||
/* Change the BIOC_PARTINFO command to the MTDIOC_PARTINFO command. */
|
||||
|
||||
cmd = MTDIOC_PARTINFO;
|
||||
}
|
||||
|
||||
/* No other block driver ioctl commands are not recognized by this
|
||||
* driver. Other possible MTD driver ioctl commands are passed through
|
||||
|
||||
Reference in New Issue
Block a user