Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Nov 2005 22:54:41 +0000 (UTC)
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/geom geom_bsd.c
Message-ID:  <200511302254.jAUMsfS6077560@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
sobomax     2005-11-30 22:54:41 UTC

  FreeBSD src repository

  Modified files:
    sys/geom             geom_bsd.c 
  Log:
  It is unclear who is wrong and who is right, but when operating on
  plain file bsdlabel(8) always writes label at a fixed offset from
  its beginning (512 bytes), regardless of the sector size. At the same
  time, bsdlabel geom class expects label to be available at the very
  beginning of the second sector.
  
  As a result, images prepared in userland for media with sector size
  different from 512 bytes (i.e. 2k for cdroms) are not recognized by
  the tasting mechanism.
  
  Solve the problem by always looking for the label at 512-byte offset
  if we can't find it at the beginning of the second sector and sector
  size is not 512 bytes.
  
  Revision  Changes    Path
  1.76      +10 -0     src/sys/geom/geom_bsd.c



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