Source-Changes archive

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

CVS commit: src/distrib/utils/embedded



Module Name:    src
Committed By:   riastradh
Date:           Sat Feb  7 20:07:20 UTC 2026

Modified Files:
        src/distrib/utils/embedded: mkimage

Log Message:
mkimage: Write one block of padding up to 4MB.

Previously we wrote padding one byte at a time, which takes a while
when it's nearly 4MB of padding!

I believe these dd(1) options are POSIX-compliant.  If the read from
/dev/zero is truncated, then conv=sync means it will be padded with
NUL bytes rather than reading more -- but that's fine; that's what we
would get by reading from /dev/zero anyway!

(Why did I make this round to a multiple of 4MB and _then_ add 1MB,
rather than the other way around of adding 1MB and then rounding to a
multiple of 4MB?)

No correctness change intended -- but this should improve performance
of the image build a little bit!


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/distrib/utils/embedded/mkimage

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