Re: [Vserver] Hidden mount - how?

2005-12-28 Thread Guenther Fuchs
Hi there,

on Wednesday, December 28, 2005 at 17:03 there was posted:

HP> I think you can not do that with fstab
...
HP> 'just' modify the mtab file ...

Okay, have to fiddle init-scripts then ...

>> HP> if you want to hide that fact from /proc/mounts then it's getting
>> HP> trickier ...
>> That's not necessary for me as /proc/mounts hide original path's from
>> the host server ;-)
HP> yes, that's the default (hide_mount)
HP> but it will show mounts inside the guest server ...

It would be fine for me as well if the original (host) path would be
hidden from mtab on mount as well ...

Okay, will fiddle the scripts now.

Thx for looking into anyway!

-- 
regards,

Guenther Fuchs

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Hidden mount - how?

2005-12-28 Thread Herbert Poetzl
On Wed, Dec 28, 2005 at 04:44:46PM +0100, Guenther Fuchs wrote:
> Hi there,
> 
> on Wednesday, December 28, 2005 at 16:38 there was posted:
> 
> HP> 'define' hide ...
> 
> As you defined: "Not visible" to the mount command.
> 
> HP> if you want to have mount not show it, just remove the entry from
> HP> the mtab (or mount it with -n)
> 
> How can this be done by specifying it in the config "fstab"? Sorry for
> stupid questioning, never fiddled on that ...

I think you can not do that with fstab (because there
is no option mount would understand), but as I said,
you can either do the mount with the -n command or
'just' modify the mtab file ...

latter can be done with sed, awk, echo, vi ...
by hand, on startup, in the init scripts ...

> HP> if you want to hide that fact from /proc/mounts then it's getting
> HP> trickier ...
> 
> That's not necessary for me as /proc/mounts hide original path's from
> the host server ;-)

yes, that's the default (hide_mount)
but it will show mounts inside the guest server ...

best,
Herbert

> -- 
> regards,
> 
> Guenther Fuchs
> 
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Hidden mount - how?

2005-12-28 Thread Guenther Fuchs
Hi there,

on Wednesday, December 28, 2005 at 16:38 there was posted:

HP> 'define' hide ...

As you defined: "Not visible" to the mount command.

HP> if you want to have mount not show it, just remove the entry from
HP> the mtab (or mount it with -n)

How can this be done by specifying it in the config "fstab"? Sorry for
stupid questioning, never fiddled on that ...

HP> if you want to hide that fact from /proc/mounts then it's getting
HP> trickier ...

That's not necessary for me as /proc/mounts hide original path's from
the host server ;-)

-- 
regards,

Guenther Fuchs

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Hidden mount - how?

2005-12-28 Thread Herbert Poetzl
On Wed, Dec 28, 2005 at 04:00:24PM +0100, Guenther Fuchs wrote:
> Hi there,
> 
> as recommended in amavis configuration I have used an tmpfs mount to
> mount memory as tmp for amavisd-new by adding following line to fstab:
> 
> | none/var/amavis/tmp tmpfs   size=250m,mode=1777 0 0
> 
> For various reasons (and also for other mounts) I'd like to "hide"
> this (and other) mount(s) visibility inside the guest - how can this
> done? Any ideas?

'define' hide ...

if you want to have mount not show it, just
remove the entry from the mtab (or mount it
with -n) if you want to hide that fact from
/proc/mounts then it's getting trickier ...
(i.e. you will have to patch the kernel)

HTH,
Herbert

> -- 
> regards,
> 
> Guenther Fuchs
> 
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Hidden mount - how?

2005-12-28 Thread Guenther Fuchs
Hi there,

as recommended in amavis configuration I have used an tmpfs mount to
mount memory as tmp for amavisd-new by adding following line to fstab:

| none/var/amavis/tmp tmpfs   size=250m,mode=1777 0 0

For various reasons (and also for other mounts) I'd like to "hide"
this (and other) mount(s) visibility inside the guest - how can this
done? Any ideas?

-- 
regards,

Guenther Fuchs

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver