cvs commit: src/sys/geom/part g_part_mbr.c

Marcel Moolenaar marcel at
Thu Feb 28 22:30:42 UTC 2008

marcel      2008-02-28 22:30:41 UTC

  FreeBSD src repository

  Modified files:
    sys/geom/part        g_part_mbr.c 
  Better handle false positives. The MBR differs from the boot sector
  only because there's a partition table where the boot sector has
  boot code. Boot sectors without boot code look like a MBR for all
  practical purposes. This change adds a check for the partition table
  and fails the probe when it's obvously invalid. The assumption being
  that the sector contains a boot sector and not a MBR.
  More checks are needed to distinguish a boot secto without boot code
  from a (empty) MBR.
  Revision  Changes    Path
  1.3       +24 -6     src/sys/geom/part/g_part_mbr.c

More information about the cvs-src mailing list