Bug 818822

Summary: off-by-one in swap label handling
Product: [openSUSE] openSUSE 12.3 Reporter: Olaf Hering <ohering>
Component: YaST2Assignee: Thomas Fehr <fehr>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: suse-beta
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: Outsourced Testing Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Olaf Hering 2013-05-07 18:43:24 UTC
fresh 12.3 in a VM.

The swap label length in fstab and on-disk differs. As a result, no swap is activated.


hammer56:~ # blkid
/dev/sda1: LABEL="12.3G_SWAP_WICK" UUID="ee772f16-5ed6-429c-8997-2265a5858564" TYPE="swap" 
/dev/sda2: LABEL="12.3G_ROOT_WICKE" UUID="da1638a7-b1cb-478b-8ad6-f311e8972164" TYPE="ext3" 
/dev/sr0: LABEL="openSUSE-12.3-DVD-x86_640110" TYPE="iso9660" 
hammer56:~ # cat /etc/fstab
LABEL=12.3G_SWAP_WICKE swap                 swap       defaults              0 0
LABEL=12.3G_ROOT_WICKE /                    ext3       noatime,acl,user_xattr 1 1
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
hammer56:~ #
Comment 1 Thomas Fehr 2013-05-13 11:24:59 UTC
Seem maximal supported label size for swap is 15, not 16 like all other fs have.
Fixed in libstorage.