Skip to content

Fix service qubesd not working with some locales - #149

Merged
marmarek merged 2 commits into
QubesOS:masterfrom
NicolaiSoeborg:patch-1
Sep 13, 2017
Merged

marmarek merged 2 commits into
QubesOS:masterfrom
NicolaiSoeborg:patch-1

Conversation

@NicolaiSoeborg

Copy link
Copy Markdown
Contributor

On certain locales (e.g. danish) usage_percent will output a comma-separated number, which will make attr point the last two decimal points, s.t. return vol_info['attr'][4] == 'a' (in the verify func) will fail (IndexError) and qubesd wont run.

On certain locales (e.g. danish) `usage_percent` will output a comma-separated number, which will make `attr` point the last two decimal points, s.t. `return vol_info['attr'][4] == 'a'` (in the `verify` func) will fail and `qubesd` wont run.
@codecov

codecov Bot commented Sep 12, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #149 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
- Coverage   53.52%   53.51%   -0.02%     
==========================================
  Files          55       55              
  Lines        8303     8303              
==========================================
- Hits         4444     4443       -1     
- Misses       3859     3860       +1
Flag Coverage Δ
#unittests 53.51% <100%> (-0.02%) ⬇️
Impacted Files Coverage Δ
qubes/storage/lvm.py 46.96% <100%> (ø) ⬆️
qubes/app.py 65.29% <0%> (-0.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d59965...9d797cc. Read the comment docs.

@marmarek marmarek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread qubes/storage/lvm.py Outdated
line = line.decode().strip()
pool_name, pool_lv, name, size, usage_percent, attr, \
origin = line.split(',', 6)
origin = line.split(';', 7)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change 6->7 is wrong here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct! Fixed in commit 9d797cc

@NicolaiSoeborg

Copy link
Copy Markdown
Contributor Author

I think this should be ready to be merged (unless I somehow need to sign the first commit also?)

@marmarek
marmarek merged commit 9d797cc into QubesOS:master Sep 13, 2017
@NicolaiSoeborg
NicolaiSoeborg deleted the patch-1 branch September 24, 2017 19:00
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

Successfully merging this pull request may close these issues.

2 participants