Commit Graph

7 Commits

Author SHA1 Message Date
Christophe Bothamy
d1fbbd6f5c - include patch from Tal Benavidor :
this little patch brings a significant speed improvement to
  the bximage utility. when bximage creates a disk image, it writes
  a lot of zeros. actually as much zeros as the size of the image file.
  this takes quite a while for large images (at least in my win98/cygwin box).
  a faster way to create the image file is to seek to its end and write a
  single byte.
  to see the speed improvement, create a 100mb image with the old bximge.
  then apply this patch and do the same.
2002-05-21 07:23:09 +00:00
Bryce Denney
b61df36c8a - use floating point when computing # of cylinders. The expression
hdsize*1024*1024/16/63/512 was prone to overflowing in 32-bit integer math.
  Thanks to Henry Mohn III <animatorhmiii@netscape.net> for sending a patch.
2001-12-08 17:46:02 +00:00
Bryce Denney
522007e662 - I guess strcasecmp is specific to glib or something, it didn't work in
win32.
2001-06-01 05:45:55 +00:00
Bryce Denney
10ae93c1d6 - gcc -Wall made me a little more honest! Added missing includes,
removed unused variables, initialized things that I had missed before,
  added a missing arg to sprintf, and a return at the end of int main.
  That's all.
2001-06-01 05:11:45 +00:00
Bryce Denney
ad43b74b4a - change to $Id$ in the print_banner 2001-06-01 04:28:14 +00:00
Bryce Denney
ee4897e645 - fixed upper limit of hard disk size. the limit is cylinders<65536. 2001-06-01 04:24:12 +00:00
Bryce Denney
a6dd514493 - rename mkimg2 to bximage 2001-06-01 04:20:26 +00:00