summaryrefslogtreecommitdiff
path: root/ubi-utils/include
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-08 18:09:21 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-08 19:07:26 +0300
commit773d4c51ed414e01be701f3378cf9db486291a26 (patch)
tree894fd952fcfc09763678b3e31374c5cdfb562c58 /ubi-utils/include
parentd41747f327b260c2fb470775fb9dc78d49a4d79e (diff)
libubi: add ubi_set_property interface
This is needed for io_paral test.
Diffstat (limited to 'ubi-utils/include')
-rw-r--r--ubi-utils/include/libubi.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ubi-utils/include/libubi.h b/ubi-utils/include/libubi.h
index 7ff0934..243bcbb 100644
--- a/ubi-utils/include/libubi.h
+++ b/ubi-utils/include/libubi.h
@@ -393,6 +393,17 @@ int ubi_update_start(libubi_t desc, int fd, long long bytes);
*/
int ubi_leb_change_start(libubi_t desc, int fd, int lnum, int bytes, int dtype);
+/**
+ * ubi_set_property - set volume propety.
+ * @fd: volume character device file descriptor
+ * @property: the property to change (%UBI_PROP_DIRECT_WRITE, etc)
+ * @value: new value of the changed property
+ *
+ * This function changes a property of a volume. Returns zero in case of
+ * success and a negative error code in case of error.
+ */
+int ubi_set_property(int fd, uint8_t property, uint64_t value);
+
#ifdef __cplusplus
}
#endif