Unsolved
This post is more than 5 years old
6 Posts
0
742
June 28th, 2017 13:00
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.

