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.
31

0

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

1

36       could not scan with REPORT LUN
37

AUTHORS

39       James Bottomley <James.Bottomley@hansenpartnership.com>
40           Author.
41
42       Rob Landley <rob@landley.net>
43           Author.
44
46Kernel Hackers Manual 2.6.       November 2011         SCSI_REPORT_LUN_SCAN(9)
Impressum