View Bug Details

IDProjectCategoryView StatusLast Update
0002021DCP-o-maticBugspublic2023-09-01 21:50
Reportercarl Assigned Tocarl  
PriorityimmediateSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.16.0 
Summary0002021: Disk writer makes 200GB partition on big disk and puts the DCP in there (with free space after)
Description

Why is the partition not filling the disk?

TagsNo tags attached.
Branch
Estimated weeks required
Estimated work requiredUndecided

Activities

carl

2021-05-27 23:30

administrator   ~0004418

I think I've seen similar; on a 2TB drive I have a partition of 574G with a 1.3GB DCP. Also shows up in df as having minus 60M used, which is a bit odd.

carl

2021-05-27 23:30

administrator   ~0004419

On my drive 3907029167 sectors, partition is from 63 to 1211769394 ie 1211769332 sectors.

carl

2021-05-28 00:17

administrator   ~0004420

Looks like overflow of uint32_t in a few places in ext4_mbr_write; notably the cyl_part calculation overflows when it multiplies by 100 then divides down again.

carl

2021-05-28 00:23

administrator   ~0004421

Fixing those seems to cause stalls on formatting (or just very slow formatting), but maybe that's a a coincidence with something else playing up.

carl

2021-05-28 10:15

administrator   ~0004422

Last edited: 2021-05-28 10:15

cce3730330bd5621a94ec813934ba4f41254910d is the overflow fix. It all seems much slower (though it has worked at least once writing to my spinning 2TB USB external). May just be because the formatting is doing much more work.

carl

2021-05-28 10:25

administrator   ~0004423

Put into DoM in b9d1f711143ddb18245170b309e2395560cebe0a

Bug History

Date Modified Username Field Change
2021-05-27 20:51 carl New Bug
2021-05-27 20:51 carl Assigned To => carl
2021-05-27 20:51 carl Status new => acknowledged
2021-05-27 23:30 carl Note Added: 0004418
2021-05-27 23:30 carl Note Added: 0004419
2021-05-28 00:17 carl Note Added: 0004420
2021-05-28 00:23 carl Note Added: 0004421
2021-05-28 00:23 carl Status acknowledged => confirmed
2021-05-28 00:23 carl Reproducibility have not tried => always
2021-05-28 00:23 carl Estimated work required => Undecided
2021-05-28 10:15 carl Note Added: 0004422
2021-05-28 10:15 carl Note Edited: 0004422
2021-05-28 10:25 carl Note Added: 0004423
2021-05-28 10:25 carl Status confirmed => resolved
2021-05-28 10:25 carl Resolution open => fixed
2023-09-01 21:50 carl Status resolved => closed