modify fs nr_bit_block

This commit is contained in:
lr 2024-05-16 14:55:16 +08:00
parent a66d833cea
commit f81a16a041
4 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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);
}

View File

@ -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