From f81a16a0410dbdfd8e1a54da336138e99b4a44a3 Mon Sep 17 00:00:00 2001 From: lr <1234@qq.com> Date: Thu, 16 May 2024 14:55:16 +0800 Subject: [PATCH] modify fs nr_bit_block --- Ubiquitous/XiZi_AIoT/services/fs/fs_server/include/block_io.h | 2 +- .../XiZi_AIoT/services/net/net_server/include/lwip/debug.h | 4 ---- Ubiquitous/XiZi_AIoT/services/net/net_server/lwip_server.c | 4 ++-- Ubiquitous/XiZi_AIoT/services/tools/mkfs/mkfs.h | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Ubiquitous/XiZi_AIoT/services/fs/fs_server/include/block_io.h b/Ubiquitous/XiZi_AIoT/services/fs/fs_server/include/block_io.h index 8fd07762b..1bf3966bb 100644 --- a/Ubiquitous/XiZi_AIoT/services/fs/fs_server/include/block_io.h +++ b/Ubiquitous/XiZi_AIoT/services/fs/fs_server/include/block_io.h @@ -18,7 +18,7 @@ // Block size #define BLOCK_SIZE 512 -#define NR_BIT_BLOCKS 2 +#define NR_BIT_BLOCKS 4 // bits size #define BITS 8 diff --git a/Ubiquitous/XiZi_AIoT/services/net/net_server/include/lwip/debug.h b/Ubiquitous/XiZi_AIoT/services/net/net_server/include/lwip/debug.h index cbddaf146..f2e93d8e6 100644 --- a/Ubiquitous/XiZi_AIoT/services/net/net_server/include/lwip/debug.h +++ b/Ubiquitous/XiZi_AIoT/services/net/net_server/include/lwip/debug.h @@ -154,10 +154,6 @@ } \ } while(0) - // ((s16_t)((debug_flag) & LWIP_DBG_MASK_LEVEL) >= LWIP_DBG_MIN_LEVEL)) { \ -// #define LWIP_DEBUGF(debug, message) do { \ -// LWIP_PLATFORM_DIAG(message); \ -// } while(0) #else /* LWIP_DEBUG */ #define LWIP_DEBUGF(debug, message) #endif /* LWIP_DEBUG */ diff --git a/Ubiquitous/XiZi_AIoT/services/net/net_server/lwip_server.c b/Ubiquitous/XiZi_AIoT/services/net/net_server/lwip_server.c index 4b698820c..7c69f6b7a 100644 --- a/Ubiquitous/XiZi_AIoT/services/net/net_server/lwip_server.c +++ b/Ubiquitous/XiZi_AIoT/services/net/net_server/lwip_server.c @@ -56,9 +56,9 @@ IPC_SERVER_REGISTER_INTERFACES(IpcLWIPServer, 1, Ipc_LWIP_init); int main(int argc, char* argv[]){ if (register_server("LWIPServer") < 0) { printf("register server name: %s failed.\n", "LWIPServer"); - exit(); + exit(0); } ipc_server_loop(&IpcLWIPServer); // never reached - exit(); + exit(0); } \ No newline at end of file diff --git a/Ubiquitous/XiZi_AIoT/services/tools/mkfs/mkfs.h b/Ubiquitous/XiZi_AIoT/services/tools/mkfs/mkfs.h index b7d299bb9..17fa8adab 100755 --- a/Ubiquitous/XiZi_AIoT/services/tools/mkfs/mkfs.h +++ b/Ubiquitous/XiZi_AIoT/services/tools/mkfs/mkfs.h @@ -49,7 +49,7 @@ Modification: #define ROOT_INUM 1 // root inode number #define BLOCK_SIZE 512 // block size #define NR_BIT_PER_BYTE 8 -#define NR_BIT_BLOCKS 2 +#define NR_BIT_BLOCKS 4 #define nr_blocks_total (BLOCK_SIZE * NR_BIT_PER_BYTE * NR_BIT_BLOCKS) // total number of blocks (including used blocks and free blocks) #define nr_inodes 200 // total number of inodes