From owner-freebsd-stable@FreeBSD.ORG Sun Feb 19 21:36:16 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 498581065676 for ; Sun, 19 Feb 2012 21:36:16 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8718FC1B for ; Sun, 19 Feb 2012 21:36:13 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id E270BD48062 for ; Sun, 19 Feb 2012 22:36:08 +0100 (CET) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id AF68320CE; Sun, 19 Feb 2012 21:36:07 +0000 (UTC) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id 6C26C3E53; Sun, 19 Feb 2012 21:36:07 +0000 (UTC) Date: Sun, 19 Feb 2012 22:36:07 +0100 From: Jeremie Le Hen To: freebsd-stable@FreeBSD.org Message-ID: <20120219213607.GO31770@felucia.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: jeremie@le-hen.org Subject: "File too large" error when appending to a file of 130 MB X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 21:36:16 -0000 Hi list, Can you please Cc: me when replying as I'm not subscribed, thanks. I have a problem with procmail which gets a "File too large" error when it tries to write at the end of some mailbox file. I truss'ed it and I found the following: % stat("/home/jlh/Mail//mbox1",{ mode=-rw------- ,inode=336983,size=138744672,blksize=131072 }) = 0 (0x0) % open("/home/jlh/Mail//mbox1",O_WRONLY|O_APPEND|O_CREAT,0667) = 5 (0x5) % lseek(5,0x0,SEEK_END) = 138744672 (0x8451360) % wait4(0xffffffff,0x0,0x1,0x0,0x3,0x5) ERR#10 'No child processes' % lseek(5,0x0,SEEK_CUR) = 138744672 (0x8451360) % fcntl(5,F_SETLKW,0xffffd9a4) = 0 (0x0) % lseek(5,0x0,SEEK_END) = 138744672 (0x8451360) % write(5,"F",1) ERR#27 'File too large' % fstat(5,{ mode=-rw------- ,inode=336983,size=138744672,blksize=131072 }) = 0 (0x0) % write(5,"rom lionel.messien+caf_=jlh=chch"...,3627) ERR#27 'File too large' I can append something to the file manually. I wonder if the error doesn't come from the SETLKW fnctl(2) call, but I cannot experiment it because truss(1) doesn't show the content of the flock structure. If I change the procmail recipe to write to another file (which doesn't exist), the file is successfully created and messages can be appended. I narrowed down the failure threshold between 48 MB and 49 MB (in steps of 64 KB, it failed between 781 and 782 blocks). This is a 8.2 32 bits jail on a 8.2 amd64 host. In the jail, /home is a nullfs mounted ZFS filesystem. The mailbox is not that big: % felucia:jlh$ ls -l Mail/mbox1 % -rw-------+ 1 jlh jlh 138744672 Feb 19 11:46 Mail/mbox1 (( For some unknown reason some ACL keep appearing, but the problem if still there anyway if I do setfacl -b on it: % felucia:jlh$ getfacl Mail/mbox1 % # file: Mail/mbox1 % # owner: jlh % # group: jlh % owner@:rw-p--aARWcCos:------:allow % group@:------a-R-c--s:------:allow % everyone@:------a-R-c--s:------:allow )) Does anyone have an idea about this error? Besides, if someone knows why those ACLs keep appearing, I would be glad to know it :). Thanks. -- Jeremie Le Hen Men are born free and equal. Later on, they're on their own. Jean Yanne