You are not logged in.

#1 2009-02-17 09:23:14

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Does pacman throw an alert if disk becomes full?

Hi, I have an asus eeepc with only 20GB, and I had had installed arch in a 4GB partition 3 months ago. When I was working with pacman installing something, the partition became full in the middle of the installation, outputting over the screen several errors; nevertheless, pacman continued its work process. This caused a huge inconsistency in the package manager and in the file system, making me formatting the eeepc and installing ubuntu, all this because pacman did not check previously if there was enough space on disc.

I would want to know if this problem was solved (pacman now checks if disk is full) and can install arch again safely.

Greetings


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#2 2009-02-17 09:33:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Does pacman throw an alert if disk becomes full?

I think some code has been proposed and possibly committed that will abort a transaction when a disk becomes full.  Here is the bug report: http://bugs.archlinux.org/task/11639?project=3

Offline

#3 2009-02-17 09:39:31

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: Does pacman throw an alert if disk becomes full?

aptitude implements the disk checking. Maybe it can be reused...


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#4 2009-02-17 09:42:47

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Does pacman throw an alert if disk becomes full?

Maybe it could...  but it requires someone interested in fixing this problem to look at how it is implemented.  Volunteers?

Offline

#5 2009-02-17 10:34:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Does pacman throw an alert if disk becomes full?

Davigetto wrote:

This caused a huge inconsistency in the package manager and in the file system, making me formatting the eeepc and installing ubuntu

We urgently need to fix that bug where pacman makes people install ubuntu. It's simply unacceptable.

Offline

#6 2009-02-19 21:39:44

ybotspawn
Member
From: Oz
Registered: 2008-04-06
Posts: 140

Re: Does pacman throw an alert if disk becomes full?

Excuse me putting my tip toes into the water, but what language is pacman written in again?  Being recently burned by this I wouldn't mind to give it a go, that is if it's a language I feel comfortable with.


"As long as people are going to call you a lunatic anyway,
why not get the benefit of it? It liberates you from convention. "

Offline

#7 2009-02-19 21:41:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Does pacman throw an alert if disk becomes full?

pacman is written in C

Offline

#8 2009-02-19 21:42:28

ybotspawn
Member
From: Oz
Registered: 2008-04-06
Posts: 140

Re: Does pacman throw an alert if disk becomes full?

Mind if I give a go then?  I've never done any kind of development for the community and some advice would be greatly appreciated.


"As long as people are going to call you a lunatic anyway,
why not get the benefit of it? It liberates you from convention. "

Offline

#9 2009-02-19 23:22:47

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Does pacman throw an alert if disk becomes full?

Isn't this actually a libarchive problem? libalpm appears to check the return code from extracting each file, and logs either a warning or error as appropriate. If it doesn't return an error for a full disk, there isn't much libalpm or pacman can do about it.

Offline

#10 2009-02-19 23:39:44

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Does pacman throw an alert if disk becomes full?

I really have no idea as I have never looked into this.  I think Dan (toofishes) committed some things that made the situation better, but still not as good as it could be.  It would be best to make a post on the pacman-dev mailing list to find out the current status.

Offline

#11 2009-02-20 07:00:23

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Does pacman throw an alert if disk becomes full?

ataraxia wrote:

Isn't this actually a libarchive problem? libalpm appears to check the return code from extracting each file, and logs either a warning or error as appropriate. If it doesn't return an error for a full disk, there isn't much libalpm or pacman can do about it.

Yeah, the problem is that it is reported as a warning, and not as an error. Pacman didn't stop on warnings because, we thought warnings could be ignored. Maybe not after all. The following commit changes this, but it has not been merged yet :
http://code.toofishes.net/gitweb.cgi?p= … ba1e506470


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB