• Andrew Morton's avatar
    [PATCH] swsusp: fix devfs breakage introduced in 2.6.6 · 12186dc4
    Andrew Morton authored
    From: Pavel Machek <pavel@ucw.cz>
    
    This fixes bad interaction between devfs and swsusp.
    
    Check whether the swap device is the specified resume device, irrespective of
    whether they are specified by identical names.
    
    (Thus, device inode aliasing is allowed.  You can say /dev/hda4 instead of
    /dev/ide/host0/bus0/target0/lun0/part4 [if using devfs] and they'll be
    considered the same device.  This is *necessary* for devfs, since the resume
    code can only recognize the form /dev/hda4, but the suspend code would like
    the long name [as shown in 'cat /proc/mounts'].)
    
    [Thanks to devfs hero whose name I forgot.]
    12186dc4
swsusp.c 33 KB