From 38781d308ef53de575a1d199da562be5dad71b6e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 31 Jan 2015 17:16:30 -0600 Subject: [PATCH] VFS: New block driver unlink support is dependent on mountpoint support --- fs/vfs/fs_unlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/vfs/fs_unlink.c b/fs/vfs/fs_unlink.c index abd774d980..0d70cfa606 100644 --- a/fs/vfs/fs_unlink.c +++ b/fs/vfs/fs_unlink.c @@ -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