VFS: hocking close call ... (Samba 2.2.2)
Rainer Link
link at father.foo.fh-furtwangen.de
Thu Apr 25 06:04:01 GMT 2002
Rainer Link schrieb:
> I have a VFS-related question. My current (somehwat ugly)
> "just-for-debugging" code looks like this:
> int vscan_close(struct files_struct *fsp, int fd)
> {
[..]
> }
>
> Unfortunately, fsp->fsp_name is always NULL. Here's the snippet from
[..]
Actually, just for the record. This happens, if -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 is missing in the Makefile on a system, which has
LFS support :) With those flags added to CFLAGS, everything works as
expected.
So, let's write some code for samba-vscan to do virus scanning via close
call :)
cheers, Rainer
--
Rainer Link | Student of Computer Networking
link at suse.de | University of Applied Sciences, Furtwangen, Germany
rainer.w3.to | http://www.computer-networking.de/
More information about the samba-technical
mailing list