About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Fri 16 Sep 2005 - 16:08:07 BST


On Fri, Sep 16, 2005 at 10:56:49AM -0400, Chuck wrote:
> On Friday 16 September 2005 10:52 am, Herbert Poetzl wrote:
>
> > note: the --iunlink sets the 'immutable' flag as well as
> > the 'immutable unlink' flag, basically making those files
> > immutable against changes, which not even the CoW link
> > breaking will break, as they are not hardlinked anymore
> >
> > the --~iunlink removes both flags and makes them normal
> > files again ...
>
> ok now i am totally confused. i thought running --iunlink made the
> links breakable/copyable under the 2.1 setups?

yes, it does ...

> so then if --iunlink creates permanent links to files that cannot be
> touched, what do i run to take advantage of the 2.1 CoW ?

not _links_ that is the important detail here ...

touch /tmp/x
setattr --iunlink /tmp/x

and you get an immutable file, you can remove,
but not alter ...

touch /tmp/a
ln /tmp/a /tmp/b
setattr --iunlink /tmp/a

and you have two files (a,b) which are unified
(i.e. a hardlink to the same inode) which will
be CoW breakable on devel versions (2.1.x)

hope that clarifies,
Herbert

> > thanks for the followup!
> >
> > best,
> > Herbert
> >
> > > > i just copied my template into 3 other vservers using hard link
> > > > cloning along with copying real files into the etc and var. they
> > > > run ok however I now get an error on start I never got before. I
> > > > hope I didn't goof using the setattr
> > > > command. error listed next
> > > >
> > > > davin etc # /etc/init.d/vservers start
> > > > * Starting all vservers ...
> > > > chroot-shopen("/etc/mtab"): Permission denied
> > > > secure-mount: open(<mtab>): Permission denied
> > > > Failed to update mtab-file
> > > > secure-mount: open(<mtab>): Permission denied
> > > > Failed to update mtab-file
> > > > secure-mount: open(<mtab>): Permission denied
> > > > Failed to update mtab-file
> > > >
> > > > i just tried setting the attrs mount option on my host / to see if
> > > > ithat cures t. didn't have this until I made the 3 other vservers.
> > > >
> > > > finished reboot and that didn't cure anything :(
> > > >
> > > > I will say this though.... in converting my 3 vservers into hard
> > > > linked clones all 4 servers including the template now take up 1/3
> > > > the amount of space they did before this :)
> > > >
> > > >
> > > > --
> > > >
> > > > Chuck
> > > >
> > > > "...and the hordes of M$*ft users descended upon me in their anger,
> > > > and asked 'Why do you not get the viruses or the BlueScreensOfDeath
> > > > or insecure system troubles and slowness or pay through the nose
> > > > for an OS as *we* do?!!', and I answered...'I use Linux'. "
> > > > The Book of John, chapter 1, page 1, and end of book
> > > >
> > > >
> > > > _______________________________________________
> > > > Vserver mailing list
> > > > Vserver_at_list.linux-vserver.org
> > > > http://list.linux-vserver.org/mailman/listinfo/vserver
> > > >
> > >
> > > --
> > >
> > > Chuck
> > >
> > > "...and the hordes of M$*ft users descended upon me in their anger,
> > > and asked 'Why do you not get the viruses or the BlueScreensOfDeath
> > > or insecure system troubles and slowness or pay through the nose
> > > for an OS as *we* do?!!', and I answered...'I use Linux'. "
> > > The Book of John, chapter 1, page 1, and end of book
> > >
> > >
> > > _______________________________________________
> > > Vserver mailing list
> > > Vserver_at_list.linux-vserver.org
> > > http://list.linux-vserver.org/mailman/listinfo/vserver
> >
>
> --
>
> Chuck
>
> "...and the hordes of M$*ft users descended upon me in their anger,
> and asked 'Why do you not get the viruses or the BlueScreensOfDeath
> or insecure system troubles and slowness or pay through the nose
> for an OS as *we* do?!!', and I answered...'I use Linux'. "
> The Book of John, chapter 1, page 1, and end of book
>
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 16 Sep 2005 - 16:08:29 BST by hypermail 2.1.3