Re: md lock issue, I suppose

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

thanks for the hint, basically that exactly
what was needed, i.e. informing the kernel
about the new partition.

The only different with your suggestion was
to use "addpart", instead of "partx".

Thanks again,

bye,

pg

On Tue, Jun 22, 2010 at 08:22:33AM +1000, Neil Brown wrote:
> On Mon, 21 Jun 2010 23:25:21 +0200
> Piergiorgio Sartor <piergiorgio.sartor@xxxxxxxx> wrote:
> 
> > Any other suggestions or ideas?
> > 
> 
> You cannot use the BLKRRPART ioctl while any partition of the device is open.
> However you can use BLKPG_ADD_PARTITION to add a new partition providing it
> doesn't overlap any existing partition.
> Unfortunately parted doesn't use this ioctl, nor am I aware of anything which
> does. (Google suggests something called DeviceKit does, but I know nothing
> about that).
> You could write a program which reads the the partition table and tries to
> add each partition individually.  Some might fail but others might succeed.
> ... or maybe you don't need to- 'partx' in util-linux-ng seems to do what you
> want.
> 
> NeilBrown
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 

piergiorgio
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux