public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* ubirmvol:ing gluebied volumes
@ 2011-05-06 12:17 Ricard Wanderlof
  2011-05-06 19:07 ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Ricard Wanderlof @ 2011-05-06 12:17 UTC (permalink / raw)
  To: Linux mtd


I enabled the gluebi MTD emulation layer in the kernel, and was pleased to 
see all the UBI volumes coming up in /proc/mtd as mtd volumes.

However, one thing though, if I try to ubirmvol one of the UBI volumes, I 
get:

ubirmvol: error!: cannot UBI remove volume
           error 16 (Device or resource busy)

similar to what I get if I have a mounted ubifs residing in an UBI volume 
and try and ubirmvol the volume without umounting the file system.

Fair enough, I guess gluebi is keeping the UBI volume busy? But then how 
do I free it up? There's normally no way to disassociate mtd partitions 
from the underlying media, and I can't see any ubi tool that would do this 
either.

So is this an (unfortunate) consequence of using gluebi: that the 
underlying UBI volumes can't be removed?

Same thing happens if I try and ubidetach the UBI partition from the 
underlying mtd partition: Device or resource busy.

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

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

* Re: ubirmvol:ing gluebied volumes
  2011-05-06 12:17 ubirmvol:ing gluebied volumes Ricard Wanderlof
@ 2011-05-06 19:07 ` Artem Bityutskiy
  2011-05-09  6:49   ` Ricard Wanderlof
  0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2011-05-06 19:07 UTC (permalink / raw)
  To: Ricard Wanderlof; +Cc: Linux mtd

On Fri, 2011-05-06 at 14:17 +0200, Ricard Wanderlof wrote:
> I enabled the gluebi MTD emulation layer in the kernel, and was pleased to 
> see all the UBI volumes coming up in /proc/mtd as mtd volumes.

Hehe :-)

> However, one thing though, if I try to ubirmvol one of the UBI volumes, I 
> get:
> 
> ubirmvol: error!: cannot UBI remove volume
>            error 16 (Device or resource busy)

Yeah.

> similar to what I get if I have a mounted ubifs residing in an UBI volume 
> and try and ubirmvol the volume without umounting the file system.

Yes.

> Fair enough, I guess gluebi is keeping the UBI volume busy? But then how 
> do I free it up?

I think the only way is to rmmod gluebi.

>  There's normally no way to disassociate mtd partitions 
> from the underlying media, and I can't see any ubi tool that would do this 
> either.

Right.

> So is this an (unfortunate) consequence of using gluebi: that the 
> underlying UBI volumes can't be removed?

In current implementation yes. But you can rmomod it, shuffle UBI
volumes, and modprobe it again.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

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

* Re: ubirmvol:ing gluebied volumes
  2011-05-06 19:07 ` Artem Bityutskiy
@ 2011-05-09  6:49   ` Ricard Wanderlof
  0 siblings, 0 replies; 3+ messages in thread
From: Ricard Wanderlof @ 2011-05-09  6:49 UTC (permalink / raw)
  To: Artem Bityutskiy; +Cc: Linux mtd


On Fri, 6 May 2011, Artem Bityutskiy wrote:

>> Fair enough, I guess gluebi is keeping the UBI volume busy? But then how
>> do I free it up?
>
> I think the only way is to rmmod gluebi.
>
>> So is this an (unfortunate) consequence of using gluebi: that the
>> underlying UBI volumes can't be removed?
>
> In current implementation yes. But you can rmomod it, shuffle UBI
> volumes, and modprobe it again.

Aha! Hadn't thought of that. I built gluebi into the kernel, not as a 
module, so the thought never crossed my mind. Thanks!

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

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

end of thread, other threads:[~2011-05-09  6:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 12:17 ubirmvol:ing gluebied volumes Ricard Wanderlof
2011-05-06 19:07 ` Artem Bityutskiy
2011-05-09  6:49   ` Ricard Wanderlof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox