Inconsistent disk state when creating paritions

From: linux-os (Dick Johnson)
Date: Wed Jan 07 2009 - 17:48:48 EST


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!

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.

The problem was first discovered with old-fashioned
IDE disks. I don't have any spare SATA drives to
see if the problem exists there. I note that sfdisk
says it is re-reading to update the parition information.


Does anybody know about this or care?


Cheers,
Dick Johnson
Penguin : Linux version 2.6.25.17 on an i686 machine (4784.32 Gimps).
My book : http://www.AbominableFirebug.com/
.


****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@xxxxxxxxxxxx - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.
--
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/