linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Latest UBI/UBIFS requires DebugFs?
@ 2012-06-07 17:49 Bill Pringlemeir
  0 siblings, 0 replies; 3+ messages in thread
From: Bill Pringlemeir @ 2012-06-07 17:49 UTC (permalink / raw)
  To: linux-mtd


I have pulled the latest UBI/UBIFS from
git://git.infradead.org/users/dedekind/ubifs-v2.6.36.git.  I think that
the same issue may exist on the head.

If your root device is ubifs and you do not configure with
CONFIG_DEBUG_FS, then several functions will fail and the root will not
be mounted.  Depending on other configurations, you might not get any
error messages.

It appears that ubi_debugfs_init_dev, ubi_debugfs_init,
dbg_debugfs_init_fs, and dbg_debugfs_init rely on DEBUGFS and return
errors when creating DEBUGFS files.

I think either we could conditionalize these functions to return 0 when
DEBUGFS is not present or use a '#error UBI/UBIFS not supported without
DebugFs'.

I think maybe this was an over zealous commit to get good bug reports
and the DEBUGFS itself is not needed, but just the other printk stuff in 
the debug.c files?

I can submit a patch, but I think the explanation above is probably
enough for someone else with a better understanding of the structure.

Regards,
Bill Pringlemeir.

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

end of thread, other threads:[~2012-06-07 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87sje7rp0x.fsf@sympatico.ca>
2012-06-07 18:09 ` Latest UBI/UBIFS requires DebugFs? Bill Pringlemeir
2012-06-07 18:16   ` Artem Bityutskiy
2012-06-07 17:49 Bill Pringlemeir

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).