[BUG] 0.8.0- Failed to swapoff swap file

Bug #599133 reported by Roman Horník
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BleachBit
Fix Released
High
Andrew Ziem

Bug Description

Hi Andrew,

I found that BleachBit 0.8.0 is not able to flush my swap file (yes, I'm currently using swap file instead of swap partition).

BB output:

| Unexpected output:
| args='['swapoff', '-a', '-v']'
| stdout='swapoff on /home/SWAP
| '
| stderr=''

/etc/fstab:

| # <file system> <mount point> <type> <options> <dump> <pass>
| proc /proc proc defaults 0 0
| /dev/sda1 / xfs noatime,nodiratime,logbufs=8 0 1
| /home/SWAP swap swap defaults 0 0
| /dev/sda3 /home xfs noatime,nodiratime,logbufs=8,nodev 0 2
| /dev/sdb1 /var/WWW xfs noatime,nodiratime,logbufs=8,nodev 0 2
| /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
| /dev/hdb /media/cdrom1 udf,iso9660 user,noauto 0 0

file /home/SWAP:

| /home/SWAP: Linux/i386 swap file (new style), version 1 (4K pages), size 1048575 pages, no label, UUID=7a67d766-6164-44f2-bedd-055e8fca8f08

Size: 4GiB
Pwner, group: root
Permissions: -rw-r--r--

OS: Debian Sid (+ Experimental)
Linux 2.6.32-5-686

BB 0.8.0 from repo
Python 2.6.5+
GNOME 2.30

Tags: bug
Revision history for this message
Andrew Ziem (ahziem1) wrote :

If I remember correctly, BleachBit assumes all swap devices are partitions. I'll look

Changed in bleachbit:
importance: Undecided → High
Revision history for this message
Andrew Ziem (ahziem1) wrote :

Please test the fix by replacing your Memory.py with this file or by waiting for the beta release.

http://bleachbit.svn.sourceforge.net/viewvc/bleachbit/trunk/bleachbit/Memory.py?revision=2246

Thank you for the bug report

Changed in bleachbit:
assignee: nobody → Andrew Ziem (ahziem1)
milestone: none → 0.8.5
status: New → Fix Committed
Revision history for this message
Andrew Ziem (ahziem1) wrote :
Changed in bleachbit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.