I don't know if this is the cause but look for a zombie process.  I had
something were A locked a file then forked B.  A was "kill -9"'d but not
B.  Somehow the lock was still held.  The fix was "killall A; killall
B".    I think what happed was A was a zombie waiting for B to die so it
could get its return code.  Either that or the file lock was inherited
across the lock.  Yeah I know sounds wrong but it worked.

 

--David

 

________________________________

From: K D [mailto:kdca...@yahoo.com] 
Sent: Monday, January 12, 2009 3:31 PM
To: user-mode-linux-user@lists.sourceforge.net
Subject: [uml-user] F_SETLK failed, file already locked by pid 0

 

If I kill all tasks in that session I should see that file getting
unlocked right? Can we write a small kernel module that finds/unlocks
this file? Will that work? Is there any other way to get around this
other than rebooting the box or making a copy of root_fs and using that
for uml session? 

I've built uml with 2.6.28 sources and running this on 2.6.11 kernel.

F_SETLK failed, file already locked by pid 0
Failed to lock '../bulk_fedora/root_fs', err = 11
Failed to open '../bulk_fedora/root_fs', errno = 11
ubda: Can't open "../bulk_fedora/root_fs": errno = 11
F_SETLK failed, file already locked by pid 0
Failed to lock '../bulk_fedora/root_fs', err = 11
Failed to open '../bulk_fedora/root_fs', errno = 11
ubda: Can't open "../bulk_fedora/root_fs": errno = 11
VFS: Cannot open root device "98:0" or unknown-block(98,0)


thanks

 

 

________________________________

From: Flavio <fbcyb...@gmail.com>
To: K D <kdca...@yahoo.com>
Cc: user-mode-linux-user@lists.sourceforge.net
Sent: Friday, January 2, 2009 2:34:00 AM
Subject: Re: [uml-user] link broken:
http://uml.nagafix.co.uk/FedoraCore5/FedoraCore5-x86-root_fs.bz2

2008/12/26 K D <kdca...@yahoo.com>
>
> hi
>
> http://uml.nagafix.co.uk/FedoraCore5/FedoraCore5-x86-root_fs.bz2 is
broken. can someone pl post a working link to fedora5 or later rootfs?
>
> thanks

Hi,

http://uml.nagafix.co.uk/ redirects to the Overseas Procedures &
Surgery Ltd. website.
Maybe it has been hacked by someone.
That is the reason why you can't download the Fedora filesystem image.

Flavio

 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to