The ways in which Ubuntu manages to break things always baffle me. Their new 18.04 server installer UI is reporting a 1TB RAID volume (typical LSI RAID stuff) as 8TB. kernel/fdisk report the right size. Trying to find out how they managed to mess *this* up.
-
Show this thread
-
Found it. They multiply a 'size' attribute in sysfs, that is always in 512-byte units, by the logical block size (4096 in this case). https://github.com/CanonicalLtd/probert/blob/master/probert/utils.py#L239 … Still unfixed, which leads me to believe ~nobody is using their new server installer, or people would be complaining.
4 replies 2 retweets 43 likesShow this thread -
Nevermind the idea that if the logical_block_size file doesn't exist, they assume size is in *bytes* and don't multiply by anything. Whoever wrote this code just pulled this stuff out of nowhere, they didn't actually test anything but the 512-byte-disk case.
1 reply 2 retweets 23 likesShow this thread -
I opened an issue. I'll let them write the patch.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.