]> git.proxmox.com Git - mirror_zfs.git/commit
Sort by full path name instead of by GUID when importing
authorkpande <github@tripleback.net>
Tue, 26 Feb 2019 19:13:15 +0000 (11:13 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 26 Feb 2019 19:13:15 +0000 (11:13 -0800)
commit47d7ef5490f06bf36bbf9667f266bfd6907ca596
tree789b34a37e60d6d3845e473e78b88a470f89d1db
parente065034563c8ea34d647c83c22717d72315ca580
Sort by full path name instead of by GUID when importing

Preferentially sort by the full path name instead of GUID when determining
which device links to use.  This helps ensure that the pool vdevs are named
consistently when multiple links for a device appear in the same directory.
For example, the /dev/disk/by-id/scsi* and /dev/disk/by-id/wwn* links.

Reviewed-by: Alek Pinchuk <apinchuk@datto.com>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Authored-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Kash Pande <kash@tripleback.net>
Closes #8108
Closes #8440
lib/libzutil/zutil_import.c