From 5e9bc0daa41d84ce5de81c4a1665d65f51893c10 Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Thu, 28 Jun 2018 09:43:42 +0200 Subject: 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 Reviewed-by: Boris Brezillon Signed-off-by: Quentin Schulz Signed-off-by: David Oberhollenzer --- lib/libubi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libubi.c b/lib/libubi.c index 978b433..4322a19 100644 --- a/lib/libubi.c +++ b/lib/libubi.c @@ -1000,6 +1000,7 @@ int ubi_mkvol(libubi_t desc, const char *node, struct ubi_mkvol_request *req) r.alignment = req->alignment; r.bytes = req->bytes; r.vol_type = req->vol_type; + r.flags = req->flags; n = strlen(req->name); if (n > UBI_MAX_VOLUME_NAME) -- cgit v1.2.3