block/ssh: Add ssh_has_filename_options_conflict()
authorAshijeet Acharya <ashijeetacharya@gmail.com>
Tue, 25 Oct 2016 13:03:57 +0000 (18:33 +0530)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Oct 2016 15:49:13 +0000 (16:49 +0100)
commit89dbe18089127cf90993359096b659ea6f819848
treeb865a9afe2feca74625d5521096912b66e54239e
parent0bb1137930f51a89fb1bfeb0c46aa68af0395167
block/ssh: Add ssh_has_filename_options_conflict()

We have 5 options plus ("server") option which is added in the next
patch that conflict with specifying a SSH filename. We need to iterate
over all the options to check whether its key has an "server." prefix.

This iteration will help us adding the new option "server" easily.

Signed-off-by: Ashijeet Acharya <ashijeetacharya@gmail.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/ssh.c