mout系统流程

mount()的最后一个参数data是传给文件系统解释的,有兴趣可以跟踪一下系统调用mount的流程(以vfat为例):

  sys_mount()-->do_mount()-->do_add_mount()-->do_kern_mount()-->do_kern_mount()-->get_sb_bdev()-->vfat_read_super()-->fat_read_super()-->parse_options()(此时会解释iocharset,codepage等options)
  参考文件:fs/namespace.c,fs/super.c,fs/vfat/namei.c,fs/fat/inode.c

posted @ 2014-07-24 09:38  lihaiping  阅读(211)  评论(0编辑  收藏  举报