how to reuse virsh attach-device target dev name
when i use *virsh attach-device* command with a xml file to attach a disk to a virtual machine, the *dev* attribute value of *target* node must be a new one; even I use *virsh detach-device* to detach a disk, the *dev* attribute value still unavailable for other disk. how can i reuse the detached disk's dev attribute value?

attach.xml:

    <disk type='file' device='disk'>
        <driver name='tap2' type='tapdisk'/>
        <source file='aio:/root/virtual.disk.4g'/>
        <target dev='xvdf' />
    </disk>
command:

    virsh attach-device 1 attach.xml
After this step, i can't use xvdf for other virtual disk to vm 1, this is understandable.

    virsh detach-device attach.xml
Here is the question: After this step, i still cannot use xvdf for other virtual disk to vm 1, how can i release it and reuse it?
how to reuse virsh attach-device target dev name
===

when i use *virsh attach-device* command with a xml file to attach a disk to a virtual machine, the *dev* attribute value of *target* node must be a new one; even I use *virsh detach-device* to detach a disk, the *dev* attribute value still unavailable for other disk. how can i reuse the detached disk's dev attribute value?

attach.xml:

    <disk type='file' device='disk'>
        <driver name='tap2' type='tapdisk'/>
        <source file='aio:/root/virtual.disk.4g'/>
        <target dev='xvdf' />
    </disk>
command:

    virsh attach-device 1 attach.xml
After this step, i can't use xvdf for other virtual disk to vm 1, this is understandable.

    virsh detach-device attach.xml
Here is the question: After this step, i still cannot use xvdf for other virtual disk to vm 1, how can i release it and reuse it?