Re: Current Samba master incorrectly returns STATUS_INVALID_HANDLE on copy_chunk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is at least the log.smbd of the:
   ./src/cloner /mnt2/testfilesrc /mnt2/clone-of-testfilesrc2  (which
returned "Bad file descriptor" on the clone ioctl)
See line 4739

mounted with "posix" mount option (here is what the client mount
options defaulted to:
"rw,relatime,vers=3.1.1,cache=strict,username=testuser1,uid=0,noforceuid,gid=0,noforcegid,addr=127.0.0.1,file_mode=0755,dir_mode=0755,soft,posix,posixpaths,serverino,mapposix,noperm,reparse=nfs,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=60,nosharesock,actimeo=1,closetimeo=1"


The smb.conf entries for the share are:

[test]
   comment = Samba share for testing
   browseable = yes
   path = /shares/test
   guest ok = yes
   read only = no
   ea support = yes
   create mask = 0777
   directory mask = 0777
   vfs objects = acl_xattr btrfs
   map acl inherit = no
   inherit acls = no
   smb3 posix extensions = yes

On Tue, Oct 1, 2024 at 7:54 AM Ralph Boehme <slow@xxxxxxxxx> wrote:
>
> Hi Steve
>
> On 9/30/24 10:13 PM, Steve French via samba-technical wrote:
> > I noticed that Samba master if mount with "posix" then
> > FSCTL_SRV_COPYCHUNK_WRITE will return "STATUS_INVALID_HANDLE" where
> > the same thing works fine if you mount without "posix" (so looks like
> >
> > An easy repro is with the xfstest tool "cloner"
> >
> > e.g ./src/cloner /mnt/aio-testfile /mnt/clone-of-aio-testfile
> >
> > It works fine to other servers (e.g. to ksmbd with or without "posix"
> > mount option)
>
> no idea what could be causing this.
>
> Can you please get us a Samba log with level 10 plus strace -vtt -p PID
> -o strace.txt of the smbd of the connection?
>
> Thanks!
> -slow



-- 
Thanks,

Steve

Attachment: log.smbd
Description: Binary data


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux