summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libubi.h2
-rw-r--r--lib/libubi.c1
2 files changed, 3 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;
};
/**
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)