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
feat: device subsystem rework
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
iso9660
/
mount.c
diff --git
a/lunaix-os/kernel/fs/iso9660/mount.c
b/lunaix-os/kernel/fs/iso9660/mount.c
index 51679ca0757913cbcecd6995eb73109e67c431fc..3849add82eb53117c60ae75655614b53cf60b6fa 100644
(file)
--- a/
lunaix-os/kernel/fs/iso9660/mount.c
+++ b/
lunaix-os/kernel/fs/iso9660/mount.c
@@
-11,7
+11,7
@@
struct cake_pile* drec_cache_pile;
extern void
iso9660_init_inode(struct v_superblock* vsb, struct v_inode* inode);
extern void
iso9660_init_inode(struct v_superblock* vsb, struct v_inode* inode);
-u
int
32_t
+u32_t
iso9660_rd_capacity(struct v_superblock* vsb)
{
struct iso_superblock* isovsb = (struct iso_superblock*)vsb->data;
iso9660_rd_capacity(struct v_superblock* vsb)
{
struct iso_superblock* isovsb = (struct iso_superblock*)vsb->data;
@@
-27,7
+27,7
@@
iso9660_mount(struct v_superblock* vsb, struct v_dnode* mount_point)
u32_t lba = 16;
int errno = 0;
do {
u32_t lba = 16;
int errno = 0;
do {
- errno = dev->read(dev, vdesc, ISO9660_BLKSZ * lba, ISO9660_BLKSZ);
+ errno = dev->
ops.
read(dev, vdesc, ISO9660_BLKSZ * lba, ISO9660_BLKSZ);
if (errno < 0) {
errno = EIO;
goto done;
if (errno < 0) {
errno = EIO;
goto done;
@@
-92,7
+92,9
@@
done:
int
iso9660_unmount(struct v_superblock* vsb)
{
int
iso9660_unmount(struct v_superblock* vsb)
{
- // TODO clean up
+ vfree(vsb->data);
+
+ return 0;
}
void
}
void
@@
-107,4
+109,5
@@
iso9660_init()
fs->unmount = iso9660_unmount;
fsm_register(fs);
fs->unmount = iso9660_unmount;
fsm_register(fs);
-}
\ No newline at end of file
+}
+EXPORT_FILE_SYSTEM(iso9660, iso9660_init);
\ No newline at end of file