Skip to content
  • Eric Sandeen's avatar
    filesystem freeze: allow SysRq emergency thaw to thaw frozen filesystems · c2d75438
    Eric Sandeen authored
    
    
    Now that the filesystem freeze operation has been elevated to the VFS, and
    is just an ioctl away, some sort of safety net for unintentionally frozen
    root filesystems may be in order.
    
    The timeout thaw originally proposed did not get merged, but perhaps
    something like this would be useful in emergencies.
    
    For example, freeze /path/to/mountpoint may freeze your root filesystem if
    you forgot that you had that unmounted.
    
    I chose 'j' as the last remaining character other than 'h' which is sort
    of reserved for help (because help is generated on any unknown character).
    
    I've tested this on a non-root fs with multiple (nested) freezers, as well
    as on a system rendered unresponsive due to a frozen root fs.
    
    [randy.dunlap@oracle.com: emergency thaw only if CONFIG_BLOCK enabled]
    Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
    Cc: Takashi Sato <t-sato@yk.jp.nec.com>
    Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c2d75438