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:
parent
48d49e5a7c
commit
d2488715c0
|
@ -91,7 +91,7 @@ static int mountpoint_filter(FAR struct inode *node,
|
|||
|
||||
if (pathlen + namlen > PATH_MAX)
|
||||
{
|
||||
return -ENAMETOOLONG;
|
||||
return OK;
|
||||
}
|
||||
|
||||
/* 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 */
|
||||
|
||||
ret = node->u.i_mops->statfs(node, &statbuf);
|
||||
if (ret == OK)
|
||||
if (node->u.i_mops->statfs(node, &statbuf) == OK)
|
||||
{
|
||||
/* And pass the full path and file system status to the handler */
|
||||
|
||||
|
|
Loading…
Reference in New Issue