Commit 7f82b0b
dcache cli: fix issue with printing pool size when max diskspace is set in percentage
Motivation:
-----------
patch 8c71927 introduced ability to specify max disk space in percentage of partition space like so:
set max diskspace 98%
unfortunately it breaks dcache pool ls command like so:
98% is not an integer.
Modification:
------------
Calculate pool size based on partition size and percentage
Result:
------
No error when running "dcache pool ls" and pool size properly reported
Ticket: #8014
Patch: https://rb.dcache.org/r/14618/
Acked-by: Marina
Request: trunk
Target: 11.x
Require-book: no
Require-notes: yes1 parent d1241e7 commit 7f82b0b
2 files changed
Lines changed: 14 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
308 | 314 | | |
309 | 315 | | |
310 | 316 | | |
| |||
0 commit comments