quotas and small files

Jeremy Allison jeremy at valinux.com
Fri Aug 3 19:34:56 GMT 2001


"DICKENS,CARY (HP-Loveland,ex2)" wrote:
> 
> Oops.  Sorry about that.

Got it - fixed. Apply this (simple) patch. It's now
in CVS (2.2 and HEAD).

Thanks,

Jeremy.

Index: smbd/reply.c
===================================================================
RCS file: /data/cvs/samba/source/smbd/reply.c,v
retrieving revision 1.240.2.52
diff -u -r1.240.2.52 reply.c
--- smbd/reply.c        11 Jul 2001 18:53:30 -0000      1.240.2.52
+++ smbd/reply.c        3 Aug 2001 19:29:10 -0000
@@ -2660,7 +2660,8 @@
      zero then the file size should be extended or
      truncated to the size given in smb_vwv[2-3] */
   if(numtowrite == 0) {
-      nwritten = vfs_set_filelen(fsp, (SMB_OFF_T)startpos);
+      /* This is actually a allocate call, not set EOF. JRA */
+      nwritten = vfs_allocate_file_space(fsp, (SMB_OFF_T)startpos);
   } else
     nwritten = write_file(fsp,data,startpos,numtowrite);

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list