diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-12 00:37:26 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-16 22:57:45 +0100 |
| commit | 2ce58c995946f85666e793c4f06efff683e76ae4 (patch) | |
| tree | fbf2658bb0b0f61dadcf4ca27f997eaded78aae5 /src/fs/iso9660 | |
| parent | 5ce25ae3b5d8666d373f7d7e336546ce8508c213 (diff) | |
| download | wnix-master.tar.gz | |
fixesHEADhelloworldmaster
Diffstat (limited to 'src/fs/iso9660')
| -rw-r--r-- | src/fs/iso9660/src/eof.c | 4 | ||||
| -rw-r--r-- | src/fs/iso9660/src/open.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/fs/iso9660/src/eof.c b/src/fs/iso9660/src/eof.c index 1c36b63..d53461b 100644 --- a/src/fs/iso9660/src/eof.c +++ b/src/fs/iso9660/src/eof.c @@ -21,10 +21,10 @@ #include <iso9660/types.h> #include <fs/inode.h> +/* TODO: eof seems redundant because of caio_eof */ int iso9660_eof(const struct fs_fd *const fd) { - const union inode_result *const i = &fd->tgt_inode; - const off_t sz = i->cachei.size; + const off_t sz = fd->size; if (!sz) return 1; diff --git a/src/fs/iso9660/src/open.c b/src/fs/iso9660/src/open.c index 9818719..979ea91 100644 --- a/src/fs/iso9660/src/open.c +++ b/src/fs/iso9660/src/open.c @@ -31,6 +31,7 @@ struct open struct fs_fd *fd; struct fs_ret *pr, r; struct fs_mp mp; + struct fs_stdstreams ss; }; static int search_done(const enum state state, const char *const relpath, @@ -57,7 +58,6 @@ static int search_done(const enum state state, const char *const relpath, *fd = (const struct fs_fd) { .start = mpinode->prv->offset, - .tgt_inode.cachei = op->inode, .size = mpinode->size, .tgt_mp = &op->mp, .inode = *inode, @@ -93,7 +93,8 @@ int iso9660_open(const struct fs_open *const o, const struct fs_mp *const mp, .inode = *i, .mp = *mp, .pr = r, - .r = *r + .r = *r, + .ss = o->ss }; if (inode_search(&s, r)) |
