Re: lvm fails when /proc/devices contains "-1 smblk"

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

 



On Sat, 2012-03-17 at 16:12 +0000, Alasdair G Kergon wrote: 
> > Dne 16.3.2012 07:28, John Mesmon napsal(a):
> > > Block devices:
> > >  -1 smblk
> 
> That's outside the range of valid major numbers and surely shouldn't be getting
> exposed to userspace in /proc/devices.
> 
> static struct mtd_blktrans_ops sm_ftl_ops = {
>         .name           = "smblk",
>         .major          = -1,
> 
> Why's -1 being used?
> 
> Alasdair

Woops. I accidentally assigned it 4096 major.
I probably thought that it will get me dynamic major number, sorry!
Will fix soon!

Best regards,
Maxim Levitsky

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux