Samba 4 diffs for building under HP-UX 11.11 (in gcc
environment)
Don McCall
donmccall1 at yahoo.com
Mon Aug 22 18:50:34 GMT 2005
tridge at samba.org wrote:
We still have the 'use mmap = yes/no' option, but it isn't hooked into
the tdb open code any more, so tdb uses mmap anyway even if set to no.
That's certainly a bug, but I don't think that explains the
results. Can you double check me on this by manually editing
include/config.h and removing the HAVE_MMAP line? Alternatively,
change the two #ifdef HAVE_MMAP lines in lib/tdb/common/tdb.c to be
XX_HAVE_MMAP_XX and test with that.
> I'll try to track down via smbtorture whether we're talking client
> or server here, hopefully early next week, or this weekend.
ok, thanks!
If you get totally stuck, is there some way you can let me ssh into
this box, or another similar HPUX box?
Cheers, Tridge
Hi Tridge,
I'm having some issues trying to build without mmap. Tried undeffing HAVE_MMAP in config.h
as well as XX_HAVE_MMAP_XX in the common/tdb.c, and everything compiles and builds fine, but when I make all, and try to start samba, I get the following.
# bin/smbd -M single
smbd version 3.9.0-SVN-build-9390 started.
Copyright Andrew Tridgell and the Samba Team 1992-2005
# ldb error (IO Error) occurred searching for modules, bailing out
Unable to load modules for '/usr/local/samba/private/sam.ldb'
I'm not convinced that the mmap is really relevant at this point anyway, since I can create a failure easily via smbclient just copying a single file onto a samba 4 share (without the HAVE_MMAP undefs):
smb.conf:
[globals]
netbios name = hpntc17r
workgroup = KAT1
realm = KAT1.MCCALL.COM
domain master = yes
domain logons = yes
name resolve order = host
interfaces = 15.13.119.169/255.255.248.0
bind interfaces onfiltered= yes
[test]
path = /usr/local/samba/tmp
read onfiltered= no
ntvfs handler = posix
posix:sharedelay = 100000
posix:eadb = /usr/local/samba/lockdir/eadb.tdb
# /usr/local/samba/sbin/smbd -M single
smbd version 3.9.0-SVN-build-UNKNOWN started.
Copyright Andrew Tridgell and the Samba Team 1992-2005
# /usr/local/samba/bin/smbclient //hpntc17r/test -Uadministrator
dos charset 'CP850' unavailable - using ASCII
Password for [KAT1\administrator]:
smb: \> put /etc/group testgroup
smb: \> dir
. D 0 Mon Aug 22 11:35:31 2005
.. D 0 Thu Aug 11 12:37:45 2005
testgroup A 134217957 Mon Aug 22 11:35:31 2005
33728 blocks of size 512. 3527 blocks available
smb: \> put /etc/passwd testpass
smb: \> dir
. D 0 Mon Aug 22 11:36:55 2005
.. D 0 Thu Aug 11 12:37:45 2005
testgroup A 134217957 Mon Aug 22 11:35:31 2005
testpass A 134218325 Mon Aug 22 11:36:55 2005
33728 blocks of size 512. 3527 blocks available
smb: \> quit
# ll /usr/local/samba/tmp
total 32
-rw------- 1 root sys 134217957 Aug 22 11:35 testgroup
-rw------- 1 root sys 134218325 Aug 22 11:36 testpass
#
# ll /etc/group
-r--r--r-- 1 bin bin 198 Aug 11 12:45 /etc/group
# ll /etc/passwd
-r--r--r-- 1 root sys 566 Aug 12 09:47 /etc/passwd
#
*****************************************************************************
NOTE that the file size listed is always 0x800001F PLUS the actual original file size....
Did a similar test copying a windows file from a winxp client to the same samba share, with the same results, the resulting file on the samba share was 0x800001F bytes plus the actual original file share.
NOTE that if I copy a zero length file, though, either from a winXP client or using smbclient, that it DOES show up as zero length...
I need to keep poking at this, if you don't mind.
I have some ideas regarding the bad file size issue, but if this new data suggests anything to you, please let me know!
If you have anything that would explain the behavior that I'm seeing in trying to NOT use mmap, I would appreciate it for future efforts...
Finally, I have gotten the lab to 'donate' a c-class HPUX 11.11 box for me to configure and add to the Samba Build farm. I just got it inhouse today. It'll take me a bit, but I plan on adding it to the build farm directly off my public internet connection (all other machines are inside the HP firewall, and access is completely restricted to a multi pass vpn solution, so I can't get you on any of those boxes). Once I do that, I should be able to get you ssh access to that box; I'll keep you posted.
Thanks again for all your help,
Don
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the samba-technical
mailing list