[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
address@hidden: Bug report: Incorrect error message for overwriting file
From: |
Bob Rogers |
Subject: |
address@hidden: Bug report: Incorrect error message for overwriting file with not enough disk space] |
Date: |
Fri, 4 Aug 2006 20:43:01 -0400 |
From: Richard Stallman <address@hidden>
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" <address@hidden>
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/