cvs commit: src/sys/geom geom_gpt.c

Marcel Moolenaar marcel at FreeBSD.org
Tue Aug 8 21:33:27 UTC 2006


marcel      2006-08-08 21:33:26 UTC

  FreeBSD src repository

  Modified files:
    sys/geom             geom_gpt.c 
  Log:
  Fix a phase-ordering bug: check the mediasize and sectorsize after
  we obtained access. It is possible that GPT gets to taste a disk
  first, which means the disk has not been opened before and it will
  not get opened until after we checked the mediasize and sectorsize.
  However, since the mediasize and sectorsize are determined at open
  and that happens when access is optained, checking the mediasize
  and sectorsize before obtaining access may result in GPT rejecting
  the disk.
  
  Revision  Changes    Path
  1.40      +21 -20    src/sys/geom/geom_gpt.c


More information about the cvs-src mailing list