OSDN Git Service

fdc-test: Avoid deprecated 'change' command
authorEric Blake <eblake@redhat.com>
Thu, 27 Apr 2017 21:58:20 +0000 (16:58 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 9 May 2017 07:14:40 +0000 (09:14 +0200)
commitccb61bdd73a6d9a3eb717d1b69125ec7ca638a3b
treee8d3ce833e033b1a9bab33db423348792688a5dc
parent28934e0c759dae0d78b8b4336841b0287d04b4b6
fdc-test: Avoid deprecated 'change' command

Use the preferred blockdev-change-medium command instead.

Also, use of 'device' is deprecated; adding an explicit id on
the command line lets us use 'id' for both blockdev-change-medium
and eject.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20170427215821.19397-10-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
tests/fdc-test.c