From owner-freebsd-stable@FreeBSD.ORG Mon Feb 20 00:46:43 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 84408106564A for ; Mon, 20 Feb 2012 00:46:43 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 36C608FC0A for ; Mon, 20 Feb 2012 00:46:42 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAHqXQU+DaFvO/2dsb2JhbABEhRKuHoFzAQEBAwEBAQEgKyALBRYYAgINGQIpAQkmBggHBAEcBIdfCadmkH+BL4gdAYIyGg4IAQECFgEJAgkQAoM0ATMFAgIBAgECAQsBAw2CLoEWBIhOikGCKJMLgT4 X-IronPort-AV: E=Sophos;i="4.73,447,1325480400"; d="scan'208";a="160203661" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 19 Feb 2012 19:46:42 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 1153AB3F7F; Sun, 19 Feb 2012 19:46:42 -0500 (EST) Date: Sun, 19 Feb 2012 19:46:42 -0500 (EST) From: Rick Macklem To: Jeremie Le Hen Message-ID: <1984136644.1631414.1329698802016.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20120219213607.GO31770@felucia.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-stable@FreeBSD.org Subject: Re: "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: Mon, 20 Feb 2012 00:46:43 -0000 Jeremie Le Hen wrote: > 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 :). > AFAIK, NFSv4 style ACLs are always enabled for ZFS and cannot be turned off. > Thanks. > -- > Jeremie Le Hen > > Men are born free and equal. Later on, they're on their own. > Jean Yanne > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org"