[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2013-06-14 Thread Luca Falavigna
Fixed in 0.9.5

** Changed in: bleachbit (Ubuntu)
   Status: Fix Committed => Fix Released

** Changed in: bleachbit
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2013-03-22 Thread Luca Falavigna
** Changed in: bleachbit (Ubuntu)
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2013-01-01 Thread Andrew Ziem
** Changed in: bleachbit
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2013-01-01 Thread Johnny Ooi
I copied that file over the existing one and ran bleachbit. It now
berhaves correctly, with no errors when wiping the swap.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2013-01-01 Thread Andrew Ziem
Jonny Ooi:

Please try replacing your Memory.py with this file
https://sourceforge.net/p/bleachbit/code/2810/tree/trunk/bleachbit/Memory.py?format=raw

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2012-12-30 Thread Andrew Ziem
** Also affects: bleachbit
   Importance: Undecided
   Status: New

** Changed in: bleachbit (Ubuntu)
   Status: In Progress => New

** Changed in: bleachbit
   Status: New => In Progress

** Changed in: bleachbit (Ubuntu)
 Assignee: Andrew Ziem (ahziem1) => (unassigned)

** Changed in: bleachbit
 Assignee: (unassigned) => Andrew Ziem (ahziem1)

** Changed in: bleachbit
Milestone: None => 0.9.5

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2012-12-22 Thread Johnny Ooi
Sure:

$ sudo blkid /dev/mapper/lubuntu-swap_1
/dev/mapper/lubuntu-swap_1: UUID="015c1a05-8877-45c1-bad5-520c25b9306c" 
TYPE="swap" 

$ sudo size /dev/mapper/lubuntu-swap_1
size: Warning: '/dev/mapper/lubuntu-swap_1' is not an ordinary file

$ sudo fdisk -s /dev/mapper/lubuntu-swap_1
6283264

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2012-12-22 Thread Andrew Ziem
Would you also run these commands and show me the output?

blkid /dev/mapper/lubuntu-swap_1
size /dev/mapper/lubuntu-swap_1
fdisk -s /dev/mapper/lubuntu-swap_1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2012-12-22 Thread Johnny Ooi
LVM can be a real bum to manage, I agree.

And yes, dm-1 is the same as lubuntu_swap_1:

$ ls -l /dev/mapper
total 0
crw--- 1 root root 10, 236 Dec 22 10:59 control
lrwxrwxrwx 1 root root   7 Dec 22 10:59 lubuntu-root -> ../dm-0
lrwxrwxrwx 1 root root   7 Dec 22 10:59 lubuntu-swap_1 -> ../dm-1

$ ls -l /dev/dm*
brw-rw 1 root disk 252, 0 Dec 22 10:59 /dev/dm-0
brw-rw 1 root disk 252, 1 Dec 22 10:59 /dev/dm-1

$ swapon -s
FilenameTypeSizeUsedPriority
/dev/mapper/lubuntu-swap_1  partition   6283260 200732  -1

So I guess you could use the output from swapon to determine the size
(third column)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2012-12-22 Thread Andrew Ziem
Years ago I used LVM a little, but I am not familar with it---especially
with regards to swap. To find out how big the swap file is, BleachBit is
expecting to find /dev/mapper/lubuntu-swap_1 in /proc/swaps, but the
only device there is /dev/dm-1.  Are these somehow synonymous?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2012-12-22 Thread Andrew Ziem
** Changed in: bleachbit (Ubuntu)
   Status: Fix Committed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs



[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2012-12-22 Thread Johnny Ooi
I have applied that fix, and whilst I no longer get the same error, it
still does not complete successfully:

>>
debug: disabling swap
debug: running cmd  ['swapoff', '-a', '-v']
debug: detected swap devices: ['/dev/mapper/lubuntu-swap_1']
info: wiping swap device '/dev/mapper/lubuntu-swap_1'
Traceback (most recent call last):
  File "/usr/share/bleachbit/bleachbit/Worker.py", line 88, in execute
for ret in cmd.execute(self.really_delete):
  File "/usr/share/bleachbit/bleachbit/Command.py", line 131, in execute
for func_ret in self.func():
  File "/usr/share/bleachbit/bleachbit/Memory.py", line 250, in wipe_memory
wipe_swap_linux(devices, proc_swaps)
  File "/usr/share/bleachbit/bleachbit/Memory.py", line 227, in wipe_swap_linux
if get_swap_size_linux(device, proc_swaps) > 8*1024**3:
  File "/usr/share/bleachbit/bleachbit/Memory.py", line 140, in 
get_swap_size_linux
(device, proc_swaps))
RuntimeError: error: cannot find size of swap device 
'/dev/mapper/lubuntu-swap_1'
FilenameTypeSizeUsedPriority
/dev/dm-1   partition   6283260 19292   -1

error: cannot find size of swap device '/dev/mapper/lubuntu-swap_1'
FilenameTypeSizeUsedPriority
/dev/dm-1   partition   6283260 19292   -1
Disk space recovered: 16.4kB
Files deleted: 4
Special operations: 14
Errors: 2
<<

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1092792] Re: "Unexpected output" when cleaning LVM swap partition

2012-12-21 Thread Andrew Ziem
Thank you for the detailed bug report.  Potential fix commited in SVN
revision 2743.  Could you verify this patch?

http://bleachbit.svn.sourceforge.net/viewvc/bleachbit/trunk/bleachbit/Memory.py?r1=2624&r2=2743

** Changed in: bleachbit (Ubuntu)
   Status: New => Fix Committed

** Changed in: bleachbit (Ubuntu)
 Assignee: (unassigned) => Andrew Ziem (ahziem1)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1092792

Title:
  "Unexpected output" when cleaning LVM swap partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bleachbit/+bug/1092792/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs