public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] UBI: Fastmap: Some cleanup and check if a vol exists when attaching
@ 2015-05-21  9:56 Sheng Yong
  2015-05-21  9:56 ` [RFC PATCH 1/4] UBI: Fastmap: Use max() to get the larger value Sheng Yong
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Sheng Yong @ 2015-05-21  9:56 UTC (permalink / raw)
  To: richard; +Cc: linux-mtd

Hi, folks,

PATCH 1-3 do some cleanup.

PATCH 4 checks if a volume already exists when fastmap doing attach.
ubi_write_fastmap() does not guarantee if two volumes have the same vol
ID. So fastmap should check it when attaching, and if something is wrong,
scan_all() could try to attach instead of fastmap.

thanks,
Sheng

Sheng Yong (4):
  UBI: Fastmap: Use max() to get the larger value
  UBI: Fastmap: Remove unnecessary `\'
  UBI: Fastmap: Rename variables to make them meaningful
  UBI: Fastmap: Do not add vol if it already exists

 drivers/mtd/ubi/build.c   |  4 +--
 drivers/mtd/ubi/fastmap.c | 81 +++++++++++++++++++++++++----------------------
 2 files changed, 46 insertions(+), 39 deletions(-)

-- 
1.8.3.4

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

end of thread, other threads:[~2015-05-26  9:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21  9:56 [RFC PATCH 0/4] UBI: Fastmap: Some cleanup and check if a vol exists when attaching Sheng Yong
2015-05-21  9:56 ` [RFC PATCH 1/4] UBI: Fastmap: Use max() to get the larger value Sheng Yong
2015-05-21  9:56 ` [RFC PATCH 2/4] UBI: Fastmap: Remove unnecessary `\' Sheng Yong
2015-05-21  9:56 ` [RFC PATCH 3/4] UBI: Fastmap: Rename variables to make them meaningful Sheng Yong
2015-05-21  9:56 ` [RFC PATCH 4/4] UBI: Fastmap: Do not add vol if it already exists Sheng Yong
2015-05-21 10:16   ` Richard Weinberger
2015-05-21 20:19     ` Richard Weinberger
2015-05-26  8:53       ` Sheng Yong
2015-05-26  9:13         ` Richard Weinberger

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