Re: [uml-devel] starting an UML image sometimes failed, next (identical) attempt works

2014-11-21 Thread Geert Uytterhoeven
On Fri, Nov 21, 2014 at 2:32 PM, Toralf Förster wrote: > diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c > index e8ab93c..22390f9 100644 > --- a/arch/um/drivers/ubd_kern.c > +++ b/arch/um/drivers/ubd_kern.c > @@ -508,19 +508,25 @@ static inline int ubd_file_size(struct ubd *ub

Re: [uml-devel] starting an UML image sometimes failed, next (identical) attempt works

2014-11-21 Thread Toralf Förster
On 11/19/2014 10:13 PM, Richard Weinberger wrote: >> console [mc-1] enabled >> > Failed to initialize ubd device 0 :Couldn't determine size of device's file > This is ubd_file_size(). Can you find out where exactly it is failing? > Just add a few printk()s into it. Did it: diff --git a/arch/um/dr

Re: [uml-devel] starting an UML image sometimes failed, next (identical) attempt works

2014-11-19 Thread Richard Weinberger
On Wed, Nov 19, 2014 at 6:06 PM, Toralf Förster wrote: > console [mc-1] enabled > Failed to initialize ubd device 0 :Couldn't determine size of device's file This is ubd_file_size(). Can you find out where exactly it is failing? Just add a few printk()s into it. -- Thanks, //richard --

Re: [uml-devel] starting an UML image sometimes failed, next (identical) attempt works

2014-11-19 Thread Anton Ivanov
I have seen this a couple of times as well. I am a bit snowed under at the moment, when I have some spare time I will try to dig through my trees to see exactly what did I come up with as a root cause. A. On 19/11/14 17:06, Toralf Förster wrote: > /me wonders, why the same call few seconds later

[uml-devel] starting an UML image sometimes failed, next (identical) attempt works

2014-11-19 Thread Toralf Förster
/me wonders, why the same call few seconds later works (current git kernel), but not for the first time : $ nice start_uml.sh -r trinity + /usr/local/bin/linux-v3.18-rc4 earlyprintk ubda=/home/tfoerste/virtual/uml/trinity ubdb=/mnt/ramdisk/trinity_swap eth0=tuntap,tap0,72:ef:3d:9f:c3:5a mem=20