vgchange.c patch for devfs
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thanks for providing this.
Need to do some LVM devfs cleanup work...
Regards,
Heinz -- The LVM guy --
Quoted 9 lines · YOSHIDA Daisuke
Hello.
This is a bug-report for lvm tools (0.8final).I was using LVM tools (0.8final) on Linux 2.4.0-test8 with DEVFS, and found that "vgchange -ay" command does not work in the following cases:
- after "vgchange -an"
- after "lvmchange -R" and answering "y"
- after rebooting
Quoted 37 lines
This trouble must be caused by devfs, which deletes /dev/(vgname)/ directory when the VG is deactivated. So I made a small patch for "
vgchange.c" to use LVM on my linux box. Please see the attached file.Thank you.
Signature · 30 lines
YOSHIDA Daisuke / [email protected] http://www.geocities.co.jp/SiliconValley-SanJose/4514/ diff -crN LVM/0.8final/tools/vgchange.c LVM.modified/0.8final/tools/vgchange.c *** LVM/0.8final/tools/vgchange.c Tue Feb 22 11:09:33 2000 --- LVM.modified/0.8final/tools/vgchange.c Sun Oct 1 12:50:40 2000 *************** *** 391,397 **** if ( opt_v > 0) printf ( "%s -- creating VGDA for \"%s\" " "in kernel\n", cmd, vg_name); ! if ( ( ret = vg_create ( vg_name, vg)) == 0) printf ( "%s -- volume group \"%s\" successfully activated\n", cmd, vg_name); else { --- 391,403 ---- if ( opt_v > 0) printf ( "%s -- creating VGDA for \"%s\" " "in kernel\n", cmd, vg_name); ! ! ret=vg_create( vg_name, vg); ! if ( ret == -LVM_EVG_CREATE_REMOVE_OPEN) { ! vg_create_dir_and_group( vg); ! ret=vg_create ( vg_name, vg); ! } ! if ( ret == 0) printf ( "%s -- volume group \"%s\" successfully activated\n", cmd, vg_name); else {
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Bartningstr. 12
64289 Darmstadt
Germany
[email protected] +49 6151 7103 86
FAX 7103 96=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-