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

* Re: Latest UBI/UBIFS requires DebugFs?
       [not found] <87sje7rp0x.fsf@sympatico.ca>
@ 2012-06-07 18:09 ` Bill Pringlemeir
  2012-06-07 18:16   ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Bill Pringlemeir @ 2012-06-07 18:09 UTC (permalink / raw)
  To: linux-mtd


Arrgh.  Sorry for this noise.  I missed this post,

http://lists.infradead.org/pipermail/linux-mtd/2012-June/042091.html

I guess I need to apply those patches to the back port.

On  7 Jun 2012, bpringle@sympatico.ca wrote:


> 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

* Re: Latest UBI/UBIFS requires DebugFs?
  2012-06-07 18:09 ` Latest UBI/UBIFS requires DebugFs? Bill Pringlemeir
@ 2012-06-07 18:16   ` Artem Bityutskiy
  0 siblings, 0 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2012-06-07 18:16 UTC (permalink / raw)
  To: Bill Pringlemeir; +Cc: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

On Thu, 2012-06-07 at 14:09 -0400, Bill Pringlemeir wrote:
> Arrgh.  Sorry for this noise.  I missed this post,
> 
> http://lists.infradead.org/pipermail/linux-mtd/2012-June/042091.html
> 
> I guess I need to apply those patches to the back port.

I will push them to the backport trees.

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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