OSDN Git Service

tests: t2200-dos-label-recog.sh: adapt to work with larger sector size
authorJim Meyering <meyering@redhat.com>
Fri, 12 Jun 2009 08:09:47 +0000 (10:09 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 24 Jul 2009 13:04:43 +0000 (15:04 +0200)
commite67e26560125d982e6f6ae7826385c3b4fff2963
tree157b3ec6ca6415f47c68a7154f5191003af0ebf4
parentf96581a95eaa1db9c9c37ecff4feed717d0d829a
tests: t2200-dos-label-recog.sh: adapt to work with larger sector size

Using a 100K image is inadequate for larger sector sizes, since it
triggers a bug whereby the device length (in sectors) smaller than
the cylinder_size: from dos.c:
  if (!ped_geometry_init (&start_geom, dev, cylinder_size,
      dev->length - cylinder_size))
That would pass a negative value for the 3rd argument.
* tests/t2200-dos-label-recog.sh: Use an image of size 10MB, not 100K.
tests/t2200-dos-label-recog.sh