mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
fs: try blockproxy only if BCH is enabled
This commit is contained in:
committed by
Xiang Xiao
parent
39b3998149
commit
5652de3fdf
@@ -35,9 +35,11 @@ CSRCS += fs_mtdpartition.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BCH),y)
|
||||
ifneq ($(CONFIG_DISABLE_PSEUDOFS_OPERATIONS),y)
|
||||
CSRCS += fs_blockproxy.c
|
||||
endif
|
||||
endif # CONFIG_BCH
|
||||
endif # CONFIG_DISABLE_MOUNTPOINT
|
||||
|
||||
# Include driver build support
|
||||
|
||||
+2
-1
@@ -94,7 +94,8 @@ static int file_vopen(FAR struct file *filep,
|
||||
inode = desc.node;
|
||||
DEBUGASSERT(inode != NULL);
|
||||
|
||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && \
|
||||
#if defined(CONFIG_BCH) && \
|
||||
!defined(CONFIG_DISABLE_MOUNTPOINT) && \
|
||||
!defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS)
|
||||
/* If the inode is block driver, then we may return a character driver
|
||||
* proxy for the block driver. block_proxy() will instantiate a BCH
|
||||
|
||||
Reference in New Issue
Block a user