KallistiOS icon indicating copy to clipboard operation
KallistiOS copied to clipboard

Have a vfs for 'virtual directory'

Open QuzarDC opened this issue 8 months ago • 0 comments

The current implementation of /dev does not support having multiple open readdirs. This stems from the use of a simple static single file handle for the /dev folder. The way to correct this seems to be to just have it generated so that each open will have its own, like a more regular vfs.

Though, if it is to be expanded in that way, it may make sense instead to create a more generic virtual directory vfs that could cover /dev and / along with maybe /vmu since all of them effectively shouldn't be anything but a directory that has other vfs mounted under it. This would also give a better path and likely more sensical way to handle things like mounting an rd to subdir (if you were to mount a romdisk to /rds/myrd/ what vfs owns /rds/?) .

QuzarDC avatar Jul 01 '24 06:07 QuzarDC