diff options
Diffstat (limited to 'docs/htmldocs/Samba3-HOWTO/locking.html')
-rw-r--r-- | docs/htmldocs/Samba3-HOWTO/locking.html | 270 |
1 files changed, 135 insertions, 135 deletions
diff --git a/docs/htmldocs/Samba3-HOWTO/locking.html b/docs/htmldocs/Samba3-HOWTO/locking.html index 825ad3cccc..1183d3eb78 100644 --- a/docs/htmldocs/Samba3-HOWTO/locking.html +++ b/docs/htmldocs/Samba3-HOWTO/locking.html @@ -1,19 +1,19 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 17. File and Record Locking</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.72.0"><link rel="start" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="AccessControls.html" title="Chapter 16. File, Directory, and Share Access Controls"><link rel="next" href="securing-samba.html" title="Chapter 18. Securing Samba"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 17. File and Record Locking</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="AccessControls.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="securing-samba.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="locking"></a>Chapter 17. File and Record Locking</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Jeremy</span> <span class="surname">Allison</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a href="mailto:jra@samba.org">jra@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email"><<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Eric</span> <span class="surname">Roseme</span></h3><div class="affiliation"><span class="orgname">HP Oplocks Usage Recommendations Whitepaper<br></span><div class="address"><p><code class="email"><<a href="mailto:eric.roseme@hp.com">eric.roseme@hp.com</a>></code></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="locking.html#id385057">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="locking.html#id385144">Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="locking.html#id385372">Opportunistic Locking Overview</a></span></dt></dl></dd><dt><span class="sect1"><a href="locking.html#id386203">Samba Oplocks Control</a></span></dt><dd><dl><dt><span class="sect2"><a href="locking.html#id386275">Example Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="locking.html#id386670">MS Windows Oplocks and Caching Controls</a></span></dt><dd><dl><dt><span class="sect2"><a href="locking.html#id386822">Workstation Service Entries</a></span></dt><dt><span class="sect2"><a href="locking.html#id386841">Server Service Entries</a></span></dt></dl></dd><dt><span class="sect1"><a href="locking.html#id386898">Persistent Data Corruption</a></span></dt><dt><span class="sect1"><a href="locking.html#id386917">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="locking.html#id386968">locking.tdb Error Messages</a></span></dt><dt><span class="sect2"><a href="locking.html#id386996">Problems Saving Files in MS Office on Windows XP</a></span></dt><dt><span class="sect2"><a href="locking.html#id387019">Long Delays Deleting Files over Network with XP SP1</a></span></dt></dl></dd><dt><span class="sect1"><a href="locking.html#id387048">Additional Reading</a></span></dt></dl></div><p> -<a class="indexterm" name="id385048"></a> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 17. File and Record Locking</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"><link rel="start" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="AccessControls.html" title="Chapter 16. File, Directory, and Share Access Controls"><link rel="next" href="securing-samba.html" title="Chapter 18. Securing Samba"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 17. File and Record Locking</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="AccessControls.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="securing-samba.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="locking"></a>Chapter 17. File and Record Locking</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Jeremy</span> <span class="surname">Allison</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jra@samba.org">jra@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Eric</span> <span class="surname">Roseme</span></h3><div class="affiliation"><span class="orgname">HP Oplocks Usage Recommendations Whitepaper<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:eric.roseme@hp.com">eric.roseme@hp.com</a>></code></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="locking.html#id2637617">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="locking.html#id2637714">Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="locking.html#id2637972">Opportunistic Locking Overview</a></span></dt></dl></dd><dt><span class="sect1"><a href="locking.html#id2638946">Samba Oplocks Control</a></span></dt><dd><dl><dt><span class="sect2"><a href="locking.html#id2639041">Example Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="locking.html#id2639454">MS Windows Oplocks and Caching Controls</a></span></dt><dd><dl><dt><span class="sect2"><a href="locking.html#id2639641">Workstation Service Entries</a></span></dt><dt><span class="sect2"><a href="locking.html#id2639663">Server Service Entries</a></span></dt></dl></dd><dt><span class="sect1"><a href="locking.html#id2639730">Persistent Data Corruption</a></span></dt><dt><span class="sect1"><a href="locking.html#id2639755">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="locking.html#id2639822">locking.tdb Error Messages</a></span></dt><dt><span class="sect2"><a href="locking.html#id2639853">Problems Saving Files in MS Office on Windows XP</a></span></dt><dt><span class="sect2"><a href="locking.html#id2639877">Long Delays Deleting Files over Network with XP SP1</a></span></dt></dl></dd><dt><span class="sect1"><a href="locking.html#id2639909">Additional Reading</a></span></dt></dl></div><p> +<a class="indexterm" name="id2637607"></a> One area that causes trouble for many network administrators is locking. The extent of the problem is readily evident from searches over the Internet. -</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id385057"></a>Features and Benefits</h2></div></div></div><p> -<a class="indexterm" name="id385065"></a> +</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2637617"></a>Features and Benefits</h2></div></div></div><p> +<a class="indexterm" name="id2637625"></a> Samba provides all the same locking semantics that MS Windows clients expect and that MS Windows NT4/200x servers also provide. </p><p> -<a class="indexterm" name="id385076"></a> +<a class="indexterm" name="id2637638"></a> The term <span class="emphasis"><em>locking</em></span> has exceptionally broad meaning and covers a range of functions that are all categorized under this one term. </p><p> -<a class="indexterm" name="id385091"></a> -<a class="indexterm" name="id385097"></a> -<a class="indexterm" name="id385104"></a> +<a class="indexterm" name="id2637653"></a> +<a class="indexterm" name="id2637660"></a> +<a class="indexterm" name="id2637667"></a> Opportunistic locking is a desirable feature when it can enhance the perceived performance of applications on a networked client. However, the opportunistic locking protocol is not robust and therefore can @@ -23,27 +23,27 @@ system management of opportunistic locking and/or recovering from repetitive errors can offset the perceived performance advantage that it is intended to provide. </p><p> -<a class="indexterm" name="id385118"></a> +<a class="indexterm" name="id2637686"></a> The MS Windows network administrator needs to be aware that file and record locking semantics (behavior) can be controlled either in Samba or by way of registry settings on the MS Windows client. </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> -<a class="indexterm" name="id385132"></a> +<a class="indexterm" name="id2637702"></a> Sometimes it is necessary to disable locking control settings on the Samba server as well as on each MS Windows client! -</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id385144"></a>Discussion</h2></div></div></div><p> -<a class="indexterm" name="id385151"></a> -<a class="indexterm" name="id385158"></a> +</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2637714"></a>Discussion</h2></div></div></div><p> +<a class="indexterm" name="id2637722"></a> +<a class="indexterm" name="id2637729"></a> There are two types of locking that need to be performed by an SMB server. The first is <span class="emphasis"><em>record locking</em></span> that allows a client to lock a range of bytes in an open file. The second is the <span class="emphasis"><em>deny modes</em></span> that are specified when a file is open. </p><p> -<a class="indexterm" name="id385177"></a> -<a class="indexterm" name="id385184"></a> -<a class="indexterm" name="id385191"></a> -<a class="indexterm" name="id385198"></a> -<a class="indexterm" name="id385204"></a> +<a class="indexterm" name="id2637750"></a> +<a class="indexterm" name="id2637757"></a> +<a class="indexterm" name="id2637764"></a> +<a class="indexterm" name="id2637770"></a> +<a class="indexterm" name="id2637777"></a> Record locking semantics under UNIX are very different from record locking under Windows. Versions of Samba before 2.2 have tried to use the native fcntl() UNIX system call to implement proper record locking between different Samba clients. @@ -53,74 +53,74 @@ depending on the client OS. The UNIX locking only supports byte ranges up to 2^3 So it is not possible to correctly satisfy a lock request above 2^31. There are many more differences, too many to be listed here. </p><p> -<a class="indexterm" name="id385220"></a> -<a class="indexterm" name="id385226"></a> +<a class="indexterm" name="id2637797"></a> +<a class="indexterm" name="id2637804"></a> Samba 2.2 and above implement record locking completely independently of the underlying UNIX system. If a byte-range lock that the client requests happens to fall into the range of 0 to 2^31, Samba hands this request down to the UNIX system. No other locks can be seen by UNIX, anyway. </p><p> -<a class="indexterm" name="id385239"></a> -<a class="indexterm" name="id385246"></a> +<a class="indexterm" name="id2637819"></a> +<a class="indexterm" name="id2637826"></a> Strictly speaking, an SMB server should check for locks before every read and write call on a file. Unfortunately, with the way fcntl() works, this can be slow and may overstress the <code class="literal">rpc.lockd</code>. This is almost always unnecessary because clients are independently supposed to make locking calls before reads and writes if locking is important to them. By default, Samba only makes locking calls when explicitly asked -to by a client, but if you set <a class="indexterm" name="id385262"></a>strict locking = yes, it +to by a client, but if you set <a class="link" href="smb.conf.5.html#STRICTLOCKING">strict locking = yes</a>, it will make lock checking calls on <span class="emphasis"><em>every</em></span> read and write call. </p><p> -<a class="indexterm" name="id385277"></a> +<a class="indexterm" name="id2637868"></a> You can also disable byte-range locking completely by using -<a class="indexterm" name="id385284"></a>locking = no. +<a class="link" href="smb.conf.5.html#LOCKING">locking = no</a>. This is useful for those shares that do not support locking or do not need it (such as CD-ROMs). In this case, Samba fakes the return codes of locking calls to tell clients that everything is okay. </p><p> -<a class="indexterm" name="id385296"></a> -<a class="indexterm" name="id385303"></a> -<a class="indexterm" name="id385310"></a> -<a class="indexterm" name="id385316"></a> -<a class="indexterm" name="id385323"></a> -<a class="indexterm" name="id385330"></a> -<a class="indexterm" name="id385337"></a> +<a class="indexterm" name="id2637895"></a> +<a class="indexterm" name="id2637902"></a> +<a class="indexterm" name="id2637908"></a> +<a class="indexterm" name="id2637915"></a> +<a class="indexterm" name="id2637922"></a> +<a class="indexterm" name="id2637929"></a> +<a class="indexterm" name="id2637936"></a> The second class of locking is the <span class="emphasis"><em>deny modes</em></span>. These are set by an application when it opens a file to determine what types of access should be allowed simultaneously with its open. A client may ask for <code class="constant">DENY_NONE</code>, <code class="constant">DENY_READ</code>, <code class="constant">DENY_WRITE</code>, or <code class="constant">DENY_ALL</code>. There are also special compatibility modes called <code class="constant">DENY_FCB</code> and <code class="constant">DENY_DOS</code>. -</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id385372"></a>Opportunistic Locking Overview</h3></div></div></div><p> -<a class="indexterm" name="id385380"></a> -<a class="indexterm" name="id385386"></a> -<a class="indexterm" name="id385393"></a> +</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2637972"></a>Opportunistic Locking Overview</h3></div></div></div><p> +<a class="indexterm" name="id2637980"></a> +<a class="indexterm" name="id2637987"></a> +<a class="indexterm" name="id2637994"></a> Opportunistic locking (oplocks) is invoked by the Windows file system (as opposed to an API) via registry entries (on the server and the client) for the purpose of enhancing network performance when accessing a file residing on a server. Performance is enhanced by caching the file locally on the client that allows the following: </p><div class="variablelist"><dl><dt><span class="term">Read-ahead:</span></dt><dd><p> -<a class="indexterm" name="id385414"></a> +<a class="indexterm" name="id2638018"></a> The client reads the local copy of the file, eliminating network latency. </p></dd><dt><span class="term">Write caching:</span></dt><dd><p> -<a class="indexterm" name="id385431"></a> +<a class="indexterm" name="id2638036"></a> The client writes to the local copy of the file, eliminating network latency. </p></dd><dt><span class="term">Lock caching:</span></dt><dd><p> -<a class="indexterm" name="id385449"></a> +<a class="indexterm" name="id2638054"></a> The client caches application locks locally, eliminating network latency. </p></dd></dl></div><p> -<a class="indexterm" name="id385462"></a> -<a class="indexterm" name="id385469"></a> -<a class="indexterm" name="id385475"></a> +<a class="indexterm" name="id2638068"></a> +<a class="indexterm" name="id2638075"></a> +<a class="indexterm" name="id2638082"></a> The performance enhancement of oplocks is due to the opportunity of exclusive access to the file even if it is opened with deny-none because Windows monitors the file's status for concurrent access from other processes. </p><div class="variablelist"><p class="title"><b>Windows Defines Four Kinds of Oplocks:</b></p><dl><dt><span class="term">Level1 Oplock</span></dt><dd><p> -<a class="indexterm" name="id385504"></a> -<a class="indexterm" name="id385511"></a> -<a class="indexterm" name="id385517"></a> -<a class="indexterm" name="id385524"></a> +<a class="indexterm" name="id2638113"></a> +<a class="indexterm" name="id2638120"></a> +<a class="indexterm" name="id2638126"></a> +<a class="indexterm" name="id2638133"></a> The redirector sees that the file was opened with deny none (allowing concurrent access), verifies that no other process is accessing the file, checks that @@ -128,10 +128,10 @@ other processes. access to the file. The client now performs operations on the cached local file. </p><p> -<a class="indexterm" name="id385537"></a> -<a class="indexterm" name="id385544"></a> -<a class="indexterm" name="id385551"></a> -<a class="indexterm" name="id385557"></a> +<a class="indexterm" name="id2638149"></a> +<a class="indexterm" name="id2638156"></a> +<a class="indexterm" name="id2638163"></a> +<a class="indexterm" name="id2638170"></a> If a second process attempts to open the file, the open is deferred while the redirector "breaks" the original oplock. The oplock break signals the caching client to @@ -145,31 +145,31 @@ other processes. second process is granted limited or no access, despite the oplock break. </p></dd><dt><span class="term">Level2 Oplock</span></dt><dd><p> -<a class="indexterm" name="id385580"></a> -<a class="indexterm" name="id385586"></a> -<a class="indexterm" name="id385593"></a> +<a class="indexterm" name="id2638198"></a> +<a class="indexterm" name="id2638205"></a> +<a class="indexterm" name="id2638212"></a> Performs like a Level1 oplock, except caching is only operative for reads. All other operations are performed on the server disk copy of the file. </p></dd><dt><span class="term">Filter Oplock</span></dt><dd><p> -<a class="indexterm" name="id385612"></a> +<a class="indexterm" name="id2638232"></a> Does not allow write or delete file access. </p></dd><dt><span class="term">Batch Oplock</span></dt><dd><p> -<a class="indexterm" name="id385629"></a> +<a class="indexterm" name="id2638250"></a> Manipulates file openings and closings and allows caching of file attributes. </p></dd></dl></div><p> -<a class="indexterm" name="id385642"></a> +<a class="indexterm" name="id2638264"></a> An important detail is that oplocks are invoked by the file system, not an application API. Therefore, an application can close an oplocked file, but the file system does not relinquish the oplock. When the oplock break is issued, the file system then simply closes the file in preparation for the subsequent open by the second process. </p><p> -<a class="indexterm" name="id385655"></a> -<a class="indexterm" name="id385662"></a> -<a class="indexterm" name="id385669"></a> -<a class="indexterm" name="id385676"></a> +<a class="indexterm" name="id2638280"></a> +<a class="indexterm" name="id2638287"></a> +<a class="indexterm" name="id2638294"></a> +<a class="indexterm" name="id2638301"></a> <span class="emphasis"><em>Opportunistic locking</em></span> is actually an improper name for this feature. The true benefit of this feature is client-side data caching, and oplocks is merely a notification mechanism for writing data back to the @@ -179,7 +179,7 @@ between the server and the caching client. If this exchange is faulty (usually due to timing out for any number of reasons), then the client-side caching benefit is negated. </p><p> -<a class="indexterm" name="id385694"></a> +<a class="indexterm" name="id2638323"></a> The actual decision that a user or administrator should consider is whether it is sensible to share among multiple users data that will be cached locally on a client. In many cases the answer is no. @@ -189,15 +189,15 @@ caching. Turn it “<span class="quote">on</span>” when client-side ca reliable. Turn it “<span class="quote">off</span>” when client-side caching is redundant, unreliable, or counterproductive. </p><p> -<a class="indexterm" name="id385714"></a> +<a class="indexterm" name="id2638348"></a> Oplocks is by default set to “<span class="quote">on</span>” by Samba on all configured shares, so careful attention should be given to each case to determine if the potential benefit is worth the potential for delays. The following recommendations will help to characterize the environment where oplocks may be effectively configured. </p><p> -<a class="indexterm" name="id385730"></a> -<a class="indexterm" name="id385737"></a> +<a class="indexterm" name="id2638367"></a> +<a class="indexterm" name="id2638374"></a> Windows oplocks is a lightweight performance-enhancing feature. It is not a robust and reliable protocol. Every implementation of oplocks should be evaluated as a @@ -208,7 +208,7 @@ South Pacific atoll, on a high-availability server, serving a mission-critical multiuser corporate database during a tropical storm. This configuration will likely encounter problems with oplocks. </p><p> -<a class="indexterm" name="id385752"></a> +<a class="indexterm" name="id2638403"></a> Oplocks can be beneficial to perceived client performance when treated as a configuration toggle for client-side data caching. If the data caching is likely to be interrupted, then oplock usage should be @@ -222,8 +222,8 @@ to ensure that if a client loses connectivity with a file server, a failover replacement will be available immediately to provide continuous data availability. </p><p> -<a class="indexterm" name="id385768"></a> -<a class="indexterm" name="id385775"></a> +<a class="indexterm" name="id2638425"></a> +<a class="indexterm" name="id2638432"></a> Windows client failover behavior is more at risk of application interruption than other platforms because it is dependent upon an established TCP transport connection. If the connection is interrupted @@ -233,9 +233,9 @@ correctly from a transport connection loss; therefore, most applications will experience some sort of interruption at worst, abort and require restarting. </p><p> -<a class="indexterm" name="id385798"></a> -<a class="indexterm" name="id385804"></a> -<a class="indexterm" name="id385811"></a> +<a class="indexterm" name="id2638459"></a> +<a class="indexterm" name="id2638466"></a> +<a class="indexterm" name="id2638472"></a> If a client session has been caching writes and reads locally due to oplocks, it is likely that the data will be lost when the application restarts or recovers from the TCP interrupt. When the TCP @@ -250,7 +250,7 @@ In mission-critical, high-availability environments, careful attention should be given to oplocks. Ideally, comprehensive testing should be done with all affected applications with oplocks enabled and disabled. -</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id385829"></a>Exclusively Accessed Shares</h4></div></div></div><p> +</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638497"></a>Exclusively Accessed Shares</h4></div></div></div><p> Oplocks is most effective when it is confined to shares that are exclusively accessed by a single user, or by only one user at a time. Because the true value of oplocks is the local @@ -259,7 +259,7 @@ mechanism will cause a delay. </p><p> Home directories are the most obvious examples of where the performance benefit of oplocks can be safely realized. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id385845"></a>Multiple-Accessed Shares or Files</h4></div></div></div><p> +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638517"></a>Multiple-Accessed Shares or Files</h4></div></div></div><p> As each additional user accesses a file in a share with oplocks enabled, the potential for delays and resulting perceived poor performance increases. When multiple users are accessing a file on a @@ -271,9 +271,9 @@ of the caching user. As each additional client attempts to access a file with oplocks set, the potential performance improvement is negated and eventually results in a performance bottleneck. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id385864"></a>UNIX or NFS Client-Accessed Files</h4></div></div></div><p> -<a class="indexterm" name="id385872"></a> -<a class="indexterm" name="id385879"></a> +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638541"></a>UNIX or NFS Client-Accessed Files</h4></div></div></div><p> +<a class="indexterm" name="id2638549"></a> +<a class="indexterm" name="id2638556"></a> Local UNIX and NFS clients access files without a mandatory file-locking mechanism. Thus, these client platforms are incapable of initiating an oplock break request from the server to a Windows client @@ -283,10 +283,10 @@ exposes the file to likely data corruption. </p><p> If files are shared between Windows clients and either local UNIX or NFS users, turn oplocks off. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id385895"></a>Slow and/or Unreliable Networks</h4></div></div></div><p> -<a class="indexterm" name="id385903"></a> -<a class="indexterm" name="id385910"></a> -<a class="indexterm" name="id385916"></a> +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638576"></a>Slow and/or Unreliable Networks</h4></div></div></div><p> +<a class="indexterm" name="id2638585"></a> +<a class="indexterm" name="id2638592"></a> +<a class="indexterm" name="id2638598"></a> The biggest potential performance improvement for oplocks occurs when the client-side caching of reads and writes delivers the most differential over sending those reads and writes over the wire. @@ -301,20 +301,20 @@ the most advantageous scenario in which to utilize oplocks. If the network is slow, unreliable, or a WAN, then do not configure oplocks if there is any chance of multiple users regularly opening the same file. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id385935"></a>Multiuser Databases</h4></div></div></div><p> -<a class="indexterm" name="id385943"></a> -<a class="indexterm" name="id385950"></a> -<a class="indexterm" name="id385957"></a> +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638624"></a>Multiuser Databases</h4></div></div></div><p> +<a class="indexterm" name="id2638632"></a> +<a class="indexterm" name="id2638639"></a> +<a class="indexterm" name="id2638646"></a> Multiuser databases clearly pose a risk due to their very nature they are typically heavily accessed by numerous users at random intervals. Placing a multiuser database on a share with oplocks enabled will likely result in a locking management bottleneck on the Samba server. Whether the database application is developed in-house or a commercially available product, ensure that the share has oplocks disabled. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id385973"></a>PDM Data Shares</h4></div></div></div><p> -<a class="indexterm" name="id385980"></a> -<a class="indexterm" name="id385986"></a> -<a class="indexterm" name="id385993"></a> -<a class="indexterm" name="id386000"></a> -<a class="indexterm" name="id386007"></a> +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638665"></a>PDM Data Shares</h4></div></div></div><p> +<a class="indexterm" name="id2638673"></a> +<a class="indexterm" name="id2638679"></a> +<a class="indexterm" name="id2638686"></a> +<a class="indexterm" name="id2638693"></a> +<a class="indexterm" name="id2638700"></a> Process data management (PDM) applications such as IMAN, Enovia, and Clearcase are increasing in usage with Windows client platforms and therefore with SMB datastores. PDM applications manage multiuser environments for critical data security and access. The typical PDM environment is usually associated with sophisticated client @@ -322,9 +322,9 @@ design applications that will load data locally as demanded. In addition, the PD monitor the data state of each client. In this case, client-side data caching is best left to the local application and PDM server to negotiate and maintain. It is appropriate to eliminate the client OS from any caching tasks, and the server from any oplocks management, by disabling oplocks on the share. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id386022"></a>Beware of Force User</h4></div></div></div><p> -<a class="indexterm" name="id386030"></a> -Samba includes an <code class="filename">smb.conf</code> parameter called <a class="indexterm" name="id386043"></a>force user that changes the user +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638722"></a>Beware of Force User</h4></div></div></div><p> +<a class="indexterm" name="id2638730"></a> +Samba includes an <code class="filename">smb.conf</code> parameter called <a class="link" href="smb.conf.5.html#FORCEUSER">force user</a> that changes the user accessing a share from the incoming user to whatever user is defined by the <code class="filename">smb.conf</code> variable. If oplocks is enabled on a share, the change in user access causes an oplock break to be sent to the client, even if the user has not explicitly loaded a file. In cases where the network is slow or unreliable, an oplock break can @@ -333,30 +333,30 @@ client continually reconnects to overcome the lost oplock break. </p><p> Avoid the combination of the following: </p><div class="itemizedlist"><ul type="disc"><li><p> - <a class="indexterm" name="id386070"></a>force user in the <code class="filename">smb.conf</code> share configuration. + <a class="link" href="smb.conf.5.html#FORCEUSER">force user</a> in the <code class="filename">smb.conf</code> share configuration. </p></li><li><p> Slow or unreliable networks. </p></li><li><p> Oplocks enabled. - </p></li></ul></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id386096"></a>Advanced Samba Oplocks Parameters</h4></div></div></div><p> -<a class="indexterm" name="id386103"></a> -<a class="indexterm" name="id386110"></a> -<a class="indexterm" name="id386117"></a> + </p></li></ul></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638810"></a>Advanced Samba Oplocks Parameters</h4></div></div></div><p> +<a class="indexterm" name="id2638818"></a> +<a class="indexterm" name="id2638825"></a> +<a class="indexterm" name="id2638832"></a> Samba provides oplock parameters that allow the administrator to adjust various properties of the oplock mechanism to account for timing and usage levels. These parameters provide good versatility for implementing oplocks in environments where they would likely cause problems. The parameters are -<a class="indexterm" name="id386126"></a>oplock break wait time, and -<a class="indexterm" name="id386134"></a>oplock contention limit. +<a class="link" href="smb.conf.5.html#OPLOCKBREAKWAITTIME">oplock break wait time</a>, and +<a class="link" href="smb.conf.5.html#OPLOCKCONTENTIONLIMIT">oplock contention limit</a>. </p><p> -<a class="indexterm" name="id386144"></a> +<a class="indexterm" name="id2638872"></a> For most users, administrators, and environments, if these parameters are required, then the better option is simply to turn oplocks off. The Samba SWAT help text for both parameters reads: “<span class="quote">Do not change this parameter unless you have read and understood the Samba oplock code.</span>” This is good advice. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id386159"></a>Mission-Critical, High-Availability</h4></div></div></div><p> +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2638889"></a>Mission-Critical, High-Availability</h4></div></div></div><p> In mission-critical, high-availability environments, data integrity is often a priority. Complex and expensive configurations are implemented to ensure that if a client loses connectivity with a file server, a @@ -386,7 +386,7 @@ In mission-critical, high-availability environments, careful attention should be given to oplocks. Ideally, comprehensive testing should be done with all affected applications with oplocks enabled and disabled. -</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id386203"></a>Samba Oplocks Control</h2></div></div></div><p> +</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2638946"></a>Samba Oplocks Control</h2></div></div></div><p> Oplocks is a unique Windows file locking feature. It is not really file locking, but is included in most discussions of Windows file locking, so is considered a de facto locking feature. @@ -436,23 +436,23 @@ of your client sending oplock breaks and will instead want to disable oplocks fo </p><p> Another factor to consider is the perceived performance of file access. If oplocks provide no measurable speed benefit on your network, it might not be worth the hassle of dealing with them. -</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id386275"></a>Example Configuration</h3></div></div></div><p> +</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2639041"></a>Example Configuration</h3></div></div></div><p> In the following section we examine two distinct aspects of Samba locking controls. -</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id386284"></a>Disabling Oplocks</h4></div></div></div><p> +</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2639052"></a>Disabling Oplocks</h4></div></div></div><p> You can disable oplocks on a per-share basis with the following: </p><p> -</p><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[acctdata]</code></em></td></tr><tr><td><a class="indexterm" name="id386310"></a><em class="parameter"><code>oplocks = False</code></em></td></tr><tr><td><a class="indexterm" name="id386323"></a><em class="parameter"><code>level2 oplocks = False</code></em></td></tr></table><p> +</p><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[acctdata]</code></em></td></tr><tr><td><a class="indexterm" name="id2639078"></a><em class="parameter"><code>oplocks = False</code></em></td></tr><tr><td><a class="indexterm" name="id2639090"></a><em class="parameter"><code>level2 oplocks = False</code></em></td></tr></table><p> </p><p> The default oplock type is Level1. Level2 oplocks are enabled on a per-share basis in the <code class="filename">smb.conf</code> file. </p><p> Alternately, you could disable oplocks on a per-file basis within the share: </p><p> - </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id386358"></a><em class="parameter"><code>veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/</code></em></td></tr></table><p> + </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2639126"></a><em class="parameter"><code>veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/</code></em></td></tr></table><p> </p><p> If you are experiencing problems with oplocks, as apparent from Samba's log entries, you may want to play it safe and disable oplocks and Level2 oplocks. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id386378"></a>Disabling Kernel Oplocks</h4></div></div></div><p> +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2639146"></a>Disabling Kernel Oplocks</h4></div></div></div><p> Kernel oplocks is an <code class="filename">smb.conf</code> parameter that notifies Samba (if the UNIX kernel has the capability to send a Windows client an oplock break) when a UNIX process is attempting to open the file that is @@ -465,7 +465,7 @@ send an oplock break, then the kernel oplocks parameter enables Samba to send the oplock break. Kernel oplocks are enabled on a per-server basis in the <code class="filename">smb.conf</code> file. </p><p> -</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id386418"></a><em class="parameter"><code>kernel oplocks = yes</code></em></td></tr></table><p> +</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2639186"></a><em class="parameter"><code>kernel oplocks = yes</code></em></td></tr></table><p> The default is no. </p><p> <span class="emphasis"><em>Veto oplocks</em></span> is an <code class="filename">smb.conf</code> parameter that identifies specific files for @@ -478,26 +478,26 @@ those files, the server-wide oplock configuration can be enabled to allow Windows clients to utilize the performance benefit of file caching without the risk of data corruption. Veto oplocks can be enabled on a per-share basis, or globally for the entire server, in the -<code class="filename">smb.conf</code> file as shown in <a href="locking.html#far1" title="Example 17.1. Share with Some Files Oplocked">???</a>. +<code class="filename">smb.conf</code> file as shown in <a class="link" href="locking.html#far1" title="Example 17.1. Share with Some Files Oplocked">“Share with Some Files Oplocked”</a>. </p><p> -</p><div class="example"><a name="far1"></a><p class="title"><b>Example 17.1. Share with Some Files Oplocked</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id386487"></a><em class="parameter"><code>veto oplock files = /filename.htm/*.txt/</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[share_name]</code></em></td></tr><tr><td><a class="indexterm" name="id386509"></a><em class="parameter"><code>veto oplock files = /*.exe/filename.ext/</code></em></td></tr></table></div></div><p><br class="example-break"> +</p><div class="example"><a name="far1"></a><p class="title"><b>Example 17.1. Share with Some Files Oplocked</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2639263"></a><em class="parameter"><code>veto oplock files = /filename.htm/*.txt/</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[share_name]</code></em></td></tr><tr><td><a class="indexterm" name="id2639284"></a><em class="parameter"><code>veto oplock files = /*.exe/filename.ext/</code></em></td></tr></table></div></div><p><br class="example-break"> </p><p> -<a class="indexterm" name="id386526"></a>oplock break wait time is an <code class="filename">smb.conf</code> parameter +<a class="link" href="smb.conf.5.html#OPLOCKBREAKWAITTIME">oplock break wait time</a> is an <code class="filename">smb.conf</code> parameter that adjusts the time interval for Samba to reply to an oplock break request. Samba recommends: “<span class="quote">Do not change this parameter unless you have read and understood the Samba oplock code.</span>” Oplock break wait time can only be configured globally in the <code class="filename">smb.conf</code> file as shown: </p><p> - </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id386559"></a><em class="parameter"><code>oplock break wait time = 0 (default)</code></em></td></tr></table><p> + </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2639341"></a><em class="parameter"><code>oplock break wait time = 0 (default)</code></em></td></tr></table><p> </p><p> <span class="emphasis"><em>Oplock break contention limit</em></span> is an <code class="filename">smb.conf</code> parameter that limits the response of the Samba server to grant an oplock if the configured number of contending clients reaches the limit specified by the parameter. Samba recommends “<span class="quote">Do not change this parameter unless you have read and understood the Samba oplock code.</span>” Oplock break contention limit can be enabled on a per-share basis, or globally for -the entire server, in the <code class="filename">smb.conf</code> file as shown in <a href="locking.html#far3" title="Example 17.2. Configuration with Oplock Break Contention Limit">???</a>. +the entire server, in the <code class="filename">smb.conf</code> file as shown in <a class="link" href="locking.html#far3" title="Example 17.2. Configuration with Oplock Break Contention Limit">“Configuration with Oplock Break Contention Limit”</a>. </p><p> -</p><div class="example"><a name="far3"></a><p class="title"><b>Example 17.2. Configuration with Oplock Break Contention Limit</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id386630"></a><em class="parameter"><code>oplock break contention limit = 2 (default)</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[share_name]</code></em></td></tr><tr><td><a class="indexterm" name="id386652"></a><em class="parameter"><code>oplock break contention limit = 2 (default)</code></em></td></tr></table></div></div><p><br class="example-break"> -</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id386670"></a>MS Windows Oplocks and Caching Controls</h2></div></div></div><p> +</p><div class="example"><a name="far3"></a><p class="title"><b>Example 17.2. Configuration with Oplock Break Contention Limit</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2639415"></a><em class="parameter"><code>oplock break contention limit = 2 (default)</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[share_name]</code></em></td></tr><tr><td><a class="indexterm" name="id2639437"></a><em class="parameter"><code>oplock break contention limit = 2 (default)</code></em></td></tr></table></div></div><p><br class="example-break"> +</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2639454"></a>MS Windows Oplocks and Caching Controls</h2></div></div></div><p> There is a known issue when running applications (like Norton Antivirus) on a Windows 2000/ XP workstation computer that can affect any application attempting to access shared database files across a network. This is a result of a default setting configured in the Windows 2000/XP @@ -512,7 +512,7 @@ All Windows operating systems in the NT family that act as database servers for (meaning that data files are stored there and accessed by other Windows PCs) may need to have oplocks disabled in order to minimize the risk of data file corruption. This includes Windows 9x/Me, Windows NT, Windows 200x, and Windows XP. -<sup>[<a name="id386694" href="#ftn.id386694">5</a>]</sup> +<sup>[<a name="id2639487" href="#ftn.id2639487" class="footnote">5</a>]</sup> </p><p> If you are using a Windows NT family workstation in place of a server, you must also disable oplocks on that workstation. For example, if you use a @@ -590,7 +590,7 @@ An illustration of how Level2 oplocks work follows: station holds any oplock on the file. Because the workstations can have no cached writes or locks at this point, they need not respond to the break-to-none advisory; all they need do is invalidate locally cashed read-ahead data. - </p></li></ul></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id386822"></a>Workstation Service Entries</h3></div></div></div><pre class="programlisting"> + </p></li></ul></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2639641"></a>Workstation Service Entries</h3></div></div></div><pre class="programlisting"> \HKEY_LOCAL_MACHINE\System\ CurrentControlSet\Services\LanmanWorkstation\Parameters @@ -599,7 +599,7 @@ An illustration of how Level2 oplocks work follows: </pre><p> This indicates whether the redirector should use oplocks performance enhancement. This parameter should be disabled only to isolate problems. -</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id386841"></a>Server Service Entries</h3></div></div></div><pre class="programlisting"> +</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2639663"></a>Server Service Entries</h3></div></div></div><pre class="programlisting"> \HKEY_LOCAL_MACHINE\System\ CurrentControlSet\Services\LanmanServer\Parameters @@ -628,7 +628,7 @@ the server disables raw I/O and oplocks for this connection. This specifies the time that the server waits for a client to respond to an oplock break request. Smaller values can allow detection of crashed clients more quickly but can potentially cause loss of cached data. -</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id386898"></a>Persistent Data Corruption</h2></div></div></div><p> +</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2639730"></a>Persistent Data Corruption</h2></div></div></div><p> If you have applied all of the settings discussed in this chapter but data corruption problems and other symptoms persist, here are some additional things to check out. </p><p> @@ -639,7 +639,7 @@ rebuild the data files in question. This involves creating a new data file with same definition as the file to be rebuilt and transferring the data from the old file to the new one. There are several known methods for doing this that can be found in our knowledge base. -</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id386917"></a>Common Errors</h2></div></div></div><p> +</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2639755"></a>Common Errors</h2></div></div></div><p> In some sites locking problems surface as soon as a server is installed; in other sites locking problems may not surface for a long time. Almost without exception, when a locking problem does surface, it will cause embarrassment and potential data corruption. @@ -666,10 +666,10 @@ so far: cause. Considering the millions of systems that use Samba, for the sites that have been affected by this as well as for the Samba Team, this is a frustrating and vexing challenge. If you see this type of thing happening, please create a bug - report on Samba <a href="https://bugzilla.samba.org" target="_top">Bugzilla</a> without delay. + report on Samba <a class="ulink" href="https://bugzilla.samba.org" target="_top">Bugzilla</a> without delay. Make sure that you give as much information as you possibly can to help isolate the cause and to allow replication of the problem (an essential step in problem isolation and correction). - </p></li></ul></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id386968"></a>locking.tdb Error Messages</h3></div></div></div><p> + </p></li></ul></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2639822"></a>locking.tdb Error Messages</h3></div></div></div><p> “<span class="quote"> We are seeing lots of errors in the Samba logs, like: </span>” @@ -683,29 +683,29 @@ tdb(/usr/local/samba_2.2.7/var/locks/locking.tdb): rec_read bad magic </span>” </p><p> This error indicates a corrupted tdb. Stop all instances of smbd, delete locking.tdb, and restart smbd. - </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id386996"></a>Problems Saving Files in MS Office on Windows XP</h3></div></div></div><a class="indexterm" name="id387002"></a><p>This is a bug in Windows XP. More information can be - found in <a href="http://support.microsoft.com/?id=812937" target="_top">Microsoft Knowledge Base article 812937</a></p>. + </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2639853"></a>Problems Saving Files in MS Office on Windows XP</h3></div></div></div><a class="indexterm" name="id2639859"></a><p>This is a bug in Windows XP. More information can be + found in <a class="ulink" href="http://support.microsoft.com/?id=812937" target="_top">Microsoft Knowledge Base article 812937</a></p>. - </div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id387019"></a>Long Delays Deleting Files over Network with XP SP1</h3></div></div></div><p>“<span class="quote">It sometimes takes approximately 35 seconds to delete files over the network after XP SP1 has been applied.</span>”</p><a class="indexterm" name="id387030"></a><p>This is a bug in Windows XP. More information can be found in <a href="http://support.microsoft.com/?id=811492" target="_top"> + </div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2639877"></a>Long Delays Deleting Files over Network with XP SP1</h3></div></div></div><p>“<span class="quote">It sometimes takes approximately 35 seconds to delete files over the network after XP SP1 has been applied.</span>”</p><a class="indexterm" name="id2639890"></a><p>This is a bug in Windows XP. More information can be found in <a class="ulink" href="http://support.microsoft.com/?id=811492" target="_top"> Microsoft Knowledge Base article 811492</a></p>. - </div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id387048"></a>Additional Reading</h2></div></div></div><p> + </div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2639909"></a>Additional Reading</h2></div></div></div><p> You may want to check for an updated documentation regarding file and record locking issues on the Microsoft -<a href="http://support.microsoft.com/" target="_top">Support</a> web site. Additionally, search for the word -<code class="literal">locking</code> on the Samba <a href="http://www.samba.org/" target="_top">web</a> site. +<a class="ulink" href="http://support.microsoft.com/" target="_top">Support</a> web site. Additionally, search for the word +<code class="literal">locking</code> on the Samba <a class="ulink" href="http://www.samba.org/" target="_top">web</a> site. </p><p> Section of the Microsoft MSDN Library on opportunistic locking: </p><p> -<a class="indexterm" name="id387082"></a> +<a class="indexterm" name="id2639946"></a> Microsoft Knowledge Base, “<span class="quote">Maintaining Transactional Integrity with OPLOCKS</span>”, -Microsoft Corporation, April 1999, <a href="http://support.microsoft.com/?id=224992" target="_top">Microsoft +Microsoft Corporation, April 1999, <a class="ulink" href="http://support.microsoft.com/?id=224992" target="_top">Microsoft KB Article 224992</a>. </p><p> -<a class="indexterm" name="id387105"></a> +<a class="indexterm" name="id2639970"></a> Microsoft Knowledge Base, “<span class="quote">Configuring Opportunistic Locking in Windows 2000</span>”, -Microsoft Corporation, April 2001 <a href="http://support.microsoft.com/?id=296264" target="_top">Microsoft KB Article 296264</a>. +Microsoft Corporation, April 2001 <a class="ulink" href="http://support.microsoft.com/?id=296264" target="_top">Microsoft KB Article 296264</a>. </p><p> -<a class="indexterm" name="id387127"></a> +<a class="indexterm" name="id2639994"></a> Microsoft Knowledge Base, “<span class="quote">PC Ext: Explanation of Opportunistic Locking on Windows NT</span>”, -Microsoft Corporation, April 1995 <a href="http://support.microsoft.com/?id=129202" target="_top">Microsoft +Microsoft Corporation, April 1995 <a class="ulink" href="http://support.microsoft.com/?id=129202" target="_top">Microsoft KB Article 129202</a>. -</p></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id386694" href="#id386694">5</a>] </sup>Microsoft has documented this in Knowledge Base article 300216.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="AccessControls.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="optional.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="securing-samba.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 16. File, Directory, and Share Access Controls </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 18. Securing Samba</td></tr></table></div></body></html> +</p></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2639487" href="#id2639487" class="para">5</a>] </sup>Microsoft has documented this in Knowledge Base article 300216.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="AccessControls.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="optional.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="securing-samba.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 16. File, Directory, and Share Access Controls </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 18. Securing Samba</td></tr></table></div></body></html> |