Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2006 08:52:19 +0000 (UTC)
From:      "Simon L. Nielsen" <simon@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/fdisk fdisk.c
Message-ID:  <200606250852.k5P8qKaC093763@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
simon       2006-06-25 08:52:19 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sbin/fdisk           fdisk.c 
  Log:
  MFC rev. 1.82:
  - Fail with an understandable error message if we cannot detect the
    sector size, instead of later failing with an error about /boot/mbr
    not being a multiple of the sector size (since we end up with an
    assumed sector size of MAX_SEC_SIZE * 2).
  - We query the sector size via an IOCTL anyway, so if that succeeds
    use that instead of probing for it via read(2) calls.  This fixes
    the problem with fdisk failing to operate on at least graid3 and
    md(4) devices on kernels with src/sys/geom/geom_dev.c before
    rev. 1.90, due to fdisk failing to detect the sector size.
  - When detecting the root device allow "/" characters in it, which
    happens with e.g. gmirror devices.
  
  Revision  Changes    Path
  1.79.2.3  +5 -2      src/sbin/fdisk/fdisk.c



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