svn commit: samba r17896 - in branches/SAMBA_3_0/source/smbd: .

vlendec at samba.org vlendec at samba.org
Mon Aug 28 18:25:55 GMT 2006


Author: vlendec
Date: 2006-08-28 18:25:55 +0000 (Mon, 28 Aug 2006)
New Revision: 17896

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

Log:
Reformatting. I did not want to do it anymore, but these ones looked just
silly :-)

Volker


Modified:
   branches/SAMBA_3_0/source/smbd/oplock_linux.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/oplock_linux.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/oplock_linux.c	2006-08-28 18:21:21 UTC (rev 17895)
+++ branches/SAMBA_3_0/source/smbd/oplock_linux.c	2006-08-28 18:25:55 UTC (rev 17896)
@@ -89,7 +89,8 @@
 	header.pid = 0;
 
 	if (capget(&header, &data) == -1) {
-		DEBUG(3,("Unable to get kernel capabilities (%s)\n", strerror(errno)));
+		DEBUG(3,("Unable to get kernel capabilities (%s)\n",
+			 strerror(errno)));
 		return;
 	}
 
@@ -156,15 +157,18 @@
 static BOOL linux_set_kernel_oplock(files_struct *fsp, int oplock_type)
 {
 	if (linux_setlease(fsp->fh->fd, F_WRLCK) == -1) {
-		DEBUG(3,("linux_set_kernel_oplock: Refused oplock on file %s, fd = %d, dev = %x, \
-inode = %.0f. (%s)\n",
+		DEBUG(3,("linux_set_kernel_oplock: Refused oplock on file %s, "
+			 "fd = %d, dev = %x, inode = %.0f. (%s)\n",
 			 fsp->fsp_name, fsp->fh->fd, 
-			 (unsigned int)fsp->dev, (double)fsp->inode, strerror(errno)));
+			 (unsigned int)fsp->dev, (double)fsp->inode,
+			 strerror(errno)));
 		return False;
 	}
 	
-	DEBUG(3,("linux_set_kernel_oplock: got kernel oplock on file %s, dev = %x, inode = %.0f, file_id = %lu\n",
-		  fsp->fsp_name, (unsigned int)fsp->dev, (double)fsp->inode, fsp->fh->file_id));
+	DEBUG(3,("linux_set_kernel_oplock: got kernel oplock on file %s, "
+		 "dev = %x, inode = %.0f, file_id = %lu\n",
+		  fsp->fsp_name, (unsigned int)fsp->dev, (double)fsp->inode,
+		 fsp->fh->file_id));
 
 	return True;
 }
@@ -181,8 +185,9 @@
 		 * oplock state of this file.
 		 */
 		int state = fcntl(fsp->fh->fd, F_GETLEASE, 0);
-		dbgtext("linux_release_kernel_oplock: file %s, dev = %x, inode = %.0f file_id = %lu has kernel \
-oplock state of %x.\n", fsp->fsp_name, (unsigned int)fsp->dev,
+		dbgtext("linux_release_kernel_oplock: file %s, dev = %x, "
+			"inode = %.0f file_id = %lu has kernel oplock state "
+			"of %x.\n", fsp->fsp_name, (unsigned int)fsp->dev,
                         (double)fsp->inode, fsp->fh->file_id, state );
 	}
 
@@ -191,10 +196,12 @@
 	 */
 	if (linux_setlease(fsp->fh->fd, F_UNLCK) == -1) {
 		if (DEBUGLVL(0)) {
-			dbgtext("linux_release_kernel_oplock: Error when removing kernel oplock on file " );
-			dbgtext("%s, dev = %x, inode = %.0f, file_id = %lu. Error was %s\n",
-				fsp->fsp_name, (unsigned int)fsp->dev, 
-				(double)fsp->inode, fsp->fh->file_id, strerror(errno) );
+			dbgtext("linux_release_kernel_oplock: Error when "
+				"removing kernel oplock on file " );
+			dbgtext("%s, dev = %x, inode = %.0f, file_id = %lu. "
+				"Error was %s\n", fsp->fsp_name,
+				(unsigned int)fsp->dev, (double)fsp->inode,
+				fsp->fh->file_id, strerror(errno) );
 		}
 	}
 }



More information about the samba-cvs mailing list