-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
storage: Managed filesystem sizes #18867
storage: Managed filesystem sizes #18867
Conversation
6535535
to
7803b22
Compare
0b4d1de
to
30d1643
Compare
a1cce29
to
68c3b58
Compare
68c3b58
to
85619e5
Compare
85619e5
to
20a5ddb
Compare
b914dd1
to
d3ce589
Compare
d4ea929
to
7cac847
Compare
7cac847
to
fb20dac
Compare
fb20dac
to
c85fe39
Compare
client.stratis_create_filesystem = (pool, name) => { | ||
return pool.CreateFilesystems([[name, [false, ""]]]); | ||
client.stratis_create_filesystem = (pool, name, size) => { | ||
return pool.CreateFilesystems([[name, size ? [true, size.toString()] : [false, ""]]]); |
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.
This added line is not executed by any test. Details
title: (pool.Overprovisioning | ||
? <StorageUsageBar stats={[Number(fs.Used[0] && Number(fs.Used[1])), pool_total]} | ||
critical={1} total={total} offset={offsets[i]} /> | ||
: <StorageUsageBar stats={[Number(fs.Used[0] && Number(fs.Used[1])), Number(fs.Size)]} | ||
critical={0.95} /> |
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.
These 5 added lines are not executed by any test. Details
let fsys_total_size = 0; | ||
filesystems.forEach(fs => { | ||
offsets.push(fsys_total_used); | ||
fsys_total_used += fs.Used[0] ? Number(fs.Used[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.
This added line is not executed by any test. Details
fsys_total_size += Number(fs.Size); | ||
}); | ||
|
||
const overhead = pool.TotalPhysicalUsed[0] ? (Number(pool.TotalPhysicalUsed[1]) - fsys_total_used) : 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.
This added line is not executed by any test. Details
@@ -129,13 +129,13 @@ export function create_stratis_pool(client) { | |||
}, | |||
spaces: get_available_spaces(client) | |||
}), | |||
CheckBoxes("encrypt_pass", client.features.stratis_crypto_binding ? _("Encryption") : "", | |||
CheckBoxes("encrypt_pass", client.features.stratis_crypto_binding ? _("Options") : "", |
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.
This added line is not executed by any test. Details
Demo: https://youtu.be/5W7g-tYFmqw
Storage: Support for no-overprovisioning with Stratis
A Stratis pool can be put into a "no-overprovisioning" mode where the bad effects of running out of space can be avoided via careful management of filesystem sizes. Cockpit now supports this mode.