Highlighted
schotten
1 Nickel

Changing sysfs path in Linux

Hi guys!

I have a question regarding /sys/devices path of scini devices.

We created (and introduced) volumes to a Linux box running one legacy application that requires the path of the low level device like /sys/devices/pci000:00/0000:00:01:0/... and goes on (examples below):

lrwxrwxrwx  1 root root 0 Jun 28 16:31 sda -> ../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:0:0/0:0:0:0/block/sda

lrwxrwxrwx  1 root root 0 Jun 28 16:31 sdb -> ../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:0:1/0:0:1:0/block/sdb

lrwxrwxrwx  1 root root 0 Jun 28 16:31 sdc -> ../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:0:2/0:0:2:0/block/sdc

The scinia device has this path:

lrwxrwxrwx  1 root root 0 Jun 28 16:31 scinia -> ../devices/virtual/block/scinia

Is possible somehow change the sysfs /sys/devices/virtual/block/scinia to something else thru a drv_cfg.txt parameter or kind? The application requires the "pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:0:0/0:0:0:0" structure to goes on.


Thanks in advance.

0 Kudos