OSDN Git Service

sd: implement ->get_unique_id
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Oct 2021 06:06:02 +0000 (08:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 22 Oct 2021 14:33:57 +0000 (08:33 -0600)
commitb83ce214af3885437ff223b3a0c8ec6072a84167
treee2bb3bb2ed485da3091f02393146ad5b64d9c4ba
parent9208d414975895f69e9aca49153060ddd31b18d0
sd: implement ->get_unique_id

Add the method to query for a uniqueue ID of a given type by looking
it up in the cached device identification VPD page.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20211021060607.264371-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/sd.c