All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] Remove unecessary ERROR when removing non-empty directory
@ 2013-05-20 15:06 Goldwyn Rodrigues
  2013-05-22 22:53 ` Sunil Mushran
  2013-05-24  6:20 ` xiaowei.hu
  0 siblings, 2 replies; 6+ messages in thread
From: Goldwyn Rodrigues @ 2013-05-20 15:06 UTC (permalink / raw)
  To: ocfs2-devel

While removing a non-empty directory, the kernel dumps a message:
(rmdir,21743,1):ocfs2_unlink:953 ERROR: status = -39

Suppress the error message from being printed in the dmesg so users
don't panic.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>

---
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 04ee1b5..33c7b91 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -947,7 +947,7 @@ leave:
  ocfs2_free_dir_lookup_result(&orphan_insert);
  ocfs2_free_dir_lookup_result(&lookup);

- if (status)
+ if (status && (status != -ENOTEMPTY))
  mlog_errno(status);

  return status;

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [Ocfs2-devel] [PATCH]Remove unecessary ERROR when removing non-empty directory
@ 2013-05-28  1:12 xiaowei.hu at oracle.com
  2013-05-28 11:08 ` Jeff Liu
  0 siblings, 1 reply; 6+ messages in thread
From: xiaowei.hu at oracle.com @ 2013-05-28  1:12 UTC (permalink / raw)
  To: ocfs2-devel

From: "Xiaowei.Hu" <xiaowei.hu@oracle.com>

Suppress the error message from being printed in ocfs2_rename
Did same thing with Goldwyn Rodrigues last patch.

While removing a non-empty directory, the kernel dumps a message:
(mv,29521,1):ocfs2_rename:1474 ERROR: status = -39 

Signed-off-by: Xiaowei Hu <xiaowei.hu@oracle.com>

---
 fs/ocfs2/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 50c93a8..8ef1776 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -1470,7 +1470,7 @@ bail:
 	brelse(old_dir_bh);
 	brelse(new_dir_bh);
 
-	if (status)
+	if (status && (status != -ENOTEMPTY))
 		mlog_errno(status);
 
 	return status;
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-28 11:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20 15:06 [Ocfs2-devel] [PATCH] Remove unecessary ERROR when removing non-empty directory Goldwyn Rodrigues
2013-05-22 22:53 ` Sunil Mushran
2013-05-24  6:20 ` xiaowei.hu
2013-05-27  6:53   ` Jeff Liu
  -- strict thread matches above, loose matches on Subject: below --
2013-05-28  1:12 [Ocfs2-devel] [PATCH]Remove " xiaowei.hu at oracle.com
2013-05-28 11:08 ` Jeff Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.