1SCSI_REPORT_LUN_SCAN(9)         SCSI mid layer         SCSI_REPORT_LUN_SCAN(9)
2
3
4

NAME

6       scsi_report_lun_scan - Scan using SCSI REPORT LUN results
7

SYNOPSIS

9       int scsi_report_lun_scan(struct scsi_target * starget, int bflags,
10                                int rescan);
11

ARGUMENTS

13       starget
14           which target
15
16       bflags
17           Zero or a mix of BLIST_NOLUN, BLIST_REPORTLUN2, or
18           BLIST_NOREPORTLUN
19
20       rescan
21           nonzero if we can skip code only needed on first scan
22

DESCRIPTION

24       Fast scanning for modern (SCSI-3) devices by sending a REPORT LUN
25       command. Scan the resulting list of LUNs by calling
26       scsi_probe_and_add_lun.
27
28       If BLINK_REPORTLUN2 is set, scan a target that supports more than 8
29       LUNs even if it´s older than SCSI-3. If BLIST_NOREPORTLUN is set,
30       return 1 always. If BLIST_NOLUN is set, return 0 always. If
31       starget->no_report_luns is set, return 1 always.
32

0

34       scan completed (or no memory, so further scanning is futile)
35

1

37       could not scan with REPORT LUN
38

AUTHORS

40       James Bottomley <James.Bottomley@hansenpartnership.com>
41           Author.
42
43       Rob Landley <rob@landley.net>
44           Author.
45
47Kernel Hackers Manual 2.6.         June 2019           SCSI_REPORT_LUN_SCAN(9)
Impressum