Our application consists of testing hard disk drives and drives are inserted and removed after the testing.  When a drive is inserted on our tester, udev created a file in the /dev/disk/by-path. Our application looks at these files to determine when a new drive is inserted or removed.   The name contains the physical slot or bay the drive is connected so we know what drives is where.  One HBA controller we are looking at creates this access file under this directory, but uses a LUN that is not related to the physical slot or bay the drive is in. With only the LUN we don't know where the drive is physically located in our tester.  My question is who created the filename? Is it the HBA drives?  I have the driver's source code so I am hoping I can modify it to create a filename with the physical slot or bay instead of the LUN.Drives are being inserted and removed in real time all the time.
Creating Disk Drive Device Files in /dev/disk/by-path
filesystems;udev;disk