osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: cifs mounted home directory problems - msg#00038

List: linux.file-systems.cifs

Date: Prev Next Index Thread: Prev Next Index
Hi,

Is there a workaround or fix for the ':' problem? It still seems to be a
problem, even in linux kernel 2.6.10 /Samba 3.0.10. ...or I might very
well have overlooked some inanely obvious setting that solves this darn
thing.

I'm trying to set up a Samba server on a Linux (2.6.10) box which will
be serving home dirs for Linux users. I don't want to use NFS, so I
hoped smb or cifs would do the trick.
I'm using pam_mount to set this up - and it works, as far as mounting
goes. The problem is Evolution, KDE and other apps that use filenames
with the colon character (':') in them.

Doing a stat on one of these files tells me quite rightly that it is a
regular file and all looks well up to that point, but if I try to cat
one of these files I get an error message saying "Not a directory".
Well of course it's not a directory! stat just told me it's a regular
file... grrrr! At this point frustration got the best of me, hence this
email. :-)

Any suggestions are welcome...


Oggy

>> The actual path is this:
>> \.camel_certs\ba:aa:aa:aa:aa:aa etc.
>
> Arrgggghhh. ':' is an invalid character in a cifs filename. With
> one excpetion - presumably it could indicate a data stream (which Samba
> 3 would not support in any case) - in which case file file /.camel/ba
> would need to exist for the stream name after the : to make sense :)
>
> Presumably this is not some cross platform app that has some friendly
> configure option to work around illegal characters in file names right ...
>
> Anyone know what this looks like (ie creating a filename with a : in it
> on Windows) when a Windows system has the Windows SFU (Service for Unix)
> installed which IIRC is a free download? Perhaps they use the POSIX
> flag in the Open request to bypass the name check?? Would be easy
> enough to see what flows on the wire - and what it looks like on t2
> FindFirst when you see a locally created weird filename in a directory
>
> jra,
> Any chance you can turn off the checking for valid Unix, invalid Windows
> characters, for cases when Unix extensions are negotiated are for POSIX
> flag or client?
>
> By the way this does show a bug in Samba 3 e.g.
>
> echo "some data" > /mnt/1a:aa
> fails to Samba 3 with (a not a directory error - which can't be right),
> while it succeeds to Windows (which implicitly creates the file 1a, and
> presumably the associated "stream" aa Presumably since Samba 3 does
> not support streams that is part of the problem - but the file (zero
> length) is implicitly created as a side effect (perhaps someone could
> try this experiment to a Windows FAT partition and see what error
> Windows returns, if any,when you try to create the file remotely with a :
>
> My guess is that if we fix Samba to match Windows behavior that would
> get past a few of the app problems - although not solve the problem of
> how to deal with readdir not listing the file in the directory listing.
> Note that both lookup and stat from my client to Windows (for the file
> "1a:aa") work and return expected results as if it were a distinct file
> (that is how streams are expected work so I should not have been
> surprised). I hate to wait for Samaba4 to fix this with streams when
> really this should not be a streams issue.


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Multiple cifs-mounts from same Windows server to same linux client

Is the Server windows2003? Is SMB signing required (typically is required by the server, when a Windows2003 server is a domain controller or a member of a domain, rather than standalone server)? I was thinking about whether this is related to bug 2369 (https://bugzilla.samba.org/show_bug.cgi?id=2369). Steve French Senior Software Engineer Linux Technology Center - IBM Austin phone: 512-838-2294 email: sfrench at-sign us dot ibm dot com_______________________________________________ linux-cifs-client mailing list linux-cifs-client@xxxxxxxxxxxxxxx https://lists.samba.org/mailman/listinfo/linux-cifs-client

Next Message by Date: click to view message preview

multiple cifs mounts cause lock after IP adress change

Hello, we have a Dell PowerVault (elephant.nexim.com) at work that we use as file server. I connect from my linux box (ivon) to this machine to mount 3 different shares. Everything went well until our sysadmins decided to give our machines new IP addresses (because we switched from internet provider). >From then on, I get a “resource temporarily unavailable” error when I try to mount the third share. If I try mounting again, it works fine. First, I thought there was a problem with the third share, but reversing the mount order results in the same strange behaviour that was not present before the IP move.   What is worse, after a few hours, these shares seem to get locked (an “ls” command does not return, “df” does not return, but the rest of the machine still works fine). Hereunder, you can find first the mount commands I use, indicating the mount errors. Next is a part of /var/log/syslog when these shares got stuck.   Do you have any idea what is causing these errors or how I can prevent them. Currently, I am running kernel 2.6.10-rc2 (I am compiling 2.6.11.6 at the moment of writing), mount.cifs 1.5 and samba 3.0.4 on a slackware 10.0 32-bit box. Greetings, Geert Fannes.   **mount commands** root@ivon elephant $ cifsmount //elephant.nexim.com/gfannes home -o user=gfannes Password: root@ivon elephant $ cifsmount //elephant.nexim.com/Projects projects -o user=gfannes Password: root@ivon elephant $ cifsmount //elephant.nexim.com/transfer transfer -o user=gfannes Password: mount error 11 = Resource temporarily unavailable Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) root@ivon elephant $ cifsmount //elephant.nexim.com/transfer transfer -o user=gfannes Password: root@ivon elephant $ umount home root@ivon elephant $ umount projects root@ivon elephant $ umount transfer root@ivon elephant $ cifsmount //elephant.nexim.com/transfer transfer -o user=gfannes Password: root@ivon elephant $ cifsmount //elephant.nexim.com/Projects projects -o user=gfannes Password: root@ivon elephant $ cifsmount //elephant.nexim.com/gfannes home -o user=gfannes Password: mount error 11 = Resource temporarily unavailable Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) root@ivon elephant $ cifsmount //elephant.nexim.com/gfannes home -o user=gfannes Password: root@ivon elephant $   **part from /var/log/syslog*** Mar 30 11:10:31 ivon kernel:  CIFS VFS: Zero length receive when expecting 15573 Mar 30 11:10:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:get_peer_addr(978) Mar 30 11:11:00 ivon smbd[5726]: [2005/03/30 11:11:00, 0] lib/access.c:check_access(328) Mar 30 11:11:00 ivon smbd[5726]:   Denied connection from  (192.168.240.9) Mar 30 11:11:00 ivon smbd[5725]:   getpeername failed. Error was Transport endpoint is not connected Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:get_peer_addr(978) Mar 30 11:11:00 ivon smbd[5725]:   getpeername failed. Error was Transport endpoint is not connected Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/access.c:check_access(328) Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:get_peer_addr(978) Mar 30 11:11:00 ivon smbd[5725]:   getpeername failed. Error was Transport endpoint is not connected Mar 30 11:11:00 ivon smbd[5725]:   Denied connection from  (0.0.0.0) Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:get_peer_addr(978) Mar 30 11:11:00 ivon smbd[5725]:   getpeername failed. Error was Transport endpoint is not connected Mar 30 11:11:00 ivon smbd[5725]:   Connection denied from 0.0.0.0 Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:write_socket_data(413) Mar 30 11:11:00 ivon smbd[5725]:   write_socket_data: write failure. Error = Connection reset by peer Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:write_socket(438) Mar 30 11:11:00 ivon smbd[5725]:   write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection reset by peer Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:send_smb(630) Mar 30 11:11:00 ivon smbd[5725]:   Error writing 5 bytes to client. -1. (Connection reset by peer) Mar 30 11:13:31 ivon kernel:  CIFS VFS: Zero length receive when expecting 15841 Mar 30 11:13:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:16:31 ivon kernel:  CIFS VFS: Zero length receive when expecting 16109 Mar 30 11:16:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:16:31 ivon kernel:  CIFS VFS: Error 0xffffff90 or on cifs_get_inode_info in lookup Mar 30 11:19:31 ivon kernel:  CIFS VFS: Zero length receive when expecting 16377 Mar 30 11:19:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:21:30 ivon kernel:  CIFS VFS: No task to wake, unknown frame rcvd! Mar 30 11:21:30 ivon kernel: Mar 30 11:22:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:22:31 ivon kernel:  CIFS VFS: Error 0xffffff90 or on cifs_get_inode_info in lookup _______________________________________________ linux-cifs-client mailing list linux-cifs-client@xxxxxxxxxxxxxxx https://lists.samba.org/mailman/listinfo/linux-cifs-client

Previous Message by Thread: click to view message preview

Multiple cifs-mounts from same Windows server to same linux client

Hi, is it possible to mount several Windows-shares of the same Windows-server for different users? For the first mount mount.cifs returns with no errors and the mount is o.k. If I try to mount a different share from the same server to the same client, mount.cifs returns with error: vmlin2 cifs # /bin/mount -t cifs //zwo222-fs1.ds.fh-kl.de/axki0001$ /home/axki0001/windows -o username=axki0001 Password: mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) and the previous mount disappears in the df-listing and is unusable, but still apears in the mount-listing. In /var/log/messages I got: Mar 30 17:22:41 vmlin2 CIFS VFS: Send error in SessSetup = -13 Mar 30 17:22:41 vmlin2 CIFS VFS: cifs_mount failed w/return code = -13 Mar 30 17:23:30 vmlin2 CIFS VFS: Send error in QFSInfo = -13 We are using: vmlin2 cifs # mount.cifs -V mount.cifs version: 1.5 vmlin2 cifs # uname -a Linux vmlin2 2.6.11-gentoo-r3 #1 SMP Wed Mar 30 09:00:44 CEST 2005 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux Any Ideas? -- Wilhelm pgp9QnGeusLwu.pgp Description: PGP signature _______________________________________________ linux-cifs-client mailing list linux-cifs-client@xxxxxxxxxxxxxxx https://lists.samba.org/mailman/listinfo/linux-cifs-client

Next Message by Thread: click to view message preview

multiple cifs mounts cause lock after IP adress change

Hello, we have a Dell PowerVault (elephant.nexim.com) at work that we use as file server. I connect from my linux box (ivon) to this machine to mount 3 different shares. Everything went well until our sysadmins decided to give our machines new IP addresses (because we switched from internet provider). >From then on, I get a “resource temporarily unavailable” error when I try to mount the third share. If I try mounting again, it works fine. First, I thought there was a problem with the third share, but reversing the mount order results in the same strange behaviour that was not present before the IP move.   What is worse, after a few hours, these shares seem to get locked (an “ls” command does not return, “df” does not return, but the rest of the machine still works fine). Hereunder, you can find first the mount commands I use, indicating the mount errors. Next is a part of /var/log/syslog when these shares got stuck.   Do you have any idea what is causing these errors or how I can prevent them. Currently, I am running kernel 2.6.10-rc2 (I am compiling 2.6.11.6 at the moment of writing), mount.cifs 1.5 and samba 3.0.4 on a slackware 10.0 32-bit box. Greetings, Geert Fannes.   **mount commands** root@ivon elephant $ cifsmount //elephant.nexim.com/gfannes home -o user=gfannes Password: root@ivon elephant $ cifsmount //elephant.nexim.com/Projects projects -o user=gfannes Password: root@ivon elephant $ cifsmount //elephant.nexim.com/transfer transfer -o user=gfannes Password: mount error 11 = Resource temporarily unavailable Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) root@ivon elephant $ cifsmount //elephant.nexim.com/transfer transfer -o user=gfannes Password: root@ivon elephant $ umount home root@ivon elephant $ umount projects root@ivon elephant $ umount transfer root@ivon elephant $ cifsmount //elephant.nexim.com/transfer transfer -o user=gfannes Password: root@ivon elephant $ cifsmount //elephant.nexim.com/Projects projects -o user=gfannes Password: root@ivon elephant $ cifsmount //elephant.nexim.com/gfannes home -o user=gfannes Password: mount error 11 = Resource temporarily unavailable Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) root@ivon elephant $ cifsmount //elephant.nexim.com/gfannes home -o user=gfannes Password: root@ivon elephant $   **part from /var/log/syslog*** Mar 30 11:10:31 ivon kernel:  CIFS VFS: Zero length receive when expecting 15573 Mar 30 11:10:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:get_peer_addr(978) Mar 30 11:11:00 ivon smbd[5726]: [2005/03/30 11:11:00, 0] lib/access.c:check_access(328) Mar 30 11:11:00 ivon smbd[5726]:   Denied connection from  (192.168.240.9) Mar 30 11:11:00 ivon smbd[5725]:   getpeername failed. Error was Transport endpoint is not connected Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:get_peer_addr(978) Mar 30 11:11:00 ivon smbd[5725]:   getpeername failed. Error was Transport endpoint is not connected Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/access.c:check_access(328) Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:get_peer_addr(978) Mar 30 11:11:00 ivon smbd[5725]:   getpeername failed. Error was Transport endpoint is not connected Mar 30 11:11:00 ivon smbd[5725]:   Denied connection from  (0.0.0.0) Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:get_peer_addr(978) Mar 30 11:11:00 ivon smbd[5725]:   getpeername failed. Error was Transport endpoint is not connected Mar 30 11:11:00 ivon smbd[5725]:   Connection denied from 0.0.0.0 Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:write_socket_data(413) Mar 30 11:11:00 ivon smbd[5725]:   write_socket_data: write failure. Error = Connection reset by peer Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:write_socket(438) Mar 30 11:11:00 ivon smbd[5725]:   write_socket: Error writing 5 bytes to socket 5: ERRNO = Connection reset by peer Mar 30 11:11:00 ivon smbd[5725]: [2005/03/30 11:11:00, 0] lib/util_sock.c:send_smb(630) Mar 30 11:11:00 ivon smbd[5725]:   Error writing 5 bytes to client. -1. (Connection reset by peer) Mar 30 11:13:31 ivon kernel:  CIFS VFS: Zero length receive when expecting 15841 Mar 30 11:13:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:16:31 ivon kernel:  CIFS VFS: Zero length receive when expecting 16109 Mar 30 11:16:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:16:31 ivon kernel:  CIFS VFS: Error 0xffffff90 or on cifs_get_inode_info in lookup Mar 30 11:19:31 ivon kernel:  CIFS VFS: Zero length receive when expecting 16377 Mar 30 11:19:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:21:30 ivon kernel:  CIFS VFS: No task to wake, unknown frame rcvd! Mar 30 11:21:30 ivon kernel: Mar 30 11:22:31 ivon kernel:  CIFS VFS: No response buffer Mar 30 11:22:31 ivon kernel:  CIFS VFS: Error 0xffffff90 or on cifs_get_inode_info in lookup _______________________________________________ linux-cifs-client mailing list linux-cifs-client@xxxxxxxxxxxxxxx https://lists.samba.org/mailman/listinfo/linux-cifs-client
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by