svn commit: samba r24272 - in branches/SAMBA_3_2/source/smbd: .

metze at samba.org metze at samba.org
Tue Aug 7 14:06:29 GMT 2007


Author: metze
Date: 2007-08-07 14:06:27 +0000 (Tue, 07 Aug 2007)
New Revision: 24272

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24272

Log:
try to fix the build on irix...

metze
Modified:
   branches/SAMBA_3_2/source/smbd/oplock_irix.c


Changeset:
Modified: branches/SAMBA_3_2/source/smbd/oplock_irix.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/oplock_irix.c	2007-08-07 13:43:02 UTC (rev 24271)
+++ branches/SAMBA_3_2/source/smbd/oplock_irix.c	2007-08-07 14:06:27 UTC (rev 24272)
@@ -96,6 +96,7 @@
 	extern int smb_read_error;
 	oplock_stat_t os;
 	char dummy;
+	struct file_id fileid;
 	files_struct *fsp;
 
 	/* Ensure we only get one call per select fd set. */
@@ -137,11 +138,14 @@
 	/*
 	 * We only have device and inode info here - we have to guess that this
 	 * is the first fsp open with this dev,ino pair.
+	 *
+	 * NOTE: this doesn't work if any VFS modules overloads
+	 *       the file_id_create() hook!
 	 */
 
-	if ((fsp = file_find_di_first(
-		     file_id_create((SMB_DEV_T)os.os_dev,
-				    (SMB_INO_T)os.os_ino))) == NULL) {
+	fileid = file_id_create_dev((SMB_DEV_T)os.os_dev,
+				    (SMB_INO_T)os.os_ino);
+	if ((fsp = file_find_di_first(fileid)) == NULL) {
 		DEBUG(0,("irix_oplock_receive_message: unable to find open "
 			 "file with dev = %x, inode = %.0f\n",
 			 (unsigned int)os.os_dev, (double)os.os_ino ));



More information about the samba-cvs mailing list