summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@bootlin.com>2018-06-28 09:43:42 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2018-06-28 10:21:51 +0200
commit5e9bc0daa41d84ce5de81c4a1665d65f51893c10 (patch)
tree86d8bb60ed23c9be73621bbdf03963773b0c9680 /include
parent8ba21ab75b41a1f9a6e27eed3ea80c9829669c5a (diff)
libubi: add volume flags to ubi_mkvol_request
Now that we have per-UBI volume flags (for instance for skipping CRC check when opening it) from the Linux header, let's add it to the ubi_mkvol_request in libubi and assign the flags to ubi_mkvol_req from the Linux header from ubi_mkvol. Suggested-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/libubi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libubi.h b/include/libubi.h
index 4d6a7ee..46596a3 100644
--- a/include/libubi.h
+++ b/include/libubi.h
@@ -69,6 +69,7 @@ struct ubi_attach_request
* @bytes: volume size in bytes
* @vol_type: volume type (%UBI_DYNAMIC_VOLUME or %UBI_STATIC_VOLUME)
* @name: volume name
+ * @flags: volume flags
*/
struct ubi_mkvol_request
{
@@ -77,6 +78,7 @@ struct ubi_mkvol_request
long long bytes;
int vol_type;
const char *name;
+ uint8_t flags;
};
/**