[disk] Add include_all_devices option and improve error logs#7378
[disk] Add include_all_devices option and improve error logs#7378
include_all_devices option and improve error logs#7378Conversation
Codecov Report
|
dc85436 to
5c679fe
Compare
79b1843 to
53a6257
Compare
Improve log messages
53a6257 to
ef53636
Compare
It makes no sense to use `file_system_whitelist` in the way previously mentioned, if users want to have more fine grained control they can just specify the lists themselves
KSerrania
left a comment
There was a problem hiding this comment.
LGTM, I see that an empty disk/log/.lock file got added, which can probably be removed.
This does the same that this PR intended but supporting all operating systems and by checking (on Linux) if the file system is backed by a block device.
KSerrania
left a comment
There was a problem hiding this comment.
LGTM, left a comment about the check documentation.
| # - /dev/sde | ||
| # - '[FJ]:' | ||
|
|
||
| ## @param include_all_devices - boolean - optional - default: True |
There was a problem hiding this comment.
Why is there an uppercase T in True here, whereas it's lowercase in the spec & in all other config options?
There was a problem hiding this comment.
🤔 I am not sure why, the conf.yaml.default file is generated automatically by ddev validate config -s using the spec.yaml file.
There was a problem hiding this comment.
It's how the config validator works since I added both a default and an example value:
It prints the
repr of the object (which is True since that's how it is written in Python) instead of true or false, which it does when there is no default config.
I am going to change it though, since it seems like elsewhere the example and default values always match and it can be confusing.
There was a problem hiding this comment.
I opened #7405 to make the behavior consistent.
include_all_devices option and improve error logs
This way it is more consistent with the rest of options
What does this PR do?
Motivation
Additional Notes
disk_partitions.Review checklist (to be filled by reviewers)
changelog/andintegration/labels attached