kubernetes/pkg/volume/fc
xakdwch ddcc448070 volume/fc: fix FibreChannel volume plugin matching wrong disks
Before:
  findDisk()
    fcPathExp := "^(pci-.*-fc|fc)-0x" + wwn + "-lun-" + lun
After:
  findDisk()
    fcPathExp := "^(pci-.*-fc|fc)-0x" + wwn + "-lun-" + lun + "$"

fc path may have the same wwns but different luns.for example:
pci-0000:41:00.0-fc-0x500a0981891b8dc5-lun-1
pci-0000:41:00.0-fc-0x500a0981891b8dc5-lun-12

Function findDisk() may mismatch the fc path, return the wrong device and wrong associated devicemapper parent.
This may cause a disater that pods attach wrong disks. Accutally it happended in my testing environment before.
2022-06-23 16:36:01 +08:00
..
attacher.go Pass FsGroup to MountDevice 2021-07-03 16:29:42 -07:00
disk_manager.go use input parameter that is invalid before 2020-11-26 17:04:55 +08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
fc.go Merge pull request #104732 from mengjiao-liu/remove-flag-experimental-check-node-capabilities-before-mount 2022-02-24 07:56:30 -08:00
fc_test.go Fixed a possible nil pointer dereference caused by variable plug 2021-05-21 10:17:04 +08:00
fc_util.go volume/fc: fix FibreChannel volume plugin matching wrong disks 2022-06-23 16:36:01 +08:00
fc_util_test.go volume/fc: fix FibreChannel volume plugin matching wrong disks 2022-06-23 16:36:01 +08:00
OWNERS Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00