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

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