Skip to content

UCS/VFS: Connect to daemon and expose dummy filesystem - #6084

Merged
yosefe merged 2 commits into
openucx:masterfrom
yosefe:topic/ucs-vfs-connect-to-daemon-and-expose
Jan 3, 2021
Merged

yosefe merged 2 commits into
openucx:masterfrom
yosefe:topic/ucs-vfs-connect-to-daemon-and-expose

Conversation

@yosefe

@yosefe yosefe commented Dec 31, 2020 •

Copy link
Copy Markdown
Member

Why

Infrastructure for exposing UCX internal status over FUSE

How

  • UCS starts a FUSE thread which connects to a mount daemon and serves filesystem operations
  • If the daemon does not exits, the thread will wait for it to appear, using inotify service
        +-----------------------+
        | filesystem operations |
        | (cat, ls, etc.)       |
        +-----------------------+
                     |
        +------------v-----------+
        |   kernel FUSE driver   |
        +------------------------+
                     ^
                     |
                +----v----+             +---------+
                |         |             |         |
                |  UCS    |             | ucx_vfs |
                |  fuse   +<----------->+ mount   |
                |  thread |             | daemon  |
                |         |             |         |
                +---------+             +---------+

Comment thread src/ucs/vfs/fuse/vfs_fuse.c Outdated
return 0;
}

if (offset + size <= length) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrap by (...)

@yosefe
yosefe merged commit 1da555b into openucx:master Jan 3, 2021
@yosefe
yosefe deleted the topic/ucs-vfs-connect-to-daemon-and-expose branch January 3, 2021 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants