Hi,

This is expected behaviour, for the reason that each virtual server is based
on a skel by hard linking the /bin, /sbin, etc directories (expect for /etc
/var /dev /proc and /usr/local), and if you update a hard linked file, it
updates all the other links to the file..

I hope this makes sense... well, actually, I will put below an email from
Paul Sladen that explained it to me :)

Cheers - Bill.

---------------------------------
Inodes contain data.  `Files' (like
`/etc/passwd' are pointers to an Inode number (and therefore the write piece
of data).

A Hardlink is where you create a second pointer to the same numbered Inode
(there is also a reference count on the Inode data).  So the reference
counts go to `2' for that data.  If I create another hardlink the refernce
goes to `3' and there are now three seperate pointers to the same
Inode/data.

If you delete one of those files, all you are actually doing is removing a
pointer (such as `/etc/passwd') and decrementing the reference count back
down to `2'.  So now when you create the file again (say `/etc/passwd') this
will now point at a new inode and a new block of data.

Whereas, if you *overwrite* the contents of any of those pointers you are
modifying the actual data in the Inode--and therefore the data that all the
other pointers see.

---------------------------------

----- Original Message -----
From: "Micheal Young" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 4:59 PM
Subject: ok .. something strange happend to me.


>
> Ok .. i hope someone can shead some light on this one.
>
> Ok .. i have a server running freevsd 1.4.9. I have a skell i downloaded
of
> the net for redhat 7.1. Last week i was doing some updates to a virtual
host
> i have set up .. but copying files i needed from the main system to the
> virtual server skel. Somehow .. and i have NO idea how ... the changes i
made
> to the virtural server skel made there way to EVERY OTHER VIRTUAL SERVER i

> had running .. as well as the default skel i am using?? Is this possable??
> And if so .. how????
>
>
> Mike
> ------------------------- The freeVSD Support
List --------------------------
> Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
> Unsubscribe:
mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
> Archives:    http://freevsd.org/support/mail-archives/freevsd-support
> --------------------------------------------------------------------------
---
>

------------------------- The freeVSD Support List --------------------------
Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
-----------------------------------------------------------------------------

Reply via email to