-
-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Qubes OS release
Qubes Release 4.2.3 (R4.2)
Brief summary
There shouldn't be a use of direct-io on Btrfs because it can lead to various problems.
This would cause CSUM error, which is described in the documentation of PROXMOX and there's also an related issue on the Bugzilla for Fedora. What's more, there are also related discussions on the Btrfs mailing list.
Even if direct IO does not cause errors, this setting would also prevent the built-in compression functionality of Btrfs from working properly.
Steps to reproduce
Run sudo losetup --list on a Btrfs based Qubes OS to see that DIO is listed as having a value of 1.
Expected behavior
Direct IO should be disabled.
Actual behavior
It's enabled on Btrfs based installation.
Note
The commit states that this behavior has been reverted, but I assume it's still being used since the not-script.c introduced in R4.2, which uses LO_FLAGS_DIRECT_IO. (I'm unfamiliar with the code of Qubes OS, so this might be incorrect.)
And maybe it leads to some regression on Btrfs, making qubes on Btrfs slow. I made this conjecture because the file "not-script.c" does not exist in R4.1. I'm not sure about this, because I can't simply disable the DIO for testing purposes; if someone could tell me how to do it, I'd be happy to try.