cvs commit: src/sbin/gpt boot.c

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 1 Nov 2007 20:06:12 +0000 (UTC)
jhb         2007-11-01 20:06:12 UTC

  FreeBSD src repository

  Modified files:
    sbin/gpt             boot.c 
  Log:
  Fix 'gpt boot' to work on disk devices and not just plain files.  Writes to
  disk devices have to consist of a block of sectors.  Thus, when writing
  gptboot to the boot partition, round the size of the gptboot file up to a
  sector boundary, pre-zero it, and write out the full buffer to disk.
  
  Revision  Changes    Path
  1.2       +10 -5     src/sbin/gpt/boot.c
Received on Thu Nov 01 2007 - 20:06:13 UTC