[Samba] Samba 3.6.3 and NT_STATUS_INVALID_PARAMETER

ivenhov iwan.daniel at gmail.com
Tue Feb 4 09:43:38 MST 2014


I see strange errors when samba client tries to shrink file to 0 bytes.
Samba runs on Ubuntu 12.04, client also Ubuntu.
Samba sits on top of POSIX file system (FUSE implementation). I can see
truncate is called correctly and no
error is returned from my implementation. Any ideas?

[2014/02/04 12:34:49.806813,  3] smbd/process.c:1467(switch_message)
  switch message SMBtrans2 (pid 28426) conn 0x7fa636791580
[2014/02/04 12:34:49.806835,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2014/02/04 12:34:49.806860,  3]
smbd/trans2.c:8049(call_trans2setfilepathinfo)
  call_trans2setfilepathinfo(8)
bw-gen/node93-ae945955-8d98-11e3-8969-d10c885bfb91 (fnum 16721)
info_level=1020 totdata=8
[2014/02/04 12:34:49.806883,  3] smbd/trans2.c:7626(smbd_do_setfilepathinfo)
  smbd_do_setfilepathinfo:
bw-gen/node93-ae945955-8d98-11e3-8969-d10c885bfb91 (fnum 16721)
info_level=1020 totdata=8
[2014/02/04 12:34:49.806904, 10]
smbd/trans2.c:6728(smb_set_file_end_of_file_info)
  smb_set_file_end_of_file_info: Set end of file info for file
bw-gen/node93-ae945955-8d98-11e3-8969-d10c885bfb91 to 0
[2014/02/04 12:34:49.806928,  6] smbd/trans2.c:5622(smb_set_file_size)
  smb_set_file_size: size: 0 t2_rep: params_sent_thistime = 2,
data_sent_thistime = 0, useable_space = 16408
[2014/02/04 12:34:49.806950,  9] smbd/trans2.c:943(send_trans2_replies)
  t2_rep: params_to_send = 2, data_to_send = 0, paramsize = 2, datasize = 0
[2014/02/04 12:34:49.806970,  5] lib/util.c:332(show_msg)
[2014/02/04 12:34:49.806981,  5] lib/util.c:342(show_msg)
  size=58
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=128
  smb_flg2=49155
  smb_tid=1
  smb_pid=30167
  smb_uid=100
  smb_mid=31215
  smt_wct=10
  smb_vwv[ 0]=    2 (0x2)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=    2 (0x2)
  smb_vwv[ 4]=   56 (0x38)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=    0 (0x0)
  smb_vwv[ 7]=    0 (0x0)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=    0 (0x0)
  smb_bcc=3
[2014/02/04 12:34:49.807154, 10] ../lib/util/util.c:415(dump_data)
  [0000] 00 00 00                                          ... 
[2014/02/04 12:34:49.807499, 10]
lib/util_sock.c:519(read_smb_length_return_keepalive)
  got smb length of 174
[2014/02/04 12:34:49.807550,  6] smbd/process.c:1660(process_smb)
  got message type 0x0 of len 0xae
[2014/02/04 12:34:49.807573,  3] smbd/process.c:1662(process_smb)
  Transaction 115 of length 178 (0 toread)
[2014/02/04 12:34:49.807593,  5] lib/util.c:332(show_msg)
[2014/02/04 12:34:49.807604,  5] lib/util.c:342(show_msg)
  size=174
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=0
  smb_flg2=49153
  smb_tid=1
  smb_pid=30167
  smb_uid=100
  smb_mid=31216
  smt_wct=15
  smb_vwv[ 0]=    6 (0x6)
  smb_vwv[ 1]=  100 (0x64)
  smb_vwv[ 2]=    2 (0x2)
  smb_vwv[ 3]= 1000 (0x3E8)
  smb_vwv[ 4]=    0 (0x0)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=    0 (0x0)
  smb_vwv[ 7]=    0 (0x0)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=    6 (0x6)
  smb_vwv[10]=   68 (0x44)
  smb_vwv[11]=  100 (0x64)
  smb_vwv[12]=   74 (0x4A)
  smb_vwv[13]=    1 (0x1)
  smb_vwv[14]=    8 (0x8)
  smb_bcc=109
[2014/02/04 12:34:49.807816, 10] ../lib/util/util.c:415(dump_data)
  [0000] 00 00 00 51 41 00 02 00   00 FF FF FF FF FF FF FF   ...QA...
........
  [0010] FF FF FF FF FF FF FF FF   FF 9F 29 A5 79 A5 21 CF   ........
..).y.!.
  [0020] 01 FF FF FF FF FF FF FF   FF 9F 29 A5 79 A5 21 CF   ........
..).y.!.
  [0030] 01 FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF   ........
........
  [0040] FF 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00   ........
........
  [0050] 00 00 00 00 00 00 00 00   00 00 00 00 00 FF FF FF   ........
........
  [0060] FF FF FF FF FF 00 00 00   00 00 00 00 00           ........ .....
[2014/02/04 12:34:49.808034,  3] smbd/process.c:1467(switch_message)
  switch message SMBtrans2 (pid 28426) conn 0x7fa636791580
  
  
  
  
  
[2014/02/04 12:34:49.808075,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2014/02/04 12:34:49.808110,  3]
smbd/trans2.c:8049(call_trans2setfilepathinfo)
  call_trans2setfilepathinfo(8)
bw-gen/node93-ae945955-8d98-11e3-8969-d10c885bfb91 (fnum 16721)
info_level=512 totdata=100
[2014/02/04 12:34:49.808142,  3] smbd/trans2.c:7626(smbd_do_setfilepathinfo)
  smbd_do_setfilepathinfo:
bw-gen/node93-ae945955-8d98-11e3-8969-d10c885bfb91 (fnum 16721)
info_level=512 totdata=100
[2014/02/04 12:34:49.808172, 10] smbd/trans2.c:6898(smb_set_file_unix_basic)
  smb_set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC: name =
bw-gen/node93-ae945955-8d98-11e3-8969-d10c885bfb91 size = 0, uid =
4294967295, gid = 4294967295, raw perms = 037777777777
  
  
[2014/02/04 12:34:49.808205,  6] smbd/trans2.c:5622(smb_set_file_size)
  smb_set_file_size: size: 0 smb_set_filetime: actime: Thu Jan  1 00:59:59
1970
  
   smb_set_filetime: modtime: Tue Feb  4 12:34:41 2014
  
   smb_set_filetime: ctime: Thu Jan  1 01:00:00 1970
  
   smb_set_file_time: createtime: Thu Jan  1 01:00:00 1970
  
   smb_set_file_time: setting utimes to modified values.
   
   
[2014/02/04 12:34:49.808328,  6] smbd/dosmode.c:953(file_ntimes)
  file_ntime: actime: Thu Jan  1 00:59:59 1970
[2014/02/04 12:34:49.808358,  6] smbd/dosmode.c:955(file_ntimes)
  file_ntime: modtime: Tue Feb  4 12:34:41 2014
[2014/02/04 12:34:49.808387,  6] smbd/dosmode.c:957(file_ntimes)
  file_ntime: ctime: Thu Jan  1 01:00:00 1970
[2014/02/04 12:34:49.808417,  6] smbd/dosmode.c:959(file_ntimes)
  file_ntime: createtime: Thu Jan  1 01:00:00 1970
  
  
  
  
[2014/02/04 12:34:49.808465, 10] smbd/notify_internal.c:930(notify_trigger)
  notify_trigger called action=0x3, filter=0x10,
path=/tmp/test-12_13/bw-gen/node93-ae945955-8d98-11e3-8969-d10c885bfb91
[2014/02/04 12:34:49.808504,  3] smbd/error.c:81(error_packet_set)
  error packet at smbd/trans2.c(8086) cmd=50 (SMBtrans2)
NT_STATUS_INVALID_PARAMETER





--
View this message in context: http://samba.2283325.n4.nabble.com/Samba-3-6-3-and-NT-STATUS-INVALID-PARAMETER-tp4660300.html
Sent from the Samba - General mailing list archive at Nabble.com.


More information about the samba mailing list