bcache: name bcache devices in an ordered sequence asbcache0, bcache1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 59 lines · On 2017/5/8 下午12:39, [email protected] wrote:
Hello Li
> > From: "tang.junhui" <[email protected]>
> >
> > Currently, names of bcache devices displayed as bcache0, bcache16,
> > bcache32, etc. This patch changes their names as bcache0, bcache1,
> > bcache2, etc.
> >
> > Signed-off-by: tang.junhui <[email protected]>
> > ---
> >
drivers/md/bcache/super.c| 2 +-> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git
a/drivers/md/bcache/super.cb/drivers/md/bcache/super.c> > index 3a19cbc..867d9a9 100644
> > ---
a/drivers/md/bcache/super.c> > +++
b/drivers/md/bcache/super.c> > @@ -793,7 +793,7 @@ static int bcache_device_init(struct
bcache_device*d, unsignedblock_size,> > }
> >
> >
set_capacity(d->disk, sectors);> > -
snprintf(d->disk->disk_name, DISK_NAME_LEN, "bcache%i", minor);> > + snprintf(d->disk->disk_name,
DISK_NAME_LEN, "bcache%i",
minor /BCACHE_MINORS);> >
> > d->disk->major =
bcache_major;> > d->disk->first_minor = minor;
> >
>
> Can I understand that the next patch just revert this modification ? If
Quoted 7 lines
> yes, I suggest to combine these 2 patch into one.
This patch changes bcache devices names from bcache0, bcache16, ... to bcache0, bcache1, ...
and the other patch fix leakage of minor numbers, they are different issues.
Yes, they might be two different issue. But this patch set only has two patches, and the first patch is reverted in second patch, it does not make sense to me.
Coly
Signature · 1 line
Coly Li