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

tridge at samba.org tridge at samba.org
Mon Jul 4 05:08:27 GMT 2005


Author: tridge
Date: 2005-07-04 05:08:27 +0000 (Mon, 04 Jul 2005)
New Revision: 8120

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

Log:
added in the newly found DOS locking error codes into the pvfs backend

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c	2005-07-04 05:07:18 UTC (rev 8119)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c	2005-07-04 05:08:27 UTC (rev 8120)
@@ -263,7 +263,7 @@
 		}
 	}
 
-	return NT_STATUS_UNSUCCESSFUL;
+	return NT_STATUS_DOS(ERRDOS, ERRcancelviolation);
 }
 
 
@@ -324,7 +324,7 @@
 	if (lck->lockx.in.mode & LOCKING_ANDX_CHANGE_LOCKTYPE) {
 		/* this seems to not be supported by any windows server,
 		   or used by any clients */
-		return NT_STATUS_UNSUCCESSFUL;
+		return NT_STATUS_DOS(ERRDOS, ERRnoatomiclocks);
 	}
 
 	if (lck->lockx.in.mode & LOCKING_ANDX_OPLOCK_RELEASE) {

Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c	2005-07-04 05:07:18 UTC (rev 8119)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c	2005-07-04 05:08:27 UTC (rev 8120)
@@ -181,5 +181,5 @@
 		}
 	}
 
-	return NT_STATUS_UNSUCCESSFUL;
+	return NT_STATUS_DOS(ERRDOS, ERRcancelviolation);
 }



More information about the samba-cvs mailing list