LINHIB0001 hibernate signature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
  libblkid and friends stopped detecting my swap partition on
my Ubuntu laptop that I'm running the bleeding edge natty repo on
(e.g. wipefs shows nothing, and I can't get a uuid from blkid).
It's running 2.6.37-2 kernel and this bug persists in the latest
git from  git.kernel.org/pub/scm/utils/util-linux-ng version 07b33...40a8

I think this is due to the change in the hibernate signature from 
this patch:

http://www.gossamer-threads.com/lists/linux/kernel/1283551

If I look at the header of my partition I see:

0007740 027 ! \0 \0 \0 \0 \0 \0 001 \0 \0 \0 S W A P
         17 21 00 00 00 00 00 00 01 00 00 00 53 57 41 50
0007760 S P A C E 2 L I N H I B 0 0 0 1
         53 50 41 43 45 32 4c 49 4e 48 49 42 30 30 30 31

Looking at shlibs/blkid/src/superblocks/swap.c I see it's
looking for the SWAPSPACE2 signature at the address where
I ahve LINHIB0001.

What's the right fix here?  Is it to add the LINHIB0001 to the
swsuspend match table?  Or is it more subtle - the SWAPSPACE2 in my
header above is 10 bytes earlier than the one that util-linux is looking
for.  How are these headers supposed to work - should that LINHIB0001
still be there or is it due to a failed resume?  I assume
libblkid should still find it even in that case?

Here is an Ubuntu bug that I filled in for it:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/682176

Thanks in advance,

Dave (please cc since I'm not subscribed).

-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\ gro.gilbert @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux