[Ocfs2-devel] [PATCH] ocfs2: adds mlogs to aops.c -V3
Joel Becker
Joel.Becker at oracle.com
Thu Aug 27 22:39:11 PDT 2009
On Fri, Aug 28, 2009 at 10:12:45AM +0800, Wengang Wang wrote:
> in fact, I had ever hit case that ocfs2 returns EIO, but even allowing
> ENTRY/EXIT, there is no log indicating that.. the bug number is 8627756.
>
> So I think we'd better add the logs to such functions. and added them
> for the functions in aops.c(seems that Sunil wants to add logs to that
> file)...
Hunting down an -EIO is a good case, though we usually use
mlog_errno() for that. The concern I have is not that you're logging,
it's that entry/exit are pretty poor things to log.
For example, once you figure out where the -EIO is coming from,
I'd rather see us properly log that.
> and for the patch its self, I think the log contents are for developers
> to check(not for customer to view), so we can know what are printed by
> checking the src... so I am printing some parameters without pointing
> out what they are.
Yeah, I just don't know that we care :-)
Joel
--
Life's Little Instruction Book #157
"Take time to smell the roses."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-devel
mailing list