Added a generic path_lookup method in vfs
authorYuanhan Liu <Aleaxander@gmail.com>
Sun, 25 Oct 2009 08:32:03 +0000 (16:32 +0800)
committerYuanhan Liu <Aleaxander@gmail.com>
Sun, 25 Oct 2009 08:32:03 +0000 (16:32 +0800)
commit84b1443afbfe24eb6e338e8636e8e3759b9093d5
tree944ed71dbfea749b3ff629d5b05afa78e3d924f4
parent885eb9695a0ef17f929589777eb2b0eeeec61459
Added a generic path_lookup method in vfs

Well, for now, just applied to EXTLINUX. Here is the main change:
1) Add to union structure in file to make the older path_lookup method work.
2) Add a generic inode structure, to represent one file.
3) Add three more methods in fs_ops; they are:
iget_root, get the root inode of a fs
iget_current, get the 'pwd'
iget, do_open a file
4) Add a *TEMP* memory managemant system.

Signed-off-by: Yuanhan Liu <Aleaxander@gmail.com>
core/fs.c
core/fs/ext2/bmap.c [new file with mode: 0644]
core/fs/ext2/ext2.c
core/fs/ext2/ext2_fs.h
core/fs/fat/fat.c
core/fs/iso9660/iso9660.c
core/fs/pxe/pxe.c
core/include/core.h
core/include/fs.h
core/malloc.c [new file with mode: 0644]