Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2006 22:01:15 +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/sys/geom geom_dev.c
Message-ID:  <200606182201.k5IM1G3Y068390@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
simon       2006-06-18 22:01:15 UTC

  FreeBSD src repository

  Modified files:
    sys/geom             geom_dev.c 
  Log:
  In g_dev_strategy(), when failing an IO request with EINVAL due to
  offset or request size which is not a multiple of the sector size, make
  sure that the bio is set to indicate that no data has actually been
  transferred.
  
  The result of this is that the file offset is no longer incremented for
  these requests.  The fact that the file offset was incremented broke
  fdisk(8)'s probing of sector size for non-512 byte sector sizes.
  
  Reviewed by:    phk, cperciva
  Submitted by:   mdodd
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.90      +1 -0      src/sys/geom/geom_dev.c



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