On Tuesday, 16 of December 2008, Alan Jenkins wrote: > This is on 2.6.27-rc9. I can easily test patches, or a more recent > kernel version. > > I think I've run across a bug in hibernation. Steps to reproduce: > > 1) Conspire to ensure insufficient swap space for hibernation > 2) Attempt to hibernate, and fail > 3) Attempt to hibernate *again*, and fail > 4) try swapoff > Outcome: > > # swapoff /dev/sda6 > swapoff: /dev/sda6: Invalid argument > # cat /proc/swaps > Filename Type Size Used > Priority > /dev/sda6 partition 1494004 1350564 -1 > > Incidentally "swapoff -a" fails silently, which I think is a bug in > swapoff (i.e. it should report the error). > > I don't see any backtraces in dmesg; the only errors it shows is the > failure to hibernate > > If I free up some memory and try to hibernate again, I get a different > error - "Cannot find swap device, try swapon -a.". Now swapon -a > doesn't work, but if I target the specific device... > > # swapon /dev/sda6 > # cat /proc/swaps > Filename Type Size Used > Priority > /dev/sda6 partition 1494004 331060 -1 > /dev/sda6 partition 1494004 0 -2 > > Wheee! Interestingly I can now hibernate and resume. But it's not > safe; my desktop session dies horribly. Well, I'm not sure if the bug is in the hibernate code or in the swap code. Anyway, please file a bugzilla report about that. Thanks, Rafael _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm