Re: [PATCH] node_device: Enclose Linux specific code in ifdef __linux__

2023-07-11 Thread Kristina Hanicova
On Tue, Jul 11, 2023 at 4:39 PM Michal Privoznik wrote: > Our CI started to enable udev backend on FreeBSD. And while there > is udev on FreeBSD some parts of our code are highly Linux > specific, e.g. translating SCSI device type to string (from an > integer obtained from the sysfs). Obviously,

[PATCH] node_device: Enclose Linux specific code in ifdef __linux__

2023-07-11 Thread Michal Privoznik
Our CI started to enable udev backend on FreeBSD. And while there is udev on FreeBSD some parts of our code are highly Linux specific, e.g. translating SCSI device type to string (from an integer obtained from the sysfs). Obviously, this doesn't work anywhere else. This is the reason why we need to