Re: [PATCH 10/10] block/rnbd: change device's name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 23, 2023 at 9:53 AM Guoqing Jiang <guoqing.jiang@xxxxxxxxx> wrote:
>
> Both rnbd-srv and rnbd-clt set it with 'clt', which is not
> clear, let's change them to 'clt' and 'srv' accordingly.
The "ctl" means "control" here, it contains some writable knobs..

And this change will break user space tools, so NAK for this one,
others looks good, will reply separately.

> Signed-off-by: Guoqing Jiang <guoqing.jiang@xxxxxxxxx>
NAK, please drop it.
Thx!
> ---
>  drivers/block/rnbd/rnbd-clt-sysfs.c | 2 +-
>  drivers/block/rnbd/rnbd-srv-sysfs.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/block/rnbd/rnbd-clt-sysfs.c b/drivers/block/rnbd/rnbd-clt-sysfs.c
> index a0b49a0c0bdd..f6e2b075d2d5 100644
> --- a/drivers/block/rnbd/rnbd-clt-sysfs.c
> +++ b/drivers/block/rnbd/rnbd-clt-sysfs.c
> @@ -652,7 +652,7 @@ int rnbd_clt_create_sysfs_files(void)
>
>         rnbd_dev = device_create_with_groups(rnbd_dev_class, NULL,
>                                               MKDEV(0, 0), NULL,
> -                                             default_attr_groups, "ctl");
> +                                             default_attr_groups, "clt");
>         if (IS_ERR(rnbd_dev)) {
>                 err = PTR_ERR(rnbd_dev);
>                 goto cls_destroy;
> diff --git a/drivers/block/rnbd/rnbd-srv-sysfs.c b/drivers/block/rnbd/rnbd-srv-sysfs.c
> index 4962826e9639..f17a4085dfbb 100644
> --- a/drivers/block/rnbd/rnbd-srv-sysfs.c
> +++ b/drivers/block/rnbd/rnbd-srv-sysfs.c
> @@ -219,7 +219,7 @@ int rnbd_srv_create_sysfs_files(void)
>                 return PTR_ERR(rnbd_dev_class);
>
>         rnbd_dev = device_create(rnbd_dev_class, NULL,
> -                                 MKDEV(0, 0), NULL, "ctl");
> +                                 MKDEV(0, 0), NULL, "srv");
>         if (IS_ERR(rnbd_dev)) {
>                 err = PTR_ERR(rnbd_dev);
>                 goto cls_destroy;
> --
> 2.35.3
>




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux