[systemd-devel] Can udev assist?

2015-11-20 Thread Aaron_Wright
I have a script that creates a partition (using pyparted) and then tries to format it (using mkfs.ext4). Most of the time this works OK. However, sometimes the format fails because it can't find the device. There seems to be a race condition due to a delay between creating a partition and the

Re: [systemd-devel] Can udev assist?

2015-11-20 Thread Aaron_Wright
> From: Reindl Harald > Am 20.11.2015 um 18:08 schrieb aaron_wri...@selinc.com: > > I have a script that creates a partition (using pyparted) and then tries > > to format it (using mkfs.ext4). Most of the time this works OK. However, > > sometimes the format fails

Re: [systemd-devel] Can udev assist?

2015-11-20 Thread Aaron_Wright
Andrei Borzenkov wrote on 11/20/2015 09:40:35 AM: > 20.11.2015 20:08, aaron_wri...@selinc.com пишет: > > I have a script that creates a partition (using pyparted) and then tries > > to format it (using mkfs.ext4). Most of the time this works OK. However, > > sometimes the

Re: [systemd-devel] Can udev assist?

2015-11-20 Thread Andrei Borzenkov
20.11.2015 20:08, aaron_wri...@selinc.com пишет: I have a script that creates a partition (using pyparted) and then tries to format it (using mkfs.ext4). Most of the time this works OK. However, sometimes the format fails because it can't find the device. There seems to be a race condition due

Re: [systemd-devel] Can udev assist?

2015-11-20 Thread Reindl Harald
Am 20.11.2015 um 18:08 schrieb aaron_wri...@selinc.com: I have a script that creates a partition (using pyparted) and then tries to format it (using mkfs.ext4). Most of the time this works OK. However, sometimes the format fails because it can't find the device. There seems to be a race

Re: [systemd-devel] Can udev assist?

2015-11-20 Thread Robert Milasan
On Fri, 20 Nov 2015 09:08:35 -0800 wrote: > I have a script that creates a partition (using pyparted) and then > tries to format it (using mkfs.ext4). Most of the time this works OK. > However, sometimes the format fails because it can't find the device. > There seems to