aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/include
diff options
context:
space:
mode:
authorRichard Titmuss <richard_titmuss@eu.logitech.com>2009-02-18 10:51:39 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-02-18 10:52:57 +0200
commitcca27d4c0819ae244b33639a19bec82cc2895704 (patch)
tree513085e3c1907845543e7a72ba160afbea88e4bd /ubi-utils/new-utils/include
parent822385dca7fd9816acf6227759ecea6b12f0fce4 (diff)
UBI: add ubirename utility
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/include')
-rw-r--r--ubi-utils/new-utils/include/libubi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ubi-utils/new-utils/include/libubi.h b/ubi-utils/new-utils/include/libubi.h
index 4308bed..1299e81 100644
--- a/ubi-utils/new-utils/include/libubi.h
+++ b/ubi-utils/new-utils/include/libubi.h
@@ -264,6 +264,18 @@ int ubi_mkvol(libubi_t desc, const char *node, struct ubi_mkvol_request *req);
*/
int ubi_rmvol(libubi_t desc, const char *node, int vol_id);
+
+/**
+ * ubi_rnvols - rename UBI volumes.
+ * @desc: UBI library descriptor
+ * @node: name of the UBI character device to remove a volume from
+ * @rnvol: description of volumes to rename
+ *
+ * This function removes volume @vol_id from UBI device @node and returns %0 in
+ * case of success and %-1 in case of failure.
+ */
+int ubi_rnvols(libubi_t desc, const char *node, struct ubi_rnvol_req *rnvol);
+
/**
* ubi_rsvol - re-size UBI volume.
* @desc: UBI library descriptor