From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jack Holloway Newsgroups: gmane.emacs.bugs Subject: bug#6237: 23.2; INSUFFICIENT RESOURCES writing file via CIFS Date: Fri, 21 May 2010 19:12:41 -0700 Message-ID: <4BF73D99.4060007@sprucehead.com> References: <4BF5F6A1.8020206@sprucehead.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274495238 19582 80.91.229.12 (22 May 2010 02:27:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 May 2010 02:27:18 +0000 (UTC) Cc: 6237@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 22 04:27:16 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OFeQm-0005VO-9a for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 May 2010 04:27:16 +0200 Original-Received: from localhost ([127.0.0.1]:35692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFeQl-0000Ne-JS for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 May 2010 22:27:15 -0400 Original-Received: from [140.186.70.92] (port=56869 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFeQc-0000LO-Py for bug-gnu-emacs@gnu.org; Fri, 21 May 2010 22:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFeQa-0005aW-V3 for bug-gnu-emacs@gnu.org; Fri, 21 May 2010 22:27:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47913) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFeQa-0005aS-TQ for bug-gnu-emacs@gnu.org; Fri, 21 May 2010 22:27:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OFeCz-0006te-MW; Fri, 21 May 2010 22:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jack Holloway Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 May 2010 02:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6237 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6237-submit@debbugs.gnu.org id=B6237.127449436726504 (code B ref 6237); Sat, 22 May 2010 02:13:01 +0000 Original-Received: (at 6237) by debbugs.gnu.org; 22 May 2010 02:12:47 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFeCl-0006tR-C9 for submit@debbugs.gnu.org; Fri, 21 May 2010 22:12:47 -0400 Original-Received: from b.mail.sonic.net ([64.142.19.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFeCi-0006tL-GY for 6237@debbugs.gnu.org; Fri, 21 May 2010 22:12:45 -0400 Original-Received: from [127.0.0.1] (c-98-234-53-112.hsd1.ca.comcast.net [98.234.53.112]) (authenticated bits=0) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id o4M2Cdbc022356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 May 2010 19:12:39 -0700 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: X-Antivirus: avast! (VPS 100521-1, 05/21/2010), Outbound message X-Antivirus-Status: Clean X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 21 May 2010 22:13:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37165 Archived-At: Sorry for the gaffe -- this should be plain text. Let me know if it's not. --------------------- Saving a 32MB file to a CIFS path fails. Examining Procmon events shows a return status "INSUFFICIENT RESOURCES" on a WriteFile with length 32MB. Perhaps write-region should break down the write into a series of blksize writes? Here's the relevant backtrace: Debugger entered--Lisp error: (error "IO error writing z:/Temp/test/tmp2092CxD: Invalid argument") write-region(nil nil "z:/Temp/test/tmp2092CxD" nil "z:/Temp/test/temp-write-once-032768" "z:/Temp/test/temp-write-once-032768" excl) byte-code("..." [dir tempname realname buffer-file-truename make-temp-name expand-file-name "tmp" write-region nil excl] 8) basic-save-buffer-2() basic-save-buffer-1() basic-save-buffer() save-buffer() write-file("z:/Temp/test/temp-write-once-032768") This was running on Windows XP64 Professional SP2. The drive "z:" is mapped to a NAS running Samba. This error doesn't occur when writing to the host's internal NTFS, it does occur with other CIFS targets. copy-file doesn't have this problem. In GNU Emacs 23.2.1 (i386-mingw-nt5.2.3790) of 2010-05-08 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 5.2.3790 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include' On 5/21/2010 6:51 PM, Stefan Monnier wrote: > Thank you for your report. But I find it difficult to read it because > it is in HTML format. Can you please reply with a plain text version? > Thank you, > > > Stefan > >