Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errno::ENOENT: No such file or directory @ rb_sysopen - /sys/block/sda1/queue/discard_granularity #69

Open
simonxuhao opened this issue Sep 2, 2020 · 0 comments

Comments

@simonxuhao
Copy link

simonxuhao commented Sep 2, 2020

A lot of tests fail due to Errno::ENOENT: No such file or directory @ rb_sysopen - /sys/block/<dev>/queue/discard_granularity when dev is a partition instead of a disk, so we should first find the disk of the partition and then read the discard_granularity file of the disk.

Example failure (DiscardQuickTests_discard_past_the_end_fails.log):

E, [2020-09-02T22:17:33.415373 #38027] ERROR -- : Error:
test_discard_past_the_end_fails(DiscardQuickTests):
Errno::ENOENT: No such file or directory @ rb_sysopen - /sys/block/sda1/queue/discard_granularity
/root/device-mapper-test-suite/lib/dmtest/discard_limits.rb:17:in initialize' /root/device-mapper-test-suite/lib/dmtest/discard_limits.rb:17:in open'
/root/device-mapper-test-suite/lib/dmtest/discard_limits.rb:17:in read_param' /root/device-mapper-test-suite/lib/dmtest/discard_limits.rb:8:in initialize'
/root/device-mapper-test-suite/lib/dmtest/thinp-mixin.rb:154:in new' /root/device-mapper-test-suite/lib/dmtest/thinp-mixin.rb:154:in with_discardable_dev'
/root/device-mapper-test-suite/lib/dmtest/thinp-mixin.rb:167:in with_discardable_pool' /root/device-mapper-test-suite/lib/dmtest/tests/thin-provisioning/discard_tests.rb:558:in block in class:DiscardQuickTests'
I, [2020-09-02T22:17:33.415451 #38027] INFO -- : Peak bufio allocation was 0

simonxuhao pushed a commit to simonxuhao/device-mapper-test-suite that referenced this issue Sep 2, 2020
…arity

A lot of tests fail due to Errno::ENOENT: No such file or directory @ rb_sysopen - /sys/block/<dev>/queue/discard_granularity when dev is a partition instead of a disk, so we should first find the disk of the partition and then read the discard_granularity file of the disk.
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

No branches or pull requests

1 participant