fixup! Add iso9660 filesystem implementation.

This commit is contained in:
Jonas 'Sortie' Termansen 2023-05-16 00:28:01 +02:00
parent 9578e30a93
commit 936ddeaca3
2 changed files with 2 additions and 2 deletions

View File

@ -530,7 +530,7 @@ void HandleTCGetBlob(int chl, struct fsm_req_tcgetblob* msg, Filesystem* fs)
else if ( !strcmp(name, "device-path") )
RespondTCGetBlob(chl, fs->device->path, strlen(fs->device->path));
else if ( !strcmp(name, "filesystem-type") )
RespondTCGetBlob(chl, "ext2", strlen("iso9660"));
RespondTCGetBlob(chl, "iso9660", strlen("iso9660"));
// TODO: Some kind of unique id.
//else if ( !strcmp(name, "filesystem-uuid") )
// RespondTCGetBlob(chl, fs->sb->s_uuid, sizeof(fs->sb->s_uuid));

View File

@ -466,7 +466,7 @@ ssize_t Inode::ReadLink(uint8_t* buf, size_t bufsize)
break;
const char* data = (const char*) (field + n + 2);
size_t datalen = comp_len;
// TDOO: How is a trailing slash encoded?
// TODO: How is a trailing slash encoded?
if ( !continued || (comp_flags & (1 << 3) /* root */) )
{
buf[result++] = '/';