Skip to content

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

Merged
copybara-service[bot] merged 1 commit intogoogle:masterfrom
tanyifeng:add-dev-block-char
Apr 3, 2026
Merged

sysfs: Add block and char subdirectories under /sys/dev#12813
copybara-service[bot] merged 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
copybara-service Bot pushed a commit that referenced this pull request Apr 2, 2026
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
PiperOrigin-RevId: 893658362
copybara-service Bot pushed a commit that referenced this pull request Apr 3, 2026
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
PiperOrigin-RevId: 893658362
copybara-service Bot pushed a commit that referenced this pull request Apr 3, 2026
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
PiperOrigin-RevId: 893658362
@copybara-service copybara-service Bot merged commit c581431 into google:master Apr 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants