---
name: "scsi_report_lun_scan"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_report_lun_scan"
---

# scsi\_report\_lun\_scan(9)

Scan using SCSI REPORT LUN results

## NAME

scsi\_report\_lun\_scan - Scan using SCSI REPORT LUN results

## SYNOPSIS

**int scsi\_report\_lun\_scan(struct scsi\_target \*** *starget***, int** *bflags***, enum scsi\_scan\_mode** *rescan***);**

## ARGUMENTS

*starget*

which target

*bflags*

Zero or a mix of BLIST\_NOLUN, BLIST\_REPORTLUN2, or BLIST\_NOREPORTLUN

*rescan*

nonzero if we can skip code only needed on first scan

## DESCRIPTION

Fast scanning for modern (SCSI-3) devices by sending a REPORT LUN command. Scan the resulting list of LUNs by calling scsi\_probe\_and\_add\_lun.

If BLINK\_REPORTLUN2 is set, scan a target that supports more than 8 LUNs even if it's older than SCSI-3. If BLIST\_NOREPORTLUN is set, return 1 always. If BLIST\_NOLUN is set, return 0 always. If starget-\>no\_report\_luns is set, return 1 always.

## RETURN

0: scan completed (or no memory, so further scanning is futile) 1: could not scan with REPORT LUN

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
