Re: [Vserver] CIFS in guests [was: NFS mounts in guests [was: how to set capabilities in Debian]]

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Fri 06 Oct 2006 - 21:45:08 BST
Message-ID: <20061006204508.GB23122@MAIL.13thfloor.at>

On Fri, Oct 06, 2006 at 09:16:17AM +0200, Wilhelm Meier wrote:
> Am Sonntag, 1. Oktober 2006 13:56 schrieb Herbert Poetzl:
> > On Sun, Oct 01, 2006 at 10:37:15AM +0200, Wilhelm Meier wrote:
> > > Am Samstag, 30. September 2006 13:23 schrieb Daniel Hokka Zakrisson:
> > > > Wilhelm Meier wrote:
> > > > > <snip>
> > > >
> > > > Could you try applying
> > > > http://people.linux-vserver.org/~dhozac/p/k/delta-nfs-fix01.diff
> > > > to your kernel and see if that changes anything? This seems
> > > > to have fixed NFS mounting from guests with binary_mount and
> > > > secure_mount for me.
> > >
> > > Thank you Daniel very much! It works too with
> > > 2.6.17-vs2.1.1-rc31-gentoo. Now it is possible with all combinations
> > > of nfs over udp,tcp,nfsvers=[23].
> > >
> > > Small patch, big difference! Is this going to be part of the
> > > dev-sources now?
> >
> > yep, was already included when you tried, I
> > guess :) just no new release since ...
> >
> > (i.e. will be in the next one)
>
> Is there any effort to make CIFS-mounting inside guests possible
> (without CAP_SYS_ADMIN)?

not that I'd know of ...

if you volunteer to spend some quality time on
testing, I'm willing to help you with the kernel
side. in this case, please try to catch me on the
irc channel (#vserver @ irc.oftc.net)

best,
Herbert

> Even with CAP_SYS_ADMIN I get (cifs-module on host is loaded):
>
> vs01 / # strace mount.cifs //192.168.39.1/home/lmeier /home -o user=lmeier
>
> ....
> ioctl(3, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost isig icanon echo ...})
> = 0
> close(3) = 0
> munmap(0xb7fb5000, 4096) = 0
> mount("//192.168.39.1/home/lmeier", "/home", "cifs",
> MS_MANDLOCK, "unc=//192.168.39.1/home\\lmeier,i"...) = -1 ENOMEM (Cannot
> allocate memory)
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0xb7fb5000
> write(1, "mount error 12 = Cannot allocate"..., 40mount error 12 = Cannot
> allocate memory
> ) = 40
> write(1, "Refer to the mount.cifs(8) manua"..., 60Refer to the mount.cifs(8)
> manual page (e.g.man mount.cifs)
> ) = 60
> munmap(0xb7fb5000, 4096) = 0
> exit_group(-1) = ?
> Process 8701 detached
>
> -
> Wilhelm
>
> >
> > best,
> > Herbert
> >
> > > Thanks,
> > > Wilhelm
> > >
> > > --
> > > Wilhelm Meier
> > > email: wilhelm.meier@fh-kl.de
> > > _______________________________________________
> > > 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
>
> --
> Wilhelm Meier
> email: wilhelm.meier@fh-kl.de
> _______________________________________________
> 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
Received on Fri Oct 6 21:46:15 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 06 Oct 2006 - 21:46:19 BST by hypermail 2.1.8