On Thu, Jun 30, 2011 at 06:40:20PM +0800, Osier Yang wrote: > LVM allows one specify the VG with VG path like "/dev/lv_pool", and > it gets the correct VG name internally by skipping "/dev". > > <snip> > vg_name = skip_dev_dir(cmd, argv[0], NULL); > > if (strrchr(vg_name, '/')) { > log_error("Volume group name expected " > "(no slash)"); > return 0; > } > </snip> > > However, if the path is like "/dev/t/lv_pool", the VG name will be > "/t/lv_pool" then, definitely it's not a valid VG name, and LVM will > complain and fail. Isn't that just a user error for specifying an invalid <path> for the target in the XML then ? Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list