After upgrading to FreeBSD 11.0 and changing source code to use the new version 
of “struct smbcmd”, some commands are not working as documented, specifically 
those that read data.

As an example, SMB_READW is documented as returning the word read from the 
device in rdata.word.  However, this doesn’t happen, I think because the ioctl 
request value is defined using _IOW(), so the kernel doesn’t copy the data it 
read back out.

In prior versions, the structure had only a pointer to the data, and the smb.c 
code used copyout() to transfer the data back to userland.

As a temporary work-around, we added code to set rbuf to point to rdata.word 
and rcount to two.

Thanks,
lew

_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to