cifs backport is current
Steve French
smfrench at gmail.com
Mon Jul 16 20:42:12 GMT 2007
level 10 log of "rm /mnt/new-symlink-file"
got smb length of 112
got message type 0x0 of len 0x70
Transaction 53226 of length 116
size=112
smb_com=0x32
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=49153
smb_tid=1
smb_pid=28784
smb_uid=100
smb_mid=53227
smt_wct=15
smb_vwv[ 0]= 42 (0x2A)
smb_vwv[ 1]= 2 (0x2)
smb_vwv[ 2]= 2 (0x2)
smb_vwv[ 3]= 0 (0x0)
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]= 42 (0x2A)
smb_vwv[10]= 68 (0x44)
smb_vwv[11]= 2 (0x2)
smb_vwv[12]= 110 (0x6E)
smb_vwv[13]= 1 (0x1)
smb_vwv[14]= 6 (0x6)
smb_bcc=47
[000] 00 00 00 0A 02 00 00 00 00 2F 00 6E 00 65 00 77 ........ ./.n.e.w
[010] 00 2D 00 73 00 79 00 6D 00 6C 00 69 00 6E 00 6B .-.s.y.m .l.i.n.k
[020] 00 2D 00 66 00 69 00 6C 00 65 00 00 00 00 00 .-.f.i.l .e.....
switch message SMBtrans2 (pid 23814) conn 0x805907b8
change_to_user: Skipping user change - already user
unix_convert called on file "new-symlink-file"
conversion finished new-symlink-file -> new-symlink-file
call_trans2setfilepathinfo(6) new-symlink-file (fnum -1)
info_level=522 totdata=2
smb_posix_unlink: file new-symlink-file
open_file_ntcreate: fname=new-symlink-file, dos_attrs=0x0
access_mask=0x10000 share_access=0x7 create_disposition = 0x1
create_options=0x0 unix mode=0777 oplock_request=0
open_file_ntcreate: fname=new-symlink-file, after mapping access_mask=0x10000
allocated file structure 9148, fnum = 13244 (1 used)
Locking key 0608000000000000D98D080000000000
calling open_file with flags=0x0 flags2=0x0 mode=0777, access_mask =
0x10000, open_access_mask = 0x10000
stevef opened file new-symlink-file read=No write=No (numopen=1)
unparse_share_modes: del: 0, tok = 0, num: 1
print_share_mode_table: share_mode_entry[0]: pid = 23814,
share_access = 0x7, private_options = 0x0, access_mask = 0x10000, mid
= 0x0, type= 0x10, gen_id = 43168, uid = 1000, flags = 1, file_id
806:88dd9
Unlocking key 0608000000000000D98D080000000000
dos_mode: new-symlink-file
dos_mode_from_sbuf returning a
dos_mode returning a[sparse]
smb_set_file_disposition_info: file new-symlink-file, dosmode = 544,
delete_on_close = 1
set_delete_on_close: Adding delete on close flag for fnum = 13244,
file new-symlink-file
Locking key 0608000000000000D98D080000000000
Allocated locked data 0x0x80589c78
parse_share_modes: delete_on_close: 0, num_share_modes: 1
parse_share_modes: share_mode_entry[0]: pid = 23814, share_access =
0x7, private_options = 0x0, access_mask = 0x10000, mid = 0x0, type=
0x10, gen_id = 43168, uid = 1000, flags = 1, file_id 806:88dd9
unparse_share_modes: del: 1, tok = 20, num: 1
print_share_mode_table: share_mode_entry[0]: pid = 23814,
share_access = 0x7, private_options = 0x0, access_mask = 0x10000, mid
= 0x0, type= 0x10, gen_id = 43168, uid = 1000, flags = 1, file_id
806:88dd9
Unlocking key 0608000000000000D98D080000000000
Locking key 0608000000000000D98D080000000000
Allocated locked data 0x0x80591018
parse_share_modes: delete_on_close: 1, num_share_modes: 1
parse_share_modes: share_mode_entry[0]: pid = 23814, share_access =
0x7, private_options = 0x0, access_mask = 0x10000, mid = 0x0, type=
0x10, gen_id = 43168, uid = 1000, flags = 1, file_id 806:88dd9
close_remove_share_mode: file new-symlink-file. Delete on close was
set - deleting file.
push_sec_ctx(1000, 100) : sec_ctx_stack_ndx = 1
setting sec ctx (1000, 100) - sec_ctx_stack_ndx = 1
NT user token: (NULL)
UNIX token of user 1000
Primary group is 100 and contains 3 supplementary groups
Group[ 0]: 100
Group[ 1]: 16
Group[ 2]: 33
close_remove_share_mode: file new-symlink-file. Delete on close was
set and dev and/or inode does not match
close_remove_share_mode: file new-symlink-file. stored file_id
806:88dd9, stat file_id 806:88bf8
pop_sec_ctx (1000, 100) - sec_ctx_stack_ndx = 0
Unlocking key 0608000000000000D98D080000000000
stevef closed file new-symlink-file (numopen=0) NT_STATUS_OK
freed files structure 13244 (0 used)
t2_rep: params_sent_thistime = 2, data_sent_thistime = 0, useable_space = 16412
t2_rep: params_to_send = 2, data_to_send = 0, paramsize = 2, datasize = 0
size=58
smb_com=0x32
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=128
smb_flg2=49217
smb_tid=1
smb_pid=28784
smb_uid=100
smb_mid=53227
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
[000] 00 00 00 ...
Running event "idle_evt(deadtime)" 8058d450
Destroying timed event 8058d450 "idle_evt(deadtime)"
Added timed event "idle_evt(deadtime)": 805923b8
On 7/16/07, Steve French <smfrench at gmail.com> wrote:
> Yes - that worked fine. Now I can open a file again, and reproduce
> the original problem "rm -r" fails (posix unlink leaves debris around
> - in the cleanup phase of connectathon test 8 which is cleaning up 10
> symlinks ).
>
> This is easy to reproduce - create a symlink somewhere within the
> share - then try to remove it from a cifs mount with cifs 1.50 or
> greater (which uses the new posix unlink). The posix unlink succeeds
> (NT Status code is zero) but the symlink is left around. Removing a
> file works.
>
> On 7/16/07, Volker Lendecke <Volker.Lendecke at sernet.de> wrote:
> > On Mon, Jul 16, 2007 at 02:51:23PM -0500, Steve French wrote:
> > > gdb's backtrace was no more interesting than the one nicely dumped by
> > > smb_panic. The log level 10 info follows:
> >
> > Thanks :-)
> >
> > r23903 should do it I think.
> >
> > Volker
> >
> >
>
>
> --
> Thanks,
>
> Steve
>
--
Thanks,
Steve
More information about the samba-technical
mailing list