Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-19 Thread Artem Bityutskiy
On Sun, 2007-02-18 at 23:37 +0100, Arnd Bergmann wrote: > Which brings be back to my original point ;-) > > I'm sure this has been discussed before, but I'd still like to understand > what is so special with 'static UBI volumes' that they can't be used with > a slightly extended MTD interface.

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-19 Thread Josh Boyer
On Sun, 2007-02-18 at 23:37 +0100, Arnd Bergmann wrote: > On Sunday 18 February 2007 04:02:17 Josh Boyer wrote: > > On Sun, Feb 18, 2007 at 03:15:23AM +0100, Arnd Bergmann wrote: > > > On Sunday 18 February 2007 03:04, Josh Boyer wrote: > > > > No, the MTD interface isn't flawed. gluebi is

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-19 Thread Artem Bityutskiy
On Sat, 2007-02-17 at 22:14 +0100, Arnd Bergmann wrote: > This approach doesn't seem to make sense at all. If the MTD device interface > is flawed, the right approach should be to fix that instead. After all, > there are not many users of the MTD interface, so you should be able to > adapt them.

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-19 Thread Christoph Hellwig
On Sat, Feb 17, 2007 at 08:04:30PM -0600, Josh Boyer wrote: > No, the MTD interface isn't flawed. gluebi is present to make things like > JFFS2 work on top of UBI volumes with very little adaptations. If you go > changing _every_ MTD user to now use either an MTD device or a native UBI > device,

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-19 Thread Christoph Hellwig
On Sat, Feb 17, 2007 at 08:04:30PM -0600, Josh Boyer wrote: No, the MTD interface isn't flawed. gluebi is present to make things like JFFS2 work on top of UBI volumes with very little adaptations. If you go changing _every_ MTD user to now use either an MTD device or a native UBI device,

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-19 Thread Artem Bityutskiy
On Sat, 2007-02-17 at 22:14 +0100, Arnd Bergmann wrote: This approach doesn't seem to make sense at all. If the MTD device interface is flawed, the right approach should be to fix that instead. After all, there are not many users of the MTD interface, so you should be able to adapt them. MTD

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-19 Thread Josh Boyer
On Sun, 2007-02-18 at 23:37 +0100, Arnd Bergmann wrote: On Sunday 18 February 2007 04:02:17 Josh Boyer wrote: On Sun, Feb 18, 2007 at 03:15:23AM +0100, Arnd Bergmann wrote: On Sunday 18 February 2007 03:04, Josh Boyer wrote: No, the MTD interface isn't flawed. gluebi is present to make

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-19 Thread Artem Bityutskiy
On Sun, 2007-02-18 at 23:37 +0100, Arnd Bergmann wrote: Which brings be back to my original point ;-) I'm sure this has been discussed before, but I'd still like to understand what is so special with 'static UBI volumes' that they can't be used with a slightly extended MTD interface. Let me

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-18 Thread Arnd Bergmann
On Sunday 18 February 2007 04:02:17 Josh Boyer wrote: > On Sun, Feb 18, 2007 at 03:15:23AM +0100, Arnd Bergmann wrote: > > On Sunday 18 February 2007 03:04, Josh Boyer wrote: > > > No, the MTD interface isn't flawed.  gluebi is present to make things > > > like JFFS2 work on top of UBI volumes

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-18 Thread Arnd Bergmann
On Sunday 18 February 2007 04:02:17 Josh Boyer wrote: On Sun, Feb 18, 2007 at 03:15:23AM +0100, Arnd Bergmann wrote: On Sunday 18 February 2007 03:04, Josh Boyer wrote: No, the MTD interface isn't flawed.  gluebi is present to make things like JFFS2 work on top of UBI volumes with very

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Josh Boyer
On Sun, Feb 18, 2007 at 03:15:23AM +0100, Arnd Bergmann wrote: > On Sunday 18 February 2007 03:04, Josh Boyer wrote: > > No, the MTD interface isn't flawed.  gluebi is present to make things like > > JFFS2 work on top of UBI volumes with very little adaptations.  If you go > > changing _every_ MTD

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Arnd Bergmann
On Sunday 18 February 2007 03:04, Josh Boyer wrote: > No, the MTD interface isn't flawed.  gluebi is present to make things like > JFFS2 work on top of UBI volumes with very little adaptations.  If you go > changing _every_ MTD user to now use either an MTD device or a native UBI > device, then

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Josh Boyer
On Sat, Feb 17, 2007 at 10:14:54PM +0100, Arnd Bergmann wrote: > On Saturday 17 February 2007 17:57, Artem Bityutskiy wrote: > > + * This unit is responsible for emulating MTD devices on top of UBI > > devices. > > + * This sounds strange, but it is in fact quite useful to make legacy > >

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Arnd Bergmann
On Saturday 17 February 2007 17:57, Artem Bityutskiy wrote: > + * This unit is responsible for emulating MTD devices on top of UBI devices. > + * This sounds strange, but it is in fact quite useful to make legacy > software > + * work on top of UBI. New software should use native UBI API instead.

[PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Artem Bityutskiy
diff -auNrp tmp-from/drivers/mtd/ubi/gluebi.h tmp-to/drivers/mtd/ubi/gluebi.h --- tmp-from/drivers/mtd/ubi/gluebi.h 1970-01-01 02:00:00.0 +0200 +++ tmp-to/drivers/mtd/ubi/gluebi.h 2007-02-17 18:07:28.0 +0200 @@ -0,0 +1,88 @@ +/* + * Copyright (c) International Business

[PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Artem Bityutskiy
diff -auNrp tmp-from/drivers/mtd/ubi/gluebi.h tmp-to/drivers/mtd/ubi/gluebi.h --- tmp-from/drivers/mtd/ubi/gluebi.h 1970-01-01 02:00:00.0 +0200 +++ tmp-to/drivers/mtd/ubi/gluebi.h 2007-02-17 18:07:28.0 +0200 @@ -0,0 +1,88 @@ +/* + * Copyright (c) International Business

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Arnd Bergmann
On Saturday 17 February 2007 17:57, Artem Bityutskiy wrote: + * This unit is responsible for emulating MTD devices on top of UBI devices. + * This sounds strange, but it is in fact quite useful to make legacy software + * work on top of UBI. New software should use native UBI API instead. +

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Josh Boyer
On Sat, Feb 17, 2007 at 10:14:54PM +0100, Arnd Bergmann wrote: On Saturday 17 February 2007 17:57, Artem Bityutskiy wrote: + * This unit is responsible for emulating MTD devices on top of UBI devices. + * This sounds strange, but it is in fact quite useful to make legacy software + *

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Arnd Bergmann
On Sunday 18 February 2007 03:04, Josh Boyer wrote: No, the MTD interface isn't flawed.  gluebi is present to make things like JFFS2 work on top of UBI volumes with very little adaptations.  If you go changing _every_ MTD user to now use either an MTD device or a native UBI device, then the

Re: [PATCH 41/44 take 2] [UBI] gluebi unit header

2007-02-17 Thread Josh Boyer
On Sun, Feb 18, 2007 at 03:15:23AM +0100, Arnd Bergmann wrote: On Sunday 18 February 2007 03:04, Josh Boyer wrote: No, the MTD interface isn't flawed.  gluebi is present to make things like JFFS2 work on top of UBI volumes with very little adaptations.  If you go changing _every_ MTD user