public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] UBIFS: Add an error code if the compr is not present
@ 2009-05-25  6:49 Corentin Chary
  2009-05-25  7:32 ` Artem Bityutskiy
  0 siblings, 1 reply; 5+ messages in thread
From: Corentin Chary @ 2009-05-25  6:49 UTC (permalink / raw)
  To: linux-mtd; +Cc: Corentin Chary

If the compressor is not present, mount_ubifs need
to return an error code. This way ubifs_fill_super
will stop and handle the error.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
---
 fs/ubifs/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 832b1a7..9a589d8 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -1187,6 +1187,7 @@ static int mount_ubifs(struct ubifs_info *c)
 	if (!ubifs_compr_present(c->default_compr)) {
 		ubifs_err("'compressor \"%s\" is not compiled in",
 			  ubifs_compr_name(c->default_compr));
+		err = -ENOTSUPP;
 		goto out_free;
 	}
 
-- 
1.6.3.1

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

* Re: [PATCH] UBIFS: Add an error code if the compr is not present
  2009-05-25  6:49 [PATCH] UBIFS: Add an error code if the compr is not present Corentin Chary
@ 2009-05-25  7:32 ` Artem Bityutskiy
  2009-05-25  7:52   ` Corentin Chary
  0 siblings, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2009-05-25  7:32 UTC (permalink / raw)
  To: Corentin Chary; +Cc: linux-mtd

On Mon, 2009-05-25 at 08:49 +0200, Corentin Chary wrote:
> If the compressor is not present, mount_ubifs need
> to return an error code. This way ubifs_fill_super
> will stop and handle the error.
> 
> Signed-off-by: Corentin Chary <corentincj@iksaif.net>

Pushed to ubifs-2.6.git, thank you!

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

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

* Re: [PATCH] UBIFS: Add an error code if the compr is not present
  2009-05-25  7:32 ` Artem Bityutskiy
@ 2009-05-25  7:52   ` Corentin Chary
  2009-05-25  8:00     ` Artem Bityutskiy
  0 siblings, 1 reply; 5+ messages in thread
From: Corentin Chary @ 2009-05-25  7:52 UTC (permalink / raw)
  To: dedekind; +Cc: linux-mtd

On Mon, May 25, 2009 at 9:32 AM, Artem Bityutskiy
<dedekind@infradead.org> wrote:
> On Mon, 2009-05-25 at 08:49 +0200, Corentin Chary wrote:
>> If the compressor is not present, mount_ubifs need
>> to return an error code. This way ubifs_fill_super
>> will stop and handle the error.
>>
>> Signed-off-by: Corentin Chary <corentincj@iksaif.net>
>
> Pushed to ubifs-2.6.git, thank you!
>

For information, this bug was triggered when running an userspace
version of ubifs (code available soon).
We used the original ubifs to format the partition, but our version
didn't support the lzo compressor (now, it do).
Then, valgrind/gdb to get a backtrace and "voila".

-- 
Corentin Chary
http://xf.iksaif.net - http://uffs.org

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

* Re: [PATCH] UBIFS: Add an error code if the compr is not present
  2009-05-25  7:52   ` Corentin Chary
@ 2009-05-25  8:00     ` Artem Bityutskiy
  2009-05-25  8:33       ` Corentin Chary
  0 siblings, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2009-05-25  8:00 UTC (permalink / raw)
  To: Corentin Chary; +Cc: linux-mtd

On Mon, 2009-05-25 at 09:52 +0200, Corentin Chary wrote:
> For information, this bug was triggered when running an userspace
> version of ubifs (code available soon).
> We used the original ubifs to format the partition, but our version
> didn't support the lzo compressor (now, it do).
> Then, valgrind/gdb to get a backtrace and "voila".

Userspace ubifs version. Wow! I wonder how it performs comparing
to the kernel space one.

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

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

* Re: [PATCH] UBIFS: Add an error code if the compr is not present
  2009-05-25  8:00     ` Artem Bityutskiy
@ 2009-05-25  8:33       ` Corentin Chary
  0 siblings, 0 replies; 5+ messages in thread
From: Corentin Chary @ 2009-05-25  8:33 UTC (permalink / raw)
  To: dedekind; +Cc: linux-mtd

On Mon, May 25, 2009 at 10:00 AM, Artem Bityutskiy
<dedekind@infradead.org> wrote:
> On Mon, 2009-05-25 at 09:52 +0200, Corentin Chary wrote:
>> For information, this bug was triggered when running an userspace
>> version of ubifs (code available soon).
>> We used the original ubifs to format the partition, but our version
>> didn't support the lzo compressor (now, it do).
>> Then, valgrind/gdb to get a backtrace and "voila".
>
> Userspace ubifs version. Wow! I wonder how it performs comparing
> to the kernel space one.

Well, there is now big change in the code. For performance, it'll
depends of the fuse overhead. We'll see.
The big question is "how writeback will performs".

For the moment it's read-only (except for creating the default
filsystem), in fact our mkfs is just: erase all, mount, unmount.

-- 
Corentin Chary
http://xf.iksaif.net - http://uffs.org

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

end of thread, other threads:[~2009-05-25  8:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25  6:49 [PATCH] UBIFS: Add an error code if the compr is not present Corentin Chary
2009-05-25  7:32 ` Artem Bityutskiy
2009-05-25  7:52   ` Corentin Chary
2009-05-25  8:00     ` Artem Bityutskiy
2009-05-25  8:33       ` Corentin Chary

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