[Samba] NFS quotas: truncated files without warning

Jeremy Allison jra at samba.org
Mon Jun 18 18:33:00 GMT 2007


On Mon, Jun 18, 2007 at 06:53:11PM +0200, SER.RI-TIC - David Losada wrote:
> Hi Jeremy,
> 
> just tried your patch on 3.0.25a (it applied cleanly) and configured the
> suggested directives ("strict allocate", "strict sync", "sync always").
> This way, the clients I have tested (Win2K with clear-text
> authentication, smbclient) get notified immediately about the lack of
> available quota. Relevant log excerpts:
> 
> (smbclient)
> [2007/06/11 22:24:12, 5] smbd/reply.c:reply_write_and_X(3159)
>   reply_write_and_X: sync_file for samba-3.0.10-1.4E.12.2.src.rpm
> returned NT_ST
> ATUS_DISK_FULL
> [2007/06/11 22:24:12, 3] smbd/error.c:error_packet_set(106)
>   error packet at smbd/reply.c(3160) cmd=47 (SMBwriteX) NT_STATUS_DISK_FULL
> 
> ----
> (Win2K)
> [2007/06/11 22:25:16, 5] smbd/reply.c:reply_write_and_X(3159)
>   reply_write_and_X: sync_file for rvtls_putty.reg returned
> NT_STATUS_DISK_FULL
> [2007/06/11 22:25:16, 3] smbd/error.c:error_packet_set(106)
>   error packet at smbd/reply.c(3160) cmd=47 (SMBwriteX) NT_STATUS_DISK_FULL
> 
> 
> What do you think are the chances of backporting it to 3.0.10 and
> 3.0.23c? I am willing to do the effort, just would like to know your
> opinion on it, since you seem to know the affected code very well ;) It
> would be nice very nice for us if we could send it to RedHat so they
> consider to issue an errata to RHEL4 and 5.

It should be reasonably easy to do - that code really hasn't changed
much in a long time. I'm willing to answer any questions you might
have on it.

Simo is the RedHat Samba maintainer, so he might be able to help
get this into the RH distro.

Jeremy.


More information about the samba mailing list