Issue during SMBreadX

sandeep nag sandeepnagamalli at gmail.com
Thu Nov 29 11:45:56 MST 2012


I have added an extension structure to samba fsp(files_struct) in open()
call of
our samba plugin using VFS_ADD_FSP_EXTENSION. I access the extension
structure
in read(), write(), etc calls of the plugin by fetching the added extension
structure using
 FETCH_AND_CHECK_FSP_EXTENSION. This worked well in most of the cases. But
I am seeing a failure when "SMBreadX" call came in. When this call comes
in, it is trying to fetch the extension and see that that extension
structure not available, i.e the open() function is not executed for that
file before calling SMBreadX.

I am new to samba code, please let me know:
1. Which operations leads to SMBreadX call.
2. In which part of the code should I perform VFS_ADD_FSP_EXTENSION, such
that
   extension will be fetchable/available from SMBreadX call.


Thanks,
Sandeep


More information about the samba-technical mailing list