mfrw / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

Two ramzswaps may use the same backing device #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup 2 ramzswap devices with the same backing swap device.
2. swapon both swaps.

All commands succeed.
SwapTotal in /proc/meminfo equals double size of backing swap.

What version of the product are you using? On what operating system?
ramzswap driver bundled with Linux 2.6.33
rzcontrol tool from compcache-0.6.2

I suppose ramzswap device must exclusively lock in some manner its backing
device, so that second ramzswap device would fail to use the same backing
device.

Original issue reported on code.google.com by cons...@gmail.com on 25 Feb 2010 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by nitingupta910@gmail.com on 26 Feb 2010 at 6:06

GoogleCodeExporter commented 9 years ago
Fix committed. Now a particular backing swap cannot be assigned to more than one
ramzswap device (otherwise rzscontrol --init will fail).

Thanks,
Nitin

Original comment by nitingupta910@gmail.com on 14 Mar 2010 at 7:55