linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] hostfs link count bug?
@ 2005-10-21 17:22 Szabo Peter
  2005-10-21 18:11 ` Blaisorblade
  0 siblings, 1 reply; 2+ messages in thread
From: Szabo Peter @ 2005-10-21 17:22 UTC (permalink / raw)
  To: user-mode-linux-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1547 bytes --]

Hi!

I think I have found a bug in UML. Inside my guest Linux, I get

# ls -l /etc/passwd
-rw-r--r--  18 root root 801 Oct 21 13:04 /etc/passwd
root@um-server:/dev# ls -l /etc/passwd
-rw-r--r--  19 root root 801 Oct 21 13:04 /etc/passwd
root@um-server:/dev# ls -l /etc/passwd
-rw-r--r--  20 root root 801 Oct 21 13:04 /etc/passwd
root@um-server:/dev# ls -l /etc/passwd
-rw-r--r--  21 root root 801 Oct 21 13:04 /etc/passwd
root@um-server:/dev# ls -l /etc/passwd
-rw-r--r--  22 root root 801 Oct 21 13:04 /etc/passwd
root@um-server:/dev# ls -l /etc/passwd
-rw-r--r--  23 root root 801 Oct 21 13:04 /etc/passwd

This is wrong, because the link count of /etc/passwd is incremented each 
time ls(1) is run. This also breaks the `useradd' and `adduser' programs, 
because they use a file locking method which involves checking the 
link count.

I use this version of UML:

# dpkg -l user-mode-linux
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  user-mode-linu 2.4.26-3um-1   User-mode Linux (kernel)

Best regards,

Péter

--- (vvv use GNU); pts@inf.bme.hu; http://www.inf.bme.hu/~pts
[/dlflg/=u]dZ[lflglblp*lqlg*+lpla*lqlf*+sfsgsbdsalblex]dscZ[lb%O]sdzzKsa
[nlaldx*lflg%O*sfdsalblex]dsuZ[.]zsqsssgsbnsfspselsn[lcxsslqdlp+spz+sqdx]dx

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [uml-devel] hostfs link count bug?
  2005-10-21 17:22 [uml-devel] hostfs link count bug? Szabo Peter
@ 2005-10-21 18:11 ` Blaisorblade
  0 siblings, 0 replies; 2+ messages in thread
From: Blaisorblade @ 2005-10-21 18:11 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Szabo Peter

On Friday 21 October 2005 19:22, Szabo Peter wrote:
> Hi!

> I think I have found a bug in UML.
Sure!
> Inside my guest Linux, I get 
[...]
> I use this version of UML:

> # dpkg -l user-mode-linux
> Desired=Unknown/Install/Remove/Purge/Hold

> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:

> uppercase=bad)

> ||/ Name           Version        Description
>
> +++-==============-==============-=========================================
>=== ii  user-mode-linu 2.4.26-3um-1   User-mode Linux (kernel)
>
> Best regards,
>
> Péter
The hostfs code in that release is very experimental, and was never finished 
for 2.4, so try 2.4.28-bs2, which is an updated version from me, and includes 
the old working hostfs code from 2.4.24-1um (with some additional fixes 
included).

Btw, you could also test 2.4.24-1um, except it doesn't plain work on 2.6 
hosts, and has various bugs.

If, btw, you can file a bug upstream to Debian, to add 2.4.28-bs2 UML, it'd be 
nice.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.messenger.yahoo.com



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-21 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-21 17:22 [uml-devel] hostfs link count bug? Szabo Peter
2005-10-21 18:11 ` Blaisorblade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox