[PATCH] [UBI] 0/4 notifications

dmitry pervushin dpervushin at gmail.com
Mon Dec 8 12:59:14 EST 2008


Hello all,

I am glad to present the serie of patches that implement volume
notifications in UBI and based on these notifications reworked MTD
emulation layer and a simple mtdblock-like FTL.

UBI volume notifications is intended to create the API to get clients
notified about volume creation/deletion, renaming and changing(actually,
resizing). A client can subscribe to these notifications using
ubi_volume_register and cancel the subsription using
ubi_volume_unregister. When UBI volume change occurs, the atomic
notifier will be called. Client also can request "added" event on all
volumes that existed before client subscribed to the notifications.

Using notifications instead of calling functions ubi_gluebi_xxx allows
MTD emulation layer to be more flexible; say, now is it possible to
build it as a module and load/unload it on demand.

The simple FTL uses the same notification mechanism and provides
mtdblock-like layer.





More information about the linux-mtd mailing list