Re: [PATCH 3/7] fault-injection: notifier error injection

2011-07-03 Thread Akinobu Mita
2011/7/4 Pavel Machek : > >> +     for (action = enb->actions; action->name; action++) { >> +             struct dentry *file = debugfs_create_int(action->name, mode, >> +                                             enb->dir, &action->error); >> + >> +             if (!file) { >> +                

Re: [PATCH 3/7] fault-injection: notifier error injection

2011-07-03 Thread Pavel Machek
> + for (action = enb->actions; action->name; action++) { > + struct dentry *file = debugfs_create_int(action->name, mode, > + enb->dir, &action->error); > + > + if (!file) { > + debugfs_remove_recursive(en

[PATCH 3/7] fault-injection: notifier error injection

2011-07-03 Thread Akinobu Mita
The notifier error injection provides the ability to inject artifical errors to specified notifier chain callbacks. It is useful to test the error handling of notifier call chain failures. This adds common basic functions to define which type of events can be fail and to initialize the debugfs int