quotas and small files

Jeremy Allison jeremy at valinux.com
Fri Aug 3 22:49:30 GMT 2001

Can you call me at work on 510 687 7086 (pacific time)
as I can see the problem, but am not sure why we're not
returning the correct error code...


Try this patch also adds a debug needed to give me more
info. The SMBwrite should be failing with an ERRHRD,ERRdiskfull
error pair, instead it's failing with the standard ERRnoaccess
instead. It should be picking up the ENOSPC or EDQUOT error
messages and mapping them into ERRHRD,ERRdiskfull:

Index: smbd/vfs.c
RCS file: /data/cvs/samba/source/smbd/vfs.c,v
retrieving revision
diff -u -r1.16.2.18 vfs.c
--- smbd/vfs.c  1 Aug 2001 22:13:48 -0000
+++ smbd/vfs.c  3 Aug 2001 22:35:21 -0000
@@ -479,6 +479,8 @@
                                int save_errno = errno;
                                fsp->conn->vfs_ops.ftruncate(fsp, fsp->fd, st.st_size);
                                errno = save_errno;
+                               DEBUG(10,("vfs_allocate_file_space: file %s, grow. write fail %s\n",
+                                       fsp->fsp_name, strerror(errno) ));
                                return -1;
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