~ubuntu-branches/ubuntu/vivid/aufs/vivid

« back to all changes in this revision

Viewing changes to fs/aufs/sysrq.c

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-05-06 18:35:50 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080506183550-0b6c974kkgc46oeh
Tags: 0+20080506-1
* New upstream release, supports Kernel 2.6.25 (Closes: #479717)
* Fix building with older Kernels (Closes: #475042)
* Update the patches 01, 04 and 07 to also patch fs/aufs25

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 */
18
18
 
19
 
/* $Id: sysrq.c,v 1.1 2008/03/31 07:46:58 sfjro Exp $ */
 
19
/*
 
20
 * magic sysrq hanlder
 
21
 *
 
22
 * $Id: sysrq.c,v 1.3 2008/04/13 23:45:40 sfjro Exp $
 
23
 */
20
24
 
21
25
#include <linux/fs.h>
 
26
#include <linux/module.h>
22
27
#include <linux/sysrq.h>
23
28
#include <linux/version.h>
24
29
 
25
30
#include "aufs.h"
26
31
 
27
32
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
28
 
BUILD_BUG_ON(1);
 
33
#error mis-configuraion or Makefile
29
34
#elif !defined(pr_warning)
30
35
#define pr_warning(fmt, arg...) printk(KERN_WARNING fmt, ##arg)
31
36
#endif
62
67
 
63
68
/* ---------------------------------------------------------------------- */
64
69
 
 
70
static char *aufs_sysrq_key = "a";
 
71
MODULE_PARM_DESC(sysrq, "MagicSysRq key for " AUFS_NAME);
 
72
module_param_named(sysrq, aufs_sysrq_key, charp, S_IRUGO);
 
73
 
65
74
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
66
75
static void au_sysrq(int key, struct tty_struct *tty)
67
76
#else
68
77
static void au_sysrq(int key, struct pt_regs *regs, struct tty_struct *tty)
69
78
#endif
70
79
{
71
 
        struct aufs_sbinfo *sbinfo;
 
80
        struct au_sbinfo *sbinfo;
 
81
 
 
82
#if 0
 
83
        if (au_debug_test())
 
84
                au_debug_off();
 
85
        else
 
86
                au_debug_on();
 
87
#endif
72
88
 
73
89
        //mutex_lock(&au_sbilist_mtx);
74
90
        list_for_each_entry(sbinfo, &au_sbilist, si_list)