LVM with devfs
In case anybody cares, I have an experience here to share:
When I do a pvcreate on /dev/md/3 with devfs, pvcreate says file doesn't exist (talking about /dev/md/3).
Also dies with /dev/discs/disc1/part1. (problem with symlinks?) When I use /dev/ide/host0/bus1/target0/lun0/part1 it works.
When I take off devfs (append=devfs=nomount), then /dev/md3 works. Also /dev/hdc1 works.
Using LVM "0.9.1_beta5_a", and Kernel "2.4.1".
Quoted 4 lines · Ralph Jennings
In case anybody cares, I have an experience here to share:
When I do a pvcreate on
/dev/md/3with devfs, pvcreate says file doesn't exist (talking about/dev/md/3).
patch for /proc/partitions attacched
Quoted 2 lines
Also dies with
/dev/discs/disc1/part1. (problem with symlinks?) When I use/dev/ide/host0/bus1/target0/lun0/part1it works.
yes, it doesn't not follow symlinks
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
drivers/md/md.c renamed from drivers/md/md.c.bluca.orig +10 -3
@@ -3606,6 +3606,8 @@ int md__init md_init (void) {static char * name ="mdrecoveryd" ; +unsigned int minor; +char devname[128 ]; printk (KERN_INFO "md driver %d.%d.%d MAX_MD_DEVS=%d, MD_SB_DISKS=%d\n", MD_MAJOR_VERSION, MD_MINOR_VERSION,
@@ -3617,9 +3619,14 @@return (-1 ); } devfs_handle =devfs_mk_dir (NULL ,"md" ,NULL ); -devfs_register_series (devfs_handle,"%u" ,MAX_MD_DEVS ,DEVFS_FL_DEFAULT , -MAJOR_NR ,0 ,S_IFBLK |S_IRUSR |S_IWUSR , - &md_fops,NULL ); +/* we don't use devfs_register_series because we want to fill md_hd_struct */ +for (minor=0 ; minor <MAX_MD_DEVS ; ++minor) + { +sprintf (devname,"%u" , minor); + md_hd_struct[minor].de =devfs_register (devfs_handle, + devname,DEVFS_FL_DEFAULT ,MAJOR_NR , minor, +S_IFBLK |S_IRUSR |S_IWUSR , &md_fops,NULL ); + }/* forward all md request to md_make_request */ blk_queue_make_request (BLK_DEFAULT_QUEUE (MAJOR_NR ), md_make_request);