Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2007 01:02:00 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/geom/part g_part_bsd.c
Message-ID:  <200712240102.lBO121bu001842@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marcel      2007-12-24 01:02:00 UTC

  FreeBSD src repository

  Modified files:
    sys/geom/part        g_part_bsd.c 
  Log:
  Various fixes:
  o  BSD disklabels have relative offsets. Even for the BSD in MBR slice
     setup, except when the mbroffset ioctl is supported. Since we don't
     support that ioctl, bsdlabel(8) expects relative offsets. So, when
     reading an existing disklabel, correct for disklabels that mistakenly
     have the mbroffset offsets.
  o  Don't take the geometry seriously, because it's untrustworthy. We do
     expect the numbers to be within range. This means that the secperunit
     field will not be computed from secpercyl and ncyls, but simply is
     the mediasize in sectors.
  o  Don't enforce partitions to be aligned to track boundaries. The
     default label, constructed by bsdlabel(8), puts partition a at offset
     BBSIZE bytes, which commonly means sector 16.
  
  Revision  Changes    Path
  1.3       +25 -41    src/sys/geom/part/g_part_bsd.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712240102.lBO121bu001842>