On 16/11/10 18:02, Bryce Gibson wrote:
Hi Allan, I just wanted to ask, it looks like your patches will make a sync fail if it finds there's not enough space, is that correct? Because I'd suggest a warning may be more appropriate, especially for use cases like compressed filesystems. Cheers Bryce ps. I noticed that space checking can be completely disabled via pacman.conf, which may be seen as a suitable solution for people in these types of situation.
Disabling checking in pacman.conf is what I would recommend in these sort of cases. These are the sort of things we will only find out after we get some widespread usage of the feature. I would be interested in what the size calculations actually do on compressed filesystems.
Allan
Just FYI :) One that should succeed: df -h /asd Filesystem Size Used Avail Use% Mounted on /dev/root 463M 381M 82M 83% / src/pacman/pacman -S --debug nano --dbpath `pwd`/db --root /asd ... Targets (5): linux-api-headers-2.6.34-1 tzdata-2010o-1 glibc-2.12.1-4 ncurses-5.7-4 nano-2.2.5-1 Total Download Size: 0.00 MB Total Installed Size: 50.53 MB Proceed with installation? [Y/n] y ... debug: checking available disk space ... debug: partition /, needed 12719, free 20766 debug: installing packages Or one that "should" fail (I think it _just_ doesn't fit in reality, seems to fail on the last package, but now I've crashed my machine somewhat, so I can't confirm for certain): df -h /asd Filesystem Size Used Avail Use% Mounted on /dev/root 463M 381M 82M 83% / src/pacman/pacman -S --debug python nano --dbpath `pwd`/db --root /asd ... Targets (24): linux-api-headers-2.6.34-1 tzdata-2010o-1 glibc-2.12.1-4 expat-2.0.1-5 bzip2-1.0.6-1 ncurses-5.7-4 readline-6.1.002-1 bash-4.1.009-1 gdbm-1.8.3-7 gcc-libs-4.5.1-1 db-5.1.19-3 zlib-1.2.5-2 cracklib-2.8.16-1 pam-1.1.1-2 shadow-4.1.4.2-3 attr-2.4.44-1 acl-2.2.49-1 gmp-5.0.1-1 libcap-2.19-1 coreutils-8.7-1 perl-5.12.1-3 openssl-1.0.0.a-3 python-3.1.2-2 nano-2.2.5-1 Total Download Size: 0.00 MB Total Installed Size: 217.92 MB Proceed with installation? [Y/n] y ... debug: partition /, needed 54492, free 20766 debug: returning error 7 from _alpm_check_diskspace : not enough disk space error: not enough free disk space Errors occurred, no packages were upgraded. This is on reiser4 with the lzo compression plugin. Cheers Bryce -- Please note this email and any attachments are intended exclusively for the use of the company or individual shown as the addressee(s). If you have reason to believe you are not the intended recipient please notify the sender by return email immediately and destroy the message you received without making any copies. Any copying, interference or disclosure of this message is therefore unauthorised and expressly prohibited. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Gibson Consulting Services P/L. We do not warrant that this message is virus free. Please perform your own virus check before opening any attachment.