io_fs_02
一切都是文件:VFS
$ vim drivers/char/misc.c
static const struct file_operations misc_proc_fops = {
.read = seq_read,
...
};$ dd if=/dev/sda1 ...
$ cat /dev/sda1
$ vim fs/block_dev.c
const struct file_operations def_blk_fops = {
.read = new_sync_read,
.write = new_sync_write,
...
};文件系统的管理
硬链接与软链接
icache和dcache
用户空间的文件系统:FUSE
Last updated