We have been using samba since 1995 and have found it superb, Thanks to
all. Recently
I built Samba1.19.17alpha4 on a DECstation 5000 running Ultrix 4.4 and
included -DFAST_SHARE_MODES
This results in
UIST>smbclient -L UIST
Session request failed (0,0) with myname=UIST destname=UIST
Unspecified error 0x0
Your server software is being unfriendly
and
ERROR smb_shm_open : mmap failed with code 22 in smb.conf
The lockfiles are held locally NOT on an NFS partition.
Error 22 = EINVAL
from manpages
[EINVAL] You did not specify either MAP_SHARED or MAP_FIXED in the
flags argument.
[EINVAL] You did not specify either PROT_READ or PROT_WRITE in the
prot
argument.
[EINVAL] The file descriptor, fd, is not a valid file descriptor for
a
character device.
This problem was previously raised in DIgest 1327> Date: Mon, 16 Jun 1997 01:51:52 GMT
> From: David Binette <dbin@sce.de>
> To: samba@arvidsjaur.anu.edu.au
> Subject: smb_shm_open mmap failed with code 22
> Message-ID: <33a899ea.67902989@mail.sce.de>
...> from /usr/local/samba/log/log.
> ERROR smb_shm_open : mmap failed with code 22
> ERROR smb_shm_open : mmap failed with code 22
But no-one seems to have come up with a solution, has anyone any ideas?
Dave Corsar
Roads & Transport
The Highland Council
Inverness
Scotland
Dave,
I don't have access to a DEC Ultrix4.4 machine to
test the mmap code on. The fragment of code from
shmem.c is :
smb_shm_header_p = (struct SmbShmHeader *)mmap( NULL, size, PROT_READ
|
PROT_WRITE, MAP_FILE | MAP_SHARED, smb_shm_fd, 0);
/* WARNING, smb_shm_header_p can be different for different processes
mapping the same file ! */
if (smb_shm_header_p == (struct SmbShmHeader *)(-1))
{
DEBUG(0,("ERROR smb_shm_open : mmap failed with code
%d\n",errno));
As you can see, PROT_READ,PROT_WRITE and MAP_SHARED are all
set in the call.
Can you send me a man page for mmap on DEC Ultrix 4.4 so
I can determine what may be in error with the call.
Thanks,
Jeremy Allison.
Samba Team.
Good day list readers! I have an unusual (well, for me anyway!) problem
with a first time install of Samba 1.9.17 on a Linux 1.2.8 platform named
smbsrv.
- Clean compile
- Simple smb.conf file (see attachment) with good testparm
- nmblookup -d 2 '*' |
- nmblookup -B smbsrv __SAMBA__ |
- nmblookup any_NT_or_95_Hostname | all work correctly
- smbclient -L any_host_but_Samba_box |
- smbclient '\\any_host_but_Samba_box\someshare' |
- the samba server appears in W95 and WNT nethoods but won't expand
i.e. samba server shows up in 'net view' lists but returns an
"Error 51: The specified computer is not receiving requests."
for a 'net view \\smbsrv' command.
- any attempt to use the samba's server side from the smbsrv results
in the following:
smbsrv:~$ smbclient -L smbsrv
Added interface ip=213.107.23.4 bcast=213.107.23.255 nmask=255.255.255.0
Session request failed (0,0) with myname=SMBSRV destname=SMBSRV
Unspecified error 0x0
Your server software is being unfriendly
smbsrv:~$
- A peek at the log.smb file (extract only) shows:
09/03/97 10:41:32 loaded services
09/03/97 10:41:32 becoming a daemon
bind succeeded on port 139
waiting for a connection
ERROR smb_shm_open : mmap failed with code 22
ERROR smb_shm_open : mmap failed with code 22
- The code 22 error repeats for every outside attempt to use the smb server
I've looked at the souce and found the error is coming from shmem.c, but
I'm not smart enough to figure out what it's telling me. Anyone on the
list have a possible solution? TIA
Paul F. Ryan, PPI, Allentown, PA VOICE (610-776-6152)
(ryanpf@tek-pfr.pctraining.com)
or (Paul.Ryan@USA.NET)
-------------- next part --------------
[global]
workgroup = ADMIN
;debug level = 5
comment = Samba Server
max log size = 50
short preserve case = yes
preserve case = yes
share modes = yes
security = USER
; socket options = TCP_NODELAY
;============================ Share Definitions
=============================[homes]
comment = Home Directories
browseable = no
writable = yes
; A publicly accessible directory, but read only except for users
[pub]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = no
write list = @users
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes