Fix for fd0 and sr0 in /proc/partitions

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

 



Hi,

So /proc/partitions can have floppy and optical drives on it.  For now
in config.c, load_partitions() function I added this after the major
number is obtained (just before minor strtoul() is performed):

        // ignore floppy and cdrom devices
        if (major==2 || major==11)
            continue;

Should probably be in the main line and back ported to some prior
versions.  I've gone with 4.1



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux