Eric Ren 079d37df33 dlm: fix malfunction of dlm_tool caused by debugfs changes
With the current kernel, `dlm_tool lockdebug` fails as below:

"dlm_tool lockdebug ED0BD86DCE724393918A1AE8FDBF1EE3
can't open /sys/kernel/debug/dlm/ED0BD86DCE724393918A1AE8FDBF1EE3:
Operation not permitted"

This is because table_open() depends on file->f_op to tell which
seq_file ops should be passed down. But, the original file ops in
file->f_op is replaced by "debugfs_full_proxy_file_operations" with
commit 49d200deaa68 ("debugfs: prevent access to removed files'
private data").

Currently, I can think up 2 solutions: 1st, replace
debugfs_create_file() with debugfs_create_file_unsafe();
2nd, make different table_open#() accordingly. The 1st one
is neat, but I don't thoroughly understand its risk. Maybe
someone has a better one.

Signed-off-by: Eric Ren <zren@suse.com>
Signed-off-by: David Teigland <teigland@redhat.com>
2016-08-26 13:22:14 -05:00
..
2014-02-14 11:54:44 -06:00
2011-07-15 12:30:43 -05:00
2016-06-21 09:04:24 -05:00
2016-06-21 09:04:24 -05:00
2014-02-14 11:54:44 -06:00
2012-07-16 14:16:19 -05:00
2016-06-21 09:04:24 -05:00
2012-11-01 15:27:24 -05:00
2014-11-19 14:48:02 -06:00
2014-11-19 14:48:02 -06:00
2008-04-21 11:22:28 -05:00
2014-02-14 11:54:44 -06:00
2012-01-04 08:56:31 -06:00
2011-07-12 16:02:09 -05:00
2008-12-23 10:15:40 -06:00
2015-11-05 11:15:25 -08:00
2012-07-16 14:16:19 -05:00
2014-02-14 11:54:44 -06:00
2014-02-14 11:54:44 -06:00
2012-08-08 11:33:49 -05:00
2012-05-02 14:15:27 -05:00
2011-03-10 10:40:00 -06:00
2008-02-04 01:23:43 -06:00
2006-01-18 09:30:29 +00:00