Re: [PATCHv2 blktests] srp: skip test if scsi_transport_srp module is loaded and in use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 05, 2025 / 20:34, Nilay Shroff wrote:
> The srp/* tests requires exclusive access to scsi_transport_srp
> module. Running srp/* tests would definitely fail if the test can't
> get exclusive access of scsi_transport_srp module as shown below:
> 
> $ lsmod | grep scsi_transport_srp
> scsi_transport_srp    327680  1 ibmvscsi
> 
> $ ./check srp/001
> srp/001 (Create and remove LUNs)                             [failed]
>     runtime    ...  0.249s
> tests/srp/rc: line 263: /sys/class/srp_remote_ports/port-0:1/delete: Permission denied
> tests/srp/rc: line 263: /sys/class/srp_remote_ports/port-0:1/delete: Permission denied
> modprobe: FATAL: Module scsi_transport_srp is in use.
> error: Invalid argument
> error: Invalid argument
> 
> So if the scsi_transport_srp module is loaded and in use then skip
> running srp/* tests.
> 
> Signed-off-by: Nilay Shroff <nilay@xxxxxxxxxxxxx>

I applied the patch with a few minor edits. Thanks!




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux