Skip to content

WasmFS: ioctl #15968

Open
Open

Description

@tlively

man page although there isn't really standard behavior, so we should just try to match the current system's ioctl.

Activity

  1. moved this to Todo in WasmFSon Jan 11, 2022
  2. added this to the WasmFS feature parity milestone on Jan 11, 2022
  3. self-assigned this
    on Apr 8, 2022
  4. kripken commented on Apr 8, 2022

    @kripken
    Member

    #16677 does not quite get to parity with the old FS (see notes there) but may be good enough for a while.

  5. RReverser commented on Oct 16, 2023

    @RReverser
    Collaborator

    One update here is that since #16677 landed there were some TTY hooks added in #19499 to support xterm-pty.

    Those hooks cover couple of ioctl functions important for the terminal, and without some analogues it won't be possible to build libraries like xterm-pty on top of WasmFS instead of the old FS.

    That said, instead of covering them one by one, could WasmFS allow to intercept arbitrary ioctl syscalls in custom device implementation? I can think of some usecases beyond the terminal, e.g. for porting umockdev.

  6. tlively commented on Oct 16, 2023

    @tlively
    MemberAuthor

    Letting backends handle ioctls if they want to sgtm.

  7. RReverser commented on Oct 27, 2023

    @RReverser
    Collaborator

    I wonder, is there any way to use old FS and WASMFS alongside? In particular, I want to use OPFS backend in a project that already uses xterm-pty, and xterm-pty heavily relies on old FS JS API for TTY integration.

    Is there any way to combine them and mount some dir with a backend from WASMFS into old FS without having to reimplement one or the other?

  8. kripken commented on Oct 30, 2023

    @kripken
    Member

    @RReverser atm no, but the general idea we've had for this is to add a bridge from WasmFS to old FS backends, #18935 (comment)

  9. RReverser commented on Oct 30, 2023

    @RReverser
    Collaborator

    I don't remember without looking up, does TTY have a separate backend in legacy scheme? If so, that would help a lot, yeah.

  10. kripken commented on Oct 30, 2023

    @kripken
    Member

    I believe that is src/library_tty.js

  11. RReverser commented on Oct 30, 2023

    @RReverser
    Collaborator

    Yeah I know, just not sure if it counts as an actual backend. I thought it's just a JS library but not really a FS backend as e.g. MEMFS or WORKERFS or others are, so it's not clear to me if "add a bridge from WasmFS to old FS backends" would solve this particular issue or not.

  12. kripken commented on Oct 30, 2023

    @kripken
    Member

    I believe it is a backend - it has stream_ops etc. But there might be special hooks in the old FS for it, which might be an issue. I guess there have to be, since it isn't manually mounted like other backends...

  13. RReverser commented on Oct 30, 2023

    @RReverser
    Collaborator

    But there might be special hooks in the old FS for it, which might be an issue.

    Yeah I suspect so too, it would need to somehow proxy at least the hooks in above mentioned #19499.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status
    Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions