bugGNU patch - Bugs: bug #28453, "No space left on...


bug #28453: "No space left on device" should indicate where it tried to write

Submitter:  Christoph Berg <myon>
Submitted:  Thu 31 Dec 2009 06:21:07 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Mon 19 Aug 2019 08:28:31 PM UTC, comment #2: 

I am attaching my patch that helps this situation a bit. This patch allows context to be printed when a write error occurs.

(file #47363)

Jesse <newguy>
Sun 23 Jun 2019 06:39:36 PM UTC, comment #1: 

I have made a small change to the way write errors are handled which allows an (optional) filename to be passed to be printed to the console. It's not ideal yet as there are some places where patch is not (internally) keeping track of the filename, but this seems like a step in the right direction.

Jesse <newguy>
Thu 31 Dec 2009 06:21:07 PM UTC, original submission:  

From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=137075 and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=239135:

When system runs out of disk space while applying big patch, it is
nearly impossible to continue, because patch only reports

* out of disk space

but does not say which file was last it touched. If it said that, I
could kill all already-processed files from the patch.

When patching a kernel,
I had this message from patch :

patch: ** write error : No space left on device

It should print the file it tried to write (ie /tmp/patchXXXX),
to give clues about what's happening...

there is space on the partition with the software to patch,
but not in the /tmp.

the message is misguiding : the reader might believe there is
no space on the partition he is trying to patch

[I'm unsure about the first bit, as patch does say which file it did touch unless with --silent, but the second bit sounds worthwhile to tackle. -- Christoph Berg]

Christoph Berg <myon>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #47363:  patch-28453.txt added by newguy (9KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by newguy (Posted a comment)
  • -email is unavailable- added by myon (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-19 newguy Attached File- Added patch-28453.txt, #47363

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code