Skip to content

sysfs: Add block and char subdirectories under /sys/dev#12813

Open
tanyifeng wants to merge 1 commit intogoogle:masterfrom
tanyifeng:add-dev-block-char
Open

sysfs: Add block and char subdirectories under /sys/dev#12813
tanyifeng wants to merge 1 commit intogoogle:masterfrom
tanyifeng:add-dev-block-char

Conversation

@tanyifeng
Copy link
Copy Markdown
Contributor

gVisor does not expose real block/char devices, the directories remain empty, but their existence is required for compatibility.

Tools like lsblk expect /sys/dev/block/ to exist in order to enumerate block devices. Currently, gVisor's sysfs creates /sys/dev/ as an empty directory without the standard block/ and char/ children, causing lsblk to fail with ENOENT.

gVisor does not expose real block/char devices, the directories remain
empty, but their existence is required for compatibility.

Tools like lsblk expect /sys/dev/block/ to exist in order to enumerate
block devices. Currently, gVisor's sysfs creates /sys/dev/ as an empty
directory without the standard block/ and char/ children, causing lsblk
to fail with ENOENT.

Signed-off-by: Tan Yifeng <yiftan@tencent.com>
@tanyifeng tanyifeng force-pushed the add-dev-block-char branch from 7c0be65 to 7b59546 Compare March 29, 2026 06:26
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.

1 participant