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
Master format free space #217
Master format free space #217
Conversation
# and it's giving us percentage of space left after the format. | ||
# This number is more guess then precise number because this | ||
# value is already unpredictable and can change in the future... | ||
_MagicMetadataMultiplierClass = 1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be named 'Class' if it is a constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah and I think MetadataSizeFactor
or something like that would be a better name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I will use MetadataSizeFactor
.
Yeah sorry my bad. |
We are using magic numbers acquired by testing to reduce the size depending on a used format. Related: rhbz#1224048
1f106a4
to
e9afe3d
Compare
I have updated the PR. I hope I did it right :) . |
Looks good to me now. |
@vpodzime thank you I'll change it locally. |
Pushed |
@jkonecny12 Can you please do a followup that removes the float stuff from |
Hi @dwlehman, yeah I can do that but why we need that? Isn't it better to do the conversion on one place for every use instead on many places in blivet and anaconda? |
This PR is pushed already but I'm reopening the PR to complete discussion on possible follow-up. |
What would be the benefit of this? I know |
It is about loss of precision from the use of float. We stopped using float for anything related to size some time ago. I forgot that we do round to whole bytes, which means this may be more about convention/principle than practical need. |
Good to know, I wasn't sure I wasn't missing something here. Let's discuss the approach to this at the meeting. |
Output from the meeting is this follow-up #229 . |
We are using magic numbers acquired by testing to reduce the size depending on a used format.
Also add support for Size operators (add,mul...) by float.
Related: rhbz#1224048
Main patch will go to the anaconda later.