mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
fs/mount: fix mount cmd break out when meet stat error
Change-Id: I9307fe67837a6519fffa1844fcfd794f735d2fdd Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -91,7 +91,7 @@ static int mountpoint_filter(FAR struct inode *node,
|
|||||||
|
|
||||||
if (pathlen + namlen > PATH_MAX)
|
if (pathlen + namlen > PATH_MAX)
|
||||||
{
|
{
|
||||||
return -ENAMETOOLONG;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Append the inode name to the directory path */
|
/* Append the inode name to the directory path */
|
||||||
@@ -100,8 +100,7 @@ static int mountpoint_filter(FAR struct inode *node,
|
|||||||
|
|
||||||
/* Get the status of the file system */
|
/* Get the status of the file system */
|
||||||
|
|
||||||
ret = node->u.i_mops->statfs(node, &statbuf);
|
if (node->u.i_mops->statfs(node, &statbuf) == OK)
|
||||||
if (ret == OK)
|
|
||||||
{
|
{
|
||||||
/* And pass the full path and file system status to the handler */
|
/* And pass the full path and file system status to the handler */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user