diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-03-05 06:01:56 -0500 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-03-05 08:49:15 -0500 |
commit | 8af871887fcba470ff9265c65cff7d14d9e0e3f9 (patch) | |
tree | 7bd29431422649a5c241b72a746150af10bb76ca | |
parent | 80744cc92207baa913ac9575374738b6298032eb (diff) |
UBI: rename block device ioctls
Rename the UBI_IOCVOLATTBLK and UBI_IOCVOLDETBLK to UBI_IOCVOLCRBLK and
UBI_IOCVOLRMBLK, because we do not use terms "attach" and "detach" for the R/O
block devices on top of UBI volumes. Instead, we use terms "create" and
"remove". This patch also amends the related commentaries.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
-rw-r--r-- | drivers/mtd/ubi/block.c | 2 | ||||
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 8 | ||||
-rw-r--r-- | include/uapi/mtd/ubi-user.h | 14 |
3 files changed, 12 insertions, 12 deletions
diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c index 16e67318acf3..69a74fd07978 100644 --- a/drivers/mtd/ubi/block.c +++ b/drivers/mtd/ubi/block.c | |||
@@ -32,7 +32,7 @@ | |||
32 | * This feature is compiled in the UBI core, and adds a 'block' parameter | 32 | * This feature is compiled in the UBI core, and adds a 'block' parameter |
33 | * to allow early creation of block devices on top of UBI volumes. Runtime | 33 | * to allow early creation of block devices on top of UBI volumes. Runtime |
34 | * block creation/removal for UBI volumes is provided through two UBI ioctls: | 34 | * block creation/removal for UBI volumes is provided through two UBI ioctls: |
35 | * UBI_IOCVOLATTBLK and UBI_IOCVOLDETBLK. | 35 | * UBI_IOCVOLCRBLK and UBI_IOCVOLRMBLK. |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include <linux/module.h> | 38 | #include <linux/module.h> |
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index 11c847349642..f54562a5998e 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c | |||
@@ -561,8 +561,8 @@ static long vol_cdev_ioctl(struct file *file, unsigned int cmd, | |||
561 | break; | 561 | break; |
562 | } | 562 | } |
563 | 563 | ||
564 | /* Attach a block device to an UBI volume */ | 564 | /* Create a R/O block device on top of the UBI volume */ |
565 | case UBI_IOCVOLATTBLK: | 565 | case UBI_IOCVOLCRBLK: |
566 | { | 566 | { |
567 | struct ubi_volume_info vi; | 567 | struct ubi_volume_info vi; |
568 | 568 | ||
@@ -571,8 +571,8 @@ static long vol_cdev_ioctl(struct file *file, unsigned int cmd, | |||
571 | break; | 571 | break; |
572 | } | 572 | } |
573 | 573 | ||
574 | /* Dettach a block device from an UBI volume */ | 574 | /* Remove the R/O block device */ |
575 | case UBI_IOCVOLDETBLK: | 575 | case UBI_IOCVOLRMBLK: |
576 | { | 576 | { |
577 | struct ubi_volume_info vi; | 577 | struct ubi_volume_info vi; |
578 | 578 | ||
diff --git a/include/uapi/mtd/ubi-user.h b/include/uapi/mtd/ubi-user.h index b98585ad3346..9c885e26cc0f 100644 --- a/include/uapi/mtd/ubi-user.h +++ b/include/uapi/mtd/ubi-user.h | |||
@@ -138,9 +138,9 @@ | |||
138 | * Block devices on UBI volumes | 138 | * Block devices on UBI volumes |
139 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 139 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
140 | * | 140 | * |
141 | * To attach or detach a block device from an UBI volume the %UBI_IOCVOLATTBLK | 141 | * To create or remove a R/O block device on top of an UBI volume the |
142 | * and %UBI_IOCVOLDETBLK ioctl commands should be used, respectively. | 142 | * %UBI_IOCVOLCRBLK and %UBI_IOCVOLRMBLK ioctl commands should be used, |
143 | * These commands take no arguments. | 143 | * respectively. These commands take no arguments. |
144 | */ | 144 | */ |
145 | 145 | ||
146 | /* | 146 | /* |
@@ -198,10 +198,10 @@ | |||
198 | /* Set an UBI volume property */ | 198 | /* Set an UBI volume property */ |
199 | #define UBI_IOCSETVOLPROP _IOW(UBI_VOL_IOC_MAGIC, 6, \ | 199 | #define UBI_IOCSETVOLPROP _IOW(UBI_VOL_IOC_MAGIC, 6, \ |
200 | struct ubi_set_vol_prop_req) | 200 | struct ubi_set_vol_prop_req) |
201 | /* Attach a block device to an UBI volume */ | 201 | /* Create a R/O block device on top of an UBI volume */ |
202 | #define UBI_IOCVOLATTBLK _IO(UBI_VOL_IOC_MAGIC, 7) | 202 | #define UBI_IOCVOLCRBLK _IO(UBI_VOL_IOC_MAGIC, 7) |
203 | /* Detach a block device from an UBI volume */ | 203 | /* Remove the R/O block device */ |
204 | #define UBI_IOCVOLDETBLK _IO(UBI_VOL_IOC_MAGIC, 8) | 204 | #define UBI_IOCVOLRMBLK _IO(UBI_VOL_IOC_MAGIC, 8) |
205 | 205 | ||
206 | /* Maximum MTD device name length supported by UBI */ | 206 | /* Maximum MTD device name length supported by UBI */ |
207 | #define MAX_UBI_MTD_NAME_LEN 127 | 207 | #define MAX_UBI_MTD_NAME_LEN 127 |