Handling quota and out of space issues while holding an OpLock

Jeremy Allison jra at samba.org
Tue Sep 21 19:54:01 GMT 2004

On Tue, Sep 21, 2004 at 12:00:52AM -0700, Richard Sharpe wrote:
> OK, it seems that for Windows NT Servers, a Win2K redirector sends 1 byte
> writes to interesting locations, like:
>   Write 1 byte at offset 65535
>   Write 1 byte at offset 2162687
>   Write 1 byte at offset 4259839
>   ...
>   Write lots of data (flush the dirty data).
> This seems clearly designed to allow quota and space problems to be
> reflected back to the application.
> Now to figure out how to make the redirector think it should do the same
> with Samba.

Even if it does, this won't fix the problem as the UNIX server
won't commit the space until the "flush the dirty data" step.
The only way to force this in Samba is to set the "strict allocate = yes"


More information about the samba-technical mailing list