[Samba] disappearing directory
Michael Tokarev
mjt at tls.msk.ru
Wed Nov 13 05:04:52 UTC 2024
13.11.2024 08:00, Michael Tokarev via samba пишет:
> 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
Here's a successful chdir to another directory which works (Rossita_fixed):
[2024/11/13 08:02:16.006307, 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 [tsrv\ws\strakh\release.4\Rossita_fixed]
[2024/11/13 08:02:16.006321, 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/13 08:02:16.006346, 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 : 0xe880b8f3110a82b2 (-1693150105788841294)
data : 0x675fcee5fdca2a54 (7448899795894807124)
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/13 08:02:16.006421, 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/13 08:02:16.006431, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:1019(openat_pathref_fsp_nosymlink)
openat_pathref_fsp_nosymlink: path_in=strakh/release.4
[2024/11/13 08:02:16.006440, 5, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:78(fsp_new)
fsp_new: allocated files structure (7 used)
[2024/11/13 08:02:16.006457, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:2490(file_name_hash)
file_name_hash: /ws/ws/strakh/release.4 hash 0x21158fad
[2024/11/13 08:02:16.006469, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:1423(openat_pathref_fsp_nosymlink)
openat_pathref_fsp_nosymlink: returning strakh/release.4
[2024/11/13 08:02:16.006479, 5, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:78(fsp_new)
fsp_new: allocated files structure (8 used)
[2024/11/13 08:02:16.006489, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:2490(file_name_hash)
file_name_hash: /ws/ws/strakh/release.4/Rossita_fixed hash 0x578e5ae
[2024/11/13 08:02:16.006501, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/files.c:1604(openat_pathref_fsp_lcomp)
openat_pathref_fsp_lcomp: fsp [strakh/release.4/Rossita_fixed]: OK, fd=36
[2024/11/13 08:02:16.006511, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/open.c:6653(create_file_default)
create_file_default: access_mask = 0x1048705 file_attributes = 0x0 share_access = 0x7 create_disposition = 0x1 create_options = 0x0 oplock_request
= 0x256 private_flags = 0x0 ea_list = (nil), sd = (nil), fname = strakh/release.4/Rossita_fixed
[2024/11/13 08:02:16.006528, 10, pid=92084, effective(1000, 1000), real(1000, 0)] source3/smbd/open.c:6046(create_file_unixpath)
create_file_unixpath: access_mask = 0x100081 file_attributes = 0x0 share_access = 0x7 create_disposition = 0x1 create_options = 0x0 oplock_request
= 0x100 private_flags = 0x0 ea_list = (nil), sd = (nil), fname = strakh/release.4/Rossita_fixed.
...
More information about the samba
mailing list