svn commit: samba r3373 - in branches/SAMBA_4_0/source/ntvfs/posix: .

tridge at samba.org tridge at samba.org
Fri Oct 29 21:52:49 GMT 2004


Author: tridge
Date: 2004-10-29 21:52:49 +0000 (Fri, 29 Oct 2004)
New Revision: 3373

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

Log:
added better error reporting in pvfs_open


Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-10-29 21:51:36 UTC (rev 3372)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-10-29 21:52:49 UTC (rev 3373)
@@ -27,8 +27,8 @@
   create file handles with convenient numbers for sniffers
 */
 #define PVFS_MIN_FILE_FNUM 0x100
-#define PVFS_MIN_NEW_FNUM 0x200
-#define PVFS_MIN_DIR_FNUM 0x1000
+#define PVFS_MIN_NEW_FNUM  0x200
+#define PVFS_MIN_DIR_FNUM  0x300
 
 /*
   find open file handle given fnum
@@ -64,8 +64,8 @@
 
 	if (f->create_options & NTCREATEX_OPTIONS_DELETE_ON_CLOSE) {
 		if (rmdir(f->name->full_name) != 0) {
-			DEBUG(0,("pvfs_close: failed to rmdir '%s'\n", 
-				 f->name->full_name));
+			DEBUG(0,("pvfs_close: failed to rmdir '%s' - %s\n", 
+				 f->name->full_name, strerror(errno)));
 		}
 	}
 
@@ -214,8 +214,8 @@
 
 	if (f->create_options & NTCREATEX_OPTIONS_DELETE_ON_CLOSE) {
 		if (unlink(f->name->full_name) != 0) {
-			DEBUG(0,("pvfs_close: failed to delete '%s'\n", 
-				 f->name->full_name));
+			DEBUG(0,("pvfs_close: failed to delete '%s' - %s\n", 
+				 f->name->full_name, strerror(errno)));
 		}
 	}
 



More information about the samba-cvs mailing list