Comment 5 for bug 719129

Revision history for this message
Curtis Gedak (gedakc) wrote :

There are many things to consider before trying to change the behaviour of gparted.

The current solution maintains compatibility with all versions of dmraid and parted version 1.7.1 and higher.

Only newer versions of (lib)parted appear to use the dmraid library to handle naming. Previous versions of (lib)parted applied the commonly accepted naming practice to dmraid devices.

There are other players in this arena too, such as udev. I have found that some GNU/Linux distributions will make symbolic links, such as /dev/dm-#, to the /dev/mapper entries. Others will make symbolic links in the /dev/mapper directory to devices in /dev/dm-#. There are many different situations that gparted handles.

To learn about how dmraid is handled by GParted a thorough review of the DMRaid.cc file is recommended.

The current solution has been developed over a few years with testing on tens of GNU/Linux distributions

In my opinion, since dmraid is the only tool I am aware of that does not follow the commonly accepted naming practices, I would suggest that dmraid is the place to focus efforts to maintain naming compatibility.