Are ZFS Automatic Spares Size-Aware when Using "autoreplace=on"?

Solution 1:

Autoreplace is for replacing drives in thesame physical location, it has nothing to do with hot/cold spares.

But it looks like zfs tries all spares in order until it hits one that succeeds. I think this is the relevant source code : GitHub