aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libubi.h2
-rw-r--r--include/mtd/ubi-user.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/libubi.h b/include/libubi.h
index 8ea11e0..e1e234e 100644
--- a/include/libubi.h
+++ b/include/libubi.h
@@ -55,6 +55,7 @@ typedef void * libubi_t;
* most of the users want)
* @max_beb_per1024: Maximum expected bad eraseblocks per 1024 eraseblocks
* @disable_fm: whether disable fastmap
+ * @need_resv_pool: whether reserve free pebs for filling pool/wl_pool
*/
struct ubi_attach_request
{
@@ -64,6 +65,7 @@ struct ubi_attach_request
int vid_hdr_offset;
int max_beb_per1024;
bool disable_fm;
+ bool need_resv_pool;
};
/**
diff --git a/include/mtd/ubi-user.h b/include/mtd/ubi-user.h
index a389693..bb5c0f9 100644
--- a/include/mtd/ubi-user.h
+++ b/include/mtd/ubi-user.h
@@ -236,6 +236,7 @@ enum {
* @vid_hdr_offset: VID header offset (use defaults if %0)
* @max_beb_per1024: maximum expected number of bad PEB per 1024 PEBs
* @disable_fm: whether disable fastmap
+ * @need_resv_pool: whether reserve free pebs for filling pool/wl_pool
* @padding: reserved for future, not used, has to be zeroed
*
* This data structure is used to specify MTD device UBI has to attach and the
@@ -282,7 +283,8 @@ struct ubi_attach_req {
int32_t vid_hdr_offset;
int16_t max_beb_per1024;
int8_t disable_fm;
- int8_t padding[9];
+ int8_t need_resv_pool;
+ int8_t padding[8];
};
/*