public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/3] UBI: block: Some fixes for static volumes
@ 2014-08-29 21:42 Ezequiel Garcia
  2014-08-29 21:42 ` [PATCH 1/3] UBI: block: Fix block device size setting Ezequiel Garcia
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Ezequiel Garcia @ 2014-08-29 21:42 UTC (permalink / raw)
  To: linux-mtd, Artem Bityutskiy
  Cc: Brian Norris, Ezequiel Garcia, Guido Martínez

Hi all,

This patchset addresses some issues found when using static volumes
and playing with volume resize, update, and truncate operations.

The first patch changes the block interface to use the volume 'used_bytes'
which is the actual data size. It fixes a current issue with static volumes
which produces a nasty error when they are read past the data offset.

$ cat /dev/ubiblock0_0 > /dev/null
UBI error: ubiblock_read_to_buf: ubiblock0_0 ubi_read error -22
end_request: I/O error, dev ubiblock0_0, sector 9536
Buffer I/O error on device ubiblock0_0, logical block 2384
[snip]

It's an annoying error, but on the other side, it should never be produced
if the block is used to mount a file system, so I'm not sure it's serious
enough to go the -stable.

The second and third patches add the required changes for the block interface
to catch the "volume updated" notification. For static volumes, the
'used_bytes' parameter can be changed when updating the volume.

Comments and feedback welcome!

Ezequiel Garcia (3):
  UBI: block: Fix block device size setting
  UBI: block: Add support for the UBI_VOLUME_UPDATED notification
  UBI: Dispatch update notification if the volume is updated

 drivers/mtd/ubi/block.c | 24 ++++++++++++++++++------
 drivers/mtd/ubi/cdev.c  |  4 +++-
 2 files changed, 21 insertions(+), 7 deletions(-)

-- 
2.0.1

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

end of thread, other threads:[~2014-09-16 16:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29 21:42 [PATCH 0/3] UBI: block: Some fixes for static volumes Ezequiel Garcia
2014-08-29 21:42 ` [PATCH 1/3] UBI: block: Fix block device size setting Ezequiel Garcia
2014-09-08 10:52   ` Artem Bityutskiy
2014-08-29 21:42 ` [PATCH 2/3] UBI: block: Add support for the UBI_VOLUME_UPDATED notification Ezequiel Garcia
2014-09-08 10:54   ` Artem Bityutskiy
2014-09-08 11:18     ` Ezequiel Garcia
2014-09-08 12:47       ` Artem Bityutskiy
2014-09-08 18:27         ` Ezequiel Garcia
2014-09-16 15:15           ` Artem Bityutskiy
2014-09-16 15:23             ` Artem Bityutskiy
2014-09-16 15:32             ` Ezequiel Garcia
2014-09-16 15:35               ` Ezequiel Garcia
2014-09-16 15:53               ` Artem Bityutskiy
2014-09-16 15:56                 ` Ezequiel Garcia
2014-09-16 16:04                   ` Artem Bityutskiy
2014-08-29 21:42 ` [PATCH 3/3] UBI: Dispatch update notification if the volume is updated Ezequiel Garcia

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