aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-15 10:25:38 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-14 04:34:40 -0400
commit6748482f4153fc0e095aa3dc831d5edac5656a80 (patch)
tree7b1a276c26ac3b4171d56100e059d693a9963be3 /include/mtd
parente10b376e98332edcc2530aaed384a7e248477052 (diff)
UBI: re-name set volume properties ioctl
Rename the ioctl which sets volume properties from 'UBI_IOCSETPROP' to 'UBI_IOCSETVOLPROP' to reflect the fact that this ioctl is about volume properties, not device properties. This is also consistent with the other volume ioctl name - 'UBI_IOCVOLUP'. The main motivation for the re-name, however, is that we are going to introduce the per-UBI device "set properties" ioctl, so we need good and logical naming. At the same time, re-name the "set volume properties request" data structure from 'struct ubi_set_prop_req' to 'struct ubi_set_vol_prop_req'. And re-name 'UBI_PROP_DIRECT_WRITE' to 'UBI_VOL_PROP_DIRECT_WRITE'. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'include/mtd')
-rw-r--r--include/mtd/ubi-user.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/mtd/ubi-user.h b/include/mtd/ubi-user.h
index c0d47ad4b103..8d8484b1ed46 100644
--- a/include/mtd/ubi-user.h
+++ b/include/mtd/ubi-user.h
@@ -131,7 +131,7 @@
131 * ~~~~~~~~~~~~~~~~~~~~~~~~~ 131 * ~~~~~~~~~~~~~~~~~~~~~~~~~
132 * 132 *
133 * To set an UBI volume property the %UBI_IOCSETPROP ioctl command should be 133 * To set an UBI volume property the %UBI_IOCSETPROP ioctl command should be
134 * used. A pointer to a &struct ubi_set_prop_req object is expected to be 134 * used. A pointer to a &struct ubi_set_vol_prop_req object is expected to be
135 * passed. The object describes which property should be set, and to which value 135 * passed. The object describes which property should be set, and to which value
136 * it should be set. 136 * it should be set.
137 */ 137 */
@@ -186,7 +186,8 @@
186/* Check if LEB is mapped command */ 186/* Check if LEB is mapped command */
187#define UBI_IOCEBISMAP _IOR(UBI_VOL_IOC_MAGIC, 5, __s32) 187#define UBI_IOCEBISMAP _IOR(UBI_VOL_IOC_MAGIC, 5, __s32)
188/* Set an UBI volume property */ 188/* Set an UBI volume property */
189#define UBI_IOCSETPROP _IOW(UBI_VOL_IOC_MAGIC, 6, struct ubi_set_prop_req) 189#define UBI_IOCSETVOLPROP _IOW(UBI_VOL_IOC_MAGIC, 6, \
190 struct ubi_set_vol_prop_req)
190 191
191/* Maximum MTD device name length supported by UBI */ 192/* Maximum MTD device name length supported by UBI */
192#define MAX_UBI_MTD_NAME_LEN 127 193#define MAX_UBI_MTD_NAME_LEN 127
@@ -225,11 +226,11 @@ enum {
225/* 226/*
226 * UBI set property ioctl constants 227 * UBI set property ioctl constants
227 * 228 *
228 * @UBI_PROP_DIRECT_WRITE: allow / disallow user to directly write and 229 * @UBI_VOL_PROP_DIRECT_WRITE: allow / disallow user to directly write and
229 * erase individual eraseblocks on dynamic volumes 230 * erase individual eraseblocks on dynamic volumes
230 */ 231 */
231enum { 232enum {
232 UBI_PROP_DIRECT_WRITE = 1, 233 UBI_VOL_PROP_DIRECT_WRITE = 1,
233}; 234};
234 235
235/** 236/**
@@ -397,13 +398,13 @@ struct ubi_map_req {
397 398
398 399
399/** 400/**
400 * struct ubi_set_prop_req - a data structure used to set an ubi volume 401 * struct ubi_set_vol_prop_req - a data structure used to set an ubi volume
401 * property. 402 * property.
402 * @property: property to set (%UBI_PROP_DIRECT_WRITE) 403 * @property: property to set (%UBI_VOL_PROP_DIRECT_WRITE)
403 * @padding: reserved for future, not used, has to be zeroed 404 * @padding: reserved for future, not used, has to be zeroed
404 * @value: value to set 405 * @value: value to set
405 */ 406 */
406struct ubi_set_prop_req { 407struct ubi_set_vol_prop_req {
407 __u8 property; 408 __u8 property;
408 __u8 padding[7]; 409 __u8 padding[7];
409 __u64 value; 410 __u64 value;