git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code-base clean-up and refactoring (#47)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
iso9660
/
file.c
diff --git
a/lunaix-os/kernel/fs/iso9660/file.c
b/lunaix-os/kernel/fs/iso9660/file.c
index a48da33845d737d2bea57eb3a73fea41ac9b66cb..e00013c247301a437c70ca107d24ce93e7395705 100644
(file)
--- a/
lunaix-os/kernel/fs/iso9660/file.c
+++ b/
lunaix-os/kernel/fs/iso9660/file.c
@@
-1,10
+1,10
@@
#include <lunaix/fs.h>
#include <lunaix/fs.h>
-#include
<lunaix/fs/iso9660.h>
+#include
"iso9660.h"
#include <lunaix/mm/valloc.h>
#include <lunaix/spike.h>
#include <klibc/string.h>
#include <lunaix/mm/valloc.h>
#include <lunaix/spike.h>
#include <klibc/string.h>
-#include <
sys/mm/mempart
.h>
+#include <
asm/pagetable
.h>
int
iso9660_open(struct v_inode* this, struct v_file* file)
int
iso9660_open(struct v_inode* this, struct v_file* file)
@@
-83,7
+83,7
@@
done:
int
iso9660_read_page(struct v_inode* inode, void* buffer, size_t fpos)
{
int
iso9660_read_page(struct v_inode* inode, void* buffer, size_t fpos)
{
- return iso9660_read(inode, buffer,
MEM_PAG
E, fpos);
+ return iso9660_read(inode, buffer,
PAGE_SIZ
E, fpos);
}
int
}
int
@@
-101,8
+101,8
@@
iso9660_write_page(struct v_inode* inode, void* buffer, size_t fpos)
}
int
}
int
-iso9660_seek(struct v_
inode* inod
e, size_t offset)
+iso9660_seek(struct v_
file* fil
e, size_t offset)
{
{
- // TODO
+ file->f_pos = offset;
return 0;
}
\ No newline at end of file
return 0;
}
\ No newline at end of file