cvs commit: src/sys/geom geom_dev.c

Simon L. Nielsen simon at FreeBSD.org
Sun Jun 18 22:01:16 UTC 2006


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


More information about the cvs-src mailing list