Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sbin/gpt



Module Name:    src
Committed By:   kre
Date:           Fri Feb  6 11:14:14 UTC 2026

Modified Files:
        src/sbin/gpt: gpt.c

Log Message:
Ensure sizes are a multiple of the sector size.

In gpt_size_get() ensure that the size returned is a multiple
of the sector size.   This is automatic for unscaled numbers
(treated as multiples of the sector size) but in other cases
it is not automatic.   Note that even nK is not guartamteed to
be a multiple of the sector size if that happens to be 4K and
n is not a multiple of 4.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sbin/gpt/gpt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index