linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mkfs.ubifs: remove the check for UBIFS_MAX_LEB_SZ
@ 2015-08-18  4:52 Dongsheng Yang
  2015-08-18  8:52 ` Artem Bityutskiy
  0 siblings, 1 reply; 7+ messages in thread
From: Dongsheng Yang @ 2015-08-18  4:52 UTC (permalink / raw)
  To: dedekind1, richard.weinberger, computersforpeace
  Cc: linux-mtd, Dongsheng Yang

There is a commit 92ed6c0 to increase UBIFS_MAX_LEB_SZ
to 2MiB. But recently, as the leb size become larger and
larger, 2MiB is not a suitable limit any more.

Then remove this check in mkfs.ubifs

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
---
NOTE:
	I am not sure the reason why we have to
limit the leb size in mkfs.ubifs. Because
I did not find any reason for it, I send
this patch out. It's very possible I am
mising something.

 mkfs.ubifs/mkfs.ubifs.c | 3 ---
 mkfs.ubifs/ubifs.h      | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
index ca17e2b..8ea0e4c 100644
--- a/mkfs.ubifs/mkfs.ubifs.c
+++ b/mkfs.ubifs/mkfs.ubifs.c
@@ -356,9 +356,6 @@ static int validate_options(void)
 		return err_msg("LEB should be multiple of min. I/O units");
 	if (c->leb_size % 8)
 		return err_msg("LEB size has to be multiple of 8");
-	if (c->leb_size > UBIFS_MAX_LEB_SZ)
-		return err_msg("too large LEB size %d, maximum is %d",
-				c->leb_size, UBIFS_MAX_LEB_SZ);
 	if (c->max_leb_cnt < UBIFS_MIN_LEB_CNT)
 		return err_msg("too low max. count of LEBs, minimum is %d",
 			       UBIFS_MIN_LEB_CNT);
diff --git a/mkfs.ubifs/ubifs.h b/mkfs.ubifs/ubifs.h
index 434b651..f94a52c 100644
--- a/mkfs.ubifs/ubifs.h
+++ b/mkfs.ubifs/ubifs.h
@@ -25,9 +25,6 @@
 #ifndef __UBIFS_H__
 #define __UBIFS_H__
 
-/* Maximum logical eraseblock size in bytes */
-#define UBIFS_MAX_LEB_SZ (2*1024*1024)
-
 /* Minimum amount of data UBIFS writes to the flash */
 #define MIN_WRITE_SZ (UBIFS_DATA_NODE_SZ + 8)
 
-- 
1.8.4.2

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

end of thread, other threads:[~2015-08-24  7:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18  4:52 [PATCH] mkfs.ubifs: remove the check for UBIFS_MAX_LEB_SZ Dongsheng Yang
2015-08-18  8:52 ` Artem Bityutskiy
2015-08-24  1:07   ` Dongsheng Yang
2015-08-24  6:32     ` Artem Bityutskiy
2015-08-24  6:37       ` Dongsheng Yang
2015-08-24  7:05         ` Artem Bityutskiy
2015-08-24  7:04           ` Dongsheng Yang

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