Re: Inconsistent disk state when creating paritions

From: Karl Kiniger
Date: Thu Jan 08 2009 - 04:39:47 EST


On Wed 090107, linux-os (Dick Johnson) wrote:
> Attempting to use mkfs immediately after creating
> partitions using sfdisk, (in the same shell-script)
> fails with all kernels I have tried. The partition
> information doesn't get updated for several seconds!

are you using udev?

udev takes some time to create the partition devices

Karl

>
> In every case, with both ext2 and ext3 file-systems,
> I can create them manually or I can sleep in the
> shell-script. However, I don't think this problem
> should exist.
--
Karl Kiniger mailto:karl.kiniger@xxxxxxxxxx
Tel: (++43) 7682-3800-710 Voip(GE): 1662 710
Fax: (++43) 7682-3800-47 C: +43 6991 3800 710
-
GE Medical Systems Kretztechnik GmbH & Co OHG - Tiefenbach 15 â A-4871 Zipf
Landesgericht Wels FN 222387s â UID (VAT-ID): ATU54086108 - DVR: 2111103 â ARA: 12816
PersÃnlich haftende Gesellschafterin: GE Medical Systems Kretztechnik GmbH
Tiefenbach 15 â A-4871 Zipf - Landesgericht Wels FN 218689b
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/