diff options
author | Scott Mayhew <smayhew@redhat.com> | 2018-05-11 11:19:00 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-05-11 12:20:29 -0400 |
commit | dac2707227bf35c19f7771e5f19b61bc334b6cd1 (patch) | |
tree | 45ce51cc059b74d7000988391a7f6384550a33d4 /net/sunrpc/xprtrdma/svc_rdma.c | |
parent | 9c2ece6ef67e9d376f32823086169b489c422ed0 (diff) |
nfsd: make nfsd4_scsi_identify_device retry with a larger buffer
nfsd4_scsi_identify_device() performs a single IDENTIFY command for the
device identification VPD page using a small buffer. If the reply is
too large to fit in this buffer then the GETDEVICEINFO reply will not
contain any info for the SCSI volume aside from the registration key.
This can happen for example if the device has descriptors using long
SCSI name strings.
When the initial reply from the device indicates a larger buffer is
needed, retry once using the page length from that reply.
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/svc_rdma.c')
0 files changed, 0 insertions, 0 deletions