large file support > 2 gig

Chad samba-technical at yourmomma.myip.org
Tue Jun 12 13:42:40 GMT 2001


Michael,
Thanks for your interest in helping out...

> Samba on what?  Linux?  *BSD?  Solaris?  HP/UX?  AIX?

Linux redhat 7.1 with kernel 2.4.4-ac3

> What version Samba?

Samba version 2.2.0-alpha3, compiled from the src.rpm with the following
options in the Makefile.  The CFLAGS did not have -D_FILE_OFFSET_BITS=64
after I ran configure, but someone on this list suggested I needed to add
this for large file support.

CFLAGS=-D_FILE_OFFSET_BITS=64 -O
CPPFLAGS=-D_LARGEFILE64_SOURCE -D_GNU_SOURCE

> It's probably NOT a Samba problem, or if it is it's a problem
> with Samba recognizing the large file support on the platform you are on.

Here is some debug 10 in case that helps.  I have the entire log file in
case I excluded the important part here.

[2001/06/07 21:42:45, 5] lib/util.c:show_msg(285)
  size=41
  smb_com=0x4
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=0
  smb_flg2=0
[2001/06/07 21:42:45, 5] lib/util.c:show_msg(293)
  smb_tid=1
  smb_pid=5453
  smb_uid=0
  smb_mid=54273
  smt_wct=3
[2001/06/07 21:42:45, 5] lib/util.c:show_msg(302)
  smb_vwv[0]=4614 (0x1206)
[2001/06/07 21:42:45, 5] lib/util.c:show_msg(302)
  smb_vwv[1]=65535 (0xFFFF)
[2001/06/07 21:42:45, 5] lib/util.c:show_msg(302)
  smb_vwv[2]=65535 (0xFFFF)
[2001/06/07 21:42:45, 5] lib/util.c:show_msg(308)
  smb_bcc=0
[2001/06/07 21:42:45, 3] smbd/process.c:switch_message(650)
  switch message SMBclose (pid 7671)
[2001/06/07 21:42:45, 4] smbd/uid.c:become_user(107)
  Skipping become_user - already user
[2001/06/07 21:42:45, 3] smbd/reply.c:reply_close(2927)
  close fd=15 fnum=4614 (numopen=1)
[2001/06/07 21:42:45, 10]
smbd/oplock_linux.c:linux_release_kernel_oplock(196)
  release_kernel_oplock: file tempdir/bigfile.tar, dev = 1608, inode =
4276252 has kernel oplock state of 1.
[2001/06/07 21:42:45, 10] locking/posix.c:posix_locking_close_file(1312)
  posix_locking_close_file: file tempdir/bigfile.tar has no outstanding
locks.
[2001/06/07 21:42:45, 2] smbd/close.c:close_normal_file(160)
  chad closed file tempdir/bigfile.tar (numopen=0)
[2001/06/07 21:42:45, 5] smbd/files.c:file_free(304)
  freed files structure 4614 (0 used)
[2001/06/07 21:42:45, 5] lib/util.c:show_msg(285)
  size=35
  smb_com=0x4
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=128
  smb_flg2=1
[2001/06/07 21:42:45, 5] lib/util.c:show_msg(293)
  smb_tid=1
  smb_pid=5453
  smb_uid=0
  smb_mid=54273
  smt_wct=0
[2001/06/07 21:42:45, 5] lib/util.c:show_msg(308)
  smb_bcc=0
[2001/06/07 21:42:45, 6] lib/util_sock.c:write_socket(560)
  write_socket(11,39)
[2001/06/07 21:42:45, 6] lib/util_sock.c:write_socket(563)
  write_socket(11,39) wrote 39
[2001/06/07 21:42:50, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/06/07 21:42:50, 5] smbd/uid.c:unbecome_user(209)
  unbecome_user now uid=(0,0) gid=(0,0)
[2001/06/07 21:42:50, 2] smbd/server.c:exit_server(440)
  Closing connections
[2001/06/07 21:42:50, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/06/07 21:42:50, 5] smbd/uid.c:unbecome_user(209)
  unbecome_user now uid=(0,0) gid=(0,0)
[2001/06/07 21:42:50, 1] smbd/service.c:close_cnum(654)
  theone (32.227.12.110) closed connection to service chad
[2001/06/07 21:42:50, 3] smbd/connection.c:yield_connection(54)
  Yielding connection to chad
[2001/06/07 21:42:50, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/06/07 21:42:50, 5] smbd/uid.c:unbecome_user(209)
  unbecome_user now uid=(0,0) gid=(0,0)
[2001/06/07 21:42:50, 3] smbd/connection.c:yield_connection(54)
  Yielding connection to
[2001/06/07 21:42:50, 3] smbd/server.c:exit_server(473)
  Server exit (caught signal)


Regards, Chad





More information about the samba-technical mailing list