* [PATCH] jbd: jbd-debug and jbd2-debug should be writable.
@ 2009-12-04 3:17 Yin, Kangkai
2009-12-04 9:49 ` Aneesh Kumar K.V
0 siblings, 1 reply; 5+ messages in thread
From: Yin, Kangkai @ 2009-12-04 3:17 UTC (permalink / raw)
To: linux-ext4@vger.kernel.org
Cc: linux-kernel, Andrew Morton, Jan Kara, Yin, Kangkai
Hi,
Re-send since seems my mail was dropped by vger, because of my wrong
envelope_from..
----
I was trying to enable the jbd debug option, and found that jbd-debug
in debugfs is read-only, shouldn't that be writable?
Found in both .31 stable kernel and .32 one.
Thanks,
Kangkai
>From 492ec0453ca3458c68deaa6e308ca01acc0eca1f Mon Sep 17 00:00:00 2001
From: Yin Kangkai <kangkai.yin@intel.com>
Date: Thu, 3 Dec 2009 18:01:38 +0800
Subject: [PATCH] jbd: jbd-debug and jbd2-debug should be writable.
jbd-debug and jbd2-debug is currently read-only (S_IRUGO), which is not
correct. Make it writable so that we can start debuging.
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
---
fs/jbd/journal.c | 2 +-
fs/jbd2/journal.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
index 4160afa..bd224ee 100644
--- a/fs/jbd/journal.c
+++ b/fs/jbd/journal.c
@@ -1913,7 +1913,7 @@ static void __init jbd_create_debugfs_entry(void)
{
jbd_debugfs_dir = debugfs_create_dir("jbd", NULL);
if (jbd_debugfs_dir)
- jbd_debug = debugfs_create_u8("jbd-debug", S_IRUGO,
+ jbd_debug = debugfs_create_u8("jbd-debug", S_IRUGO | S_IWUSR,
jbd_debugfs_dir,
&journal_enable_debug);
}
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index fed8538..3c41c5a 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -2103,7 +2103,8 @@ static void __init jbd2_create_debugfs_entry(void)
{
jbd2_debugfs_dir = debugfs_create_dir("jbd2", NULL);
if (jbd2_debugfs_dir)
- jbd2_debug = debugfs_create_u8(JBD2_DEBUG_NAME, S_IRUGO,
+ jbd2_debug = debugfs_create_u8(JBD2_DEBUG_NAME,
+ S_IRUGO | S_IWUSR,
jbd2_debugfs_dir,
&jbd2_journal_enable_debug);
}
--
1.6.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] jbd: jbd-debug and jbd2-debug should be writable.
2009-12-04 3:17 [PATCH] jbd: jbd-debug and jbd2-debug should be writable Yin, Kangkai
@ 2009-12-04 9:49 ` Aneesh Kumar K.V
2009-12-25 20:48 ` tytso
0 siblings, 1 reply; 5+ messages in thread
From: Aneesh Kumar K.V @ 2009-12-04 9:49 UTC (permalink / raw)
To: Yin, Kangkai
Cc: linux-ext4@vger.kernel.org, linux-kernel, Andrew Morton, Jan Kara
On Fri, Dec 04, 2009 at 11:17:35AM +0800, Yin, Kangkai wrote:
> Hi,
>
> Re-send since seems my mail was dropped by vger, because of my wrong
> envelope_from..
>
> ----
> I was trying to enable the jbd debug option, and found that jbd-debug
> in debugfs is read-only, shouldn't that be writable?
>
> Found in both .31 stable kernel and .32 one.
>
> Thanks,
> Kangkai
>
> From 492ec0453ca3458c68deaa6e308ca01acc0eca1f Mon Sep 17 00:00:00 2001
> From: Yin Kangkai <kangkai.yin@intel.com>
> Date: Thu, 3 Dec 2009 18:01:38 +0800
> Subject: [PATCH] jbd: jbd-debug and jbd2-debug should be writable.
>
> jbd-debug and jbd2-debug is currently read-only (S_IRUGO), which is not
> correct. Make it writable so that we can start debuging.
>
> Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> ---
> fs/jbd/journal.c | 2 +-
> fs/jbd2/journal.c | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
> index 4160afa..bd224ee 100644
> --- a/fs/jbd/journal.c
> +++ b/fs/jbd/journal.c
> @@ -1913,7 +1913,7 @@ static void __init jbd_create_debugfs_entry(void)
> {
> jbd_debugfs_dir = debugfs_create_dir("jbd", NULL);
> if (jbd_debugfs_dir)
> - jbd_debug = debugfs_create_u8("jbd-debug", S_IRUGO,
> + jbd_debug = debugfs_create_u8("jbd-debug", S_IRUGO | S_IWUSR,
> jbd_debugfs_dir,
> &journal_enable_debug);
> }
> diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
> index fed8538..3c41c5a 100644
> --- a/fs/jbd2/journal.c
> +++ b/fs/jbd2/journal.c
> @@ -2103,7 +2103,8 @@ static void __init jbd2_create_debugfs_entry(void)
> {
> jbd2_debugfs_dir = debugfs_create_dir("jbd2", NULL);
> if (jbd2_debugfs_dir)
> - jbd2_debug = debugfs_create_u8(JBD2_DEBUG_NAME, S_IRUGO,
> + jbd2_debug = debugfs_create_u8(JBD2_DEBUG_NAME,
> + S_IRUGO | S_IWUSR,
> jbd2_debugfs_dir,
> &jbd2_journal_enable_debug);
> }
> --
> 1.6.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] jbd: jbd-debug and jbd2-debug should be writable.
2009-12-04 9:49 ` Aneesh Kumar K.V
@ 2009-12-25 20:48 ` tytso
2010-01-04 22:26 ` Jan Kara
0 siblings, 1 reply; 5+ messages in thread
From: tytso @ 2009-12-25 20:48 UTC (permalink / raw)
To: Aneesh Kumar K.V
Cc: Yin, Kangkai, linux-ext4@vger.kernel.org, linux-kernel,
Andrew Morton, Jan Kara
The ext4 portion has been added to the ext4 patch queue.
Jan, you want to add this to the ext3 tree?
- Ted
jbd: /sys/kernel/debug/jbd/jbd-debug should be writable.
From: "Yin, Kangkai" <kangkai.yin@intel.com>
Make this sysfs file writeable so we can enable debugging without
needing to reboot and futzing with boot command-line option.
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
---
fs/jbd/journal.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
index 4160afa..bd224ee 100644
--- a/fs/jbd/journal.c
+++ b/fs/jbd/journal.c
@@ -1913,7 +1913,7 @@ static void __init jbd_create_debugfs_entry(void)
{
jbd_debugfs_dir = debugfs_create_dir("jbd", NULL);
if (jbd_debugfs_dir)
- jbd_debug = debugfs_create_u8("jbd-debug", S_IRUGO,
+ jbd_debug = debugfs_create_u8("jbd-debug", S_IRUGO | S_IWUSR,
jbd_debugfs_dir,
&journal_enable_debug);
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] jbd: jbd-debug and jbd2-debug should be writable.
2009-12-25 20:48 ` tytso
@ 2010-01-04 22:26 ` Jan Kara
2010-01-05 16:35 ` tytso
0 siblings, 1 reply; 5+ messages in thread
From: Jan Kara @ 2010-01-04 22:26 UTC (permalink / raw)
To: tytso
Cc: Aneesh Kumar K.V, Yin, Kangkai, linux-ext4@vger.kernel.org,
linux-kernel, Andrew Morton, Jan Kara
On Fri 25-12-09 15:48:59, tytso@mit.edu wrote:
> The ext4 portion has been added to the ext4 patch queue.
>
> Jan, you want to add this to the ext3 tree?
Thanks for the notification. Actually, I've already sent the original
patch to Linus and that was for both jbd and jbd2. The patch was so trivial
I thought it's not worth splitting it up. I'm sorry if it caused any
trouble to you.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] jbd: jbd-debug and jbd2-debug should be writable.
2010-01-04 22:26 ` Jan Kara
@ 2010-01-05 16:35 ` tytso
0 siblings, 0 replies; 5+ messages in thread
From: tytso @ 2010-01-05 16:35 UTC (permalink / raw)
To: Jan Kara
Cc: Aneesh Kumar K.V, Yin, Kangkai, linux-ext4@vger.kernel.org,
linux-kernel, Andrew Morton
On Mon, Jan 04, 2010 at 11:26:14PM +0100, Jan Kara wrote:
> On Fri 25-12-09 15:48:59, tytso@mit.edu wrote:
> > The ext4 portion has been added to the ext4 patch queue.
> >
> > Jan, you want to add this to the ext3 tree?
> Thanks for the notification. Actually, I've already sent the original
> patch to Linus and that was for both jbd and jbd2. The patch was so trivial
> I thought it's not worth splitting it up. I'm sorry if it caused any
> trouble to you.
No worries, I hadn't realized it had already been sent up to Linus.
- Ted
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-05 16:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04 3:17 [PATCH] jbd: jbd-debug and jbd2-debug should be writable Yin, Kangkai
2009-12-04 9:49 ` Aneesh Kumar K.V
2009-12-25 20:48 ` tytso
2010-01-04 22:26 ` Jan Kara
2010-01-05 16:35 ` tytso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).