forked from yystopf/xiuos
modify fs nr_bit_block
This commit is contained in:
parent
a66d833cea
commit
f81a16a041
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue