• T
    [PATCH] libata: implement ata_dev_revalidate() · 623a3128
    Tejun Heo 提交于
    ata_dev_revalidate() re-reads IDENTIFY PAGE of the given device and
    makes sure it's the same device as the configured one.  Once it's
    verified that it's the same device, @dev is configured according to
    newly read IDENTIFY PAGE.  Note that revalidation currently doesn't
    invoke transfer mode reconfiguration.
    
    Criteria for 'same device'
    
    * same class (of course)
    * same model string
    * same serial string
    * if ATA, same n_sectors (to catch geometry parameter changes)
    Signed-off-by: NTejun Heo <htejun@gmail.com>
    Signed-off-by: NJeff Garzik <jeff@garzik.org>
    623a3128
libata.h 26.2 KB