[Samba] disappearing directory

Michael Tokarev mjt at tls.msk.ru
Wed Nov 13 05:00:39 UTC 2024


12.11.2024 21:46, Michael Tokarev via samba wrote:

> Attached is a debug10 log with immediate attempt to chdir to
> the famous dir, "strakh/release.4/Rossita_prepare", which is
> still there but reported as non-existent.  And it is quite
> apparent that samba is trying to open just the last component
> of it, not whole path.

[2024/11/12 21:38:48.134869, 10, pid=92084, effective(1000, 1000), real(1000, 0), class=smb2] source3/smbd/smb2_create.c:812(smbd_smb2_create_send)
   smbd_smb2_create_send: name [strakh\release.4\Rossita_prepare]
[2024/11/12 21:38:48.134888, 10, pid=92084, effective(1000, 1000), real(1000, 0), class=smb2] 
source3/smbd/smb2_create.c:1449(smbd_smb2_create_before_exec)
   Got lease request size 52
[2024/11/12 21:38:48.134941,  1, pid=92084, effective(1000, 1000), real(1000, 0), class=rpc_parse] 
source3/smbd/smb2_create.c:1451(smbd_smb2_create_before_exec)
        state->lease_ptr: struct smb2_lease
           lease_key: struct smb2_lease_key
               data: ARRAY(2)
                   data                     : 0x54b9ee5bc130d97e (6105172847728056702)
                   data                     : 0xfc31b6393c84ef36 (-274237745348153546)
           lease_state              : 0x00000007 (7)
                  1: SMB2_LEASE_READ
                  1: SMB2_LEASE_HANDLE
                  1: SMB2_LEASE_WRITE
           lease_flags              : 0x00000000 (0)
           lease_duration           : 0x0000000000000000 (0)
           parent_lease_key: struct smb2_lease_key
               data: ARRAY(2)
                   data                     : 0x0000000000000000 (0)
                   data                     : 0x0000000000000000 (0)
           lease_version            : 0x0002 (2)
           lease_epoch              : 0x0000 (0)
[2024/11/12 21:38:48.135078, 10, pid=92084, effective(1000, 1000), real(1000, 0), class=smb2] source3/smbd/smb2_create.c:948(smbd_smb2_create_send)
   smbd_smb2_create_send: open execution phase
[2024/11/12 21:38:48.135098, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:563(openat_pathref_fsp)
   openat_pathref_fsp: smb_fname [.]
[2024/11/12 21:38:48.135114, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:463(openat_pathref_fullname)
   openat_pathref_fullname: smb_fname [.]
[2024/11/12 21:38:48.135130,  5, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:78(fsp_new)
   fsp_new: allocated files structure (9 used)
[2024/11/12 21:38:48.135148, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:2490(file_name_hash)
   file_name_hash: /ws/ws/. hash 0x3eac6da4
[2024/11/12 21:38:48.135180, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/open.c:926(fd_openat)
   fd_openat: name ., flags = 04000 mode = 00, fd = 13
[2024/11/12 21:38:48.135197, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:532(openat_pathref_fullname)
   openat_pathref_fullname: fsp [.]: OK
[2024/11/12 21:38:48.135214,  5, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:78(fsp_new)
   fsp_new: allocated files structure (10 used)
[2024/11/12 21:38:48.135230, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:2490(file_name_hash)
   file_name_hash: /ws/ws/Rossita_prepare hash 0xcf37db52

So.. where it is losing the subdir portion?

Thanks,

/mjt



More information about the samba mailing list