https://bugzilla.novell.com/show_bug.cgi?id=273105 fehr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fehr@novell.com Status|NEEDINFO |NEW Info Provider|fehr@novell.com | ------- Comment #6 from fehr@novell.com 2007-05-14 03:51 MST ------- Unsing the device /dev/disk/by-id/...-part[0-9]+ is the new default way of naming devices in /etc/fstab. If you would like to check if a kernel device name is the same as a dev/disk/by-id name you could do the following (in pseducode): string kernelname; string fstabname; map tg = Storage::GetTargetMap(); map p = Storage::GetPartition( tg, fstabname ); if( p["device"]:"" == kernelname ) //devices match else //devices do not match. Storage::GetPartition() understands all type of names possible used in /etc/fstab as second parameter (e.g. /dev/sda1, /dev/disk/by-id/scsi-SATA_ST340016A_3HS8YAL0-part6, /dev/disk/by-path/pci-0000:00:1f.2-scsi-2:0:0:0-part4, LABEL=emil, UUID=b9a196ae-392d-4fbc-aa96-20967ff9c2c9) There is also a function Storage::DeviceMatchFstab() used by update code that gets a kernel name and a string used as first field in a fstab line and returns true/false if both match. But Storage::DeviceMatchFstab() also takes possible renaming of devices into account (e.g. /dev/hda in SL 10.2 gets /dev/sda in SL 10.3) no idea if this is usable with the logic in repair code. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.