0/4 notifications
PATCH 1/1 0/4 notifications
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.
Quoted 12 lines · dmitry pervushin
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 usingubi_volume_registerand cancel the subsription usingubi_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.
Quoted 6 lines
Using notifications instead of calling functions
ubi_gluebi_xxxallows 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.
Hi,
minor general notes:
1. Please, make sure checkpatch.pl is happy - here are complaints about trailing white-spaces.
2. Would you please add kernel-doc style comments functions you introduce? Lets maintain consistent code style please.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)