mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 13:25:12 +08:00
VFS: New block driver unlink support is dependent on mountpoint support
This commit is contained in:
@@ -177,6 +177,7 @@ int unlink(FAR const char *pathname)
|
||||
goto errout_with_inode;
|
||||
}
|
||||
}
|
||||
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||
else if (INODE_IS_BLOCK(inode) && inode->u.i_bops->unlink)
|
||||
{
|
||||
/* Notify the block driver that it has been unlinked */
|
||||
@@ -188,6 +189,7 @@ int unlink(FAR const char *pathname)
|
||||
goto errout_with_inode;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Remove the old inode. Because we hold a reference count on the
|
||||
* inode, it will not be deleted now. It will be deleted when all
|
||||
|
||||
Reference in New Issue
Block a user