journal.c
来自「be文件系统实现的源码」· C语言 代码 · 共 70 行
C
70 行
/* This file doesn't contain anything currently. You could fill it in with a journaling implementation if you wanted (I may do that at some point). Other parts of the file system will have to be modified to support journaling when that is done. THIS CODE COPYRIGHT DOMINIC GIAMPAOLO. NO WARRANTY IS EXPRESSED OR IMPLIED. YOU MAY USE THIS CODE AND FREELY DISTRIBUTE IT FOR NON-COMMERCIAL USE AS LONG AS THIS NOTICE REMAINS ATTACHED. FOR COMMERCIAL USE, CONTACT DOMINIC GIAMPAOLO (dbg@be.com). Dominic Giampaolo dbg@be.com*/#include "myfs.h"typedef struct j_entry{ int junk;} j_entry;intmyfs_create_journal(myfs_info *myfs){ return 0;}intmyfs_init_journal(myfs_info *myfs){ return 0;}intmyfs_shutdown_journal(myfs_info *myfs){ return 0;}j_entry *myfs_create_journal_entry(myfs_info *myfs){ return 0;}intmyfs_write_journal_entry(myfs_info *myfs, j_entry *jent, fs_off_t block_addr, void *block){ return 0;}intmyfs_end_journal_entry(myfs_info *myfs, j_entry *jent){ return 0;}voidsync_journal(myfs_info *myfs){}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?