From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.devel Subject: [riceowlguy@gmail.com: Bug report: Incorrect error message for overwriting file with not enough disk space] Date: Fri, 4 Aug 2006 20:43:01 -0400 Message-ID: <17619.59797.478058.817402@rgrjr.dyndns.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154738606 31752 80.91.229.2 (5 Aug 2006 00:43:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Aug 2006 00:43:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 05 02:43:22 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G9AG8-00010P-OD for ged-emacs-devel@m.gmane.org; Sat, 05 Aug 2006 02:43:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9AG8-0007Rn-Ad for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2006 20:43:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G9AFw-0007Ql-0M for emacs-devel@gnu.org; Fri, 04 Aug 2006 20:43:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G9AFr-0007NN-LP for emacs-devel@gnu.org; Fri, 04 Aug 2006 20:43:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9AFr-0007N8-Ar for emacs-devel@gnu.org; Fri, 04 Aug 2006 20:43:03 -0400 Original-Received: from [24.128.218.106] (helo=rgrjr.dyndns.org) by monty-python.gnu.org with smtp (Exim 4.52) id 1G9AJW-00012U-Di for emacs-devel@gnu.org; Fri, 04 Aug 2006 20:46:50 -0400 Original-Received: (qmail 30542 invoked by uid 500); 5 Aug 2006 00:43:01 -0000 Original-To: rms@gnu.org, riceowlguy@gmail.com In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58109 Archived-At: From: Richard Stallman Date: Thu, 03 Aug 2006 20:34:44 -0400 Can anyone arrange to test this for the current version? It is important for Emacs to work right in such situations. Please ack if you can test it. I cannot reproduce this. ------- Start of forwarded message ------- Date: Wed, 2 Aug 2006 11:48:17 -0500 From: "Alex Hemsath" Subject: Bug report: Incorrect error message for overwriting file with not enough disk space Bug report for Gnu Emacs Version: 21.4.2 OS: Mandriva Linux 2006 Free Filesystem: ext3 Scenario: overwriting (C-x C-w) an existing file, where the new file to be written is larger than the available disk space on the filesystem where the original file is kept. Bug: after confirming that it is okay to overwrite the existing file, the error message displayed is "file already exists". Expected behavior: error message should read "No space left on device or similar". strace confirms that emacs is getting the right errno (ENOSPC) for the write to the file handle. Thanks, Alex I did the following: 1. emacs -Q 2. "C-x C-f /usr/te TAB fou TAB RET" to read a 4MB file from a 6MB partition. 3. "C-x C-w tri TAB RET" to overwrite the existing zero-length /usr/test/trial file. 4. "SPC" at the "File `/usr/test/trial' exists; overwrite? (y or n)" prompt to confirm. 5. emacs responds with the following messages: Saving file /usr/test/trial... basic-save-buffer-2: IO error writing /usr/test/trial: No space left on device This is on GNU/Linux (SuSE 9.0), where /usr/test/ is an ext3 partition, using an Emacs built from CVS on 22-July; is that close enough? I will retest with a more up-to-date version, but that may take a while. -- Bob Rogers http://rgrjr.dyndns.org/