Skip to content

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

Merged
copybara-service[bot] merged 2 commits intomasterfrom
test/cl893658362
Apr 3, 2026
Merged

sysfs: Add block and char subdirectories under /sys/dev#12858
copybara-service[bot] merged 2 commits intomasterfrom
test/cl893658362

Conversation

@copybara-service
Copy link
Copy Markdown

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

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.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12813 from tanyifeng:add-dev-block-char 7b59546

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>
@copybara-service copybara-service Bot added the exported Issue was exported automatically label Apr 2, 2026
@copybara-service copybara-service Bot force-pushed the test/cl893658362 branch 2 times, most recently from 14c1241 to 598f3e2 Compare April 3, 2026 20:04
@copybara-service copybara-service Bot merged commit c581431 into master Apr 3, 2026
@copybara-service copybara-service Bot deleted the test/cl893658362 branch April 3, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants