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

Re: [linux-lvm] Severe bug in kernel-2.4.4 lvm



On Thu, May 31, 2001 at 04:11:55PM +0100, Joe Thornber wrote:
> 
> --- /usr/src/linux/drivers/md/lvm-fs.c  Thu May 31 15:48:03 2001
> +++ /tmp/linux/drivers/md/lvm-fs.c      Thu May 31 15:48:17 2001
> @@ -577,7 +572,7 @@
>         allocation_flag = 'A';
>         if (!(pv->pv_allocatable & PV_ALLOCATABLE))
>                 allocation_flag = 'N';
> -       pv_name = strchr(pv->pv_name+1,'/');
> +       pv_name = strrchr(pv->pv_name+1,'/');
>         if ( pv_name == 0) pv_name = pv->pv_name;
>         else               pv_name++;
>         sz = sprintf(buf,

That one's mine - strchr is right(one r in the middle), otherwise devfs users
just get names like "part1" and "disc"(sic) in /proc/lvm rather than long
device names.

patrick



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