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

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