@@ -1713,10 +1713,6 @@ static QemuOptsList runtime_opts = {
1713
1713
.name = "timeout" ,
1714
1714
.type = QEMU_OPT_NUMBER ,
1715
1715
},
1716
- {
1717
- .name = "filename" ,
1718
- .type = QEMU_OPT_STRING ,
1719
- },
1720
1716
{ /* end of list */ }
1721
1717
},
1722
1718
};
@@ -1756,27 +1752,12 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
1756
1752
char * initiator_name = NULL ;
1757
1753
QemuOpts * opts ;
1758
1754
Error * local_err = NULL ;
1759
- const char * transport_name , * portal , * target , * filename ;
1755
+ const char * transport_name , * portal , * target ;
1760
1756
#if LIBISCSI_API_VERSION >= (20160603 )
1761
1757
enum iscsi_transport_type transport ;
1762
1758
#endif
1763
1759
int i , ret = 0 , timeout = 0 , lun ;
1764
1760
1765
- /* If we are given a filename, parse the filename, with precedence given to
1766
- * filename encoded options */
1767
- filename = qdict_get_try_str (options , "filename" );
1768
- if (filename ) {
1769
- warn_report ("'filename' option specified. "
1770
- "This is an unsupported option, and may be deprecated "
1771
- "in the future" );
1772
- iscsi_parse_filename (filename , options , & local_err );
1773
- if (local_err ) {
1774
- ret = - EINVAL ;
1775
- error_propagate (errp , local_err );
1776
- goto exit ;
1777
- }
1778
- }
1779
-
1780
1761
opts = qemu_opts_create (& runtime_opts , NULL , 0 , & error_abort );
1781
1762
qemu_opts_absorb_qdict (opts , options , & local_err );
1782
1763
if (local_err ) {
@@ -2006,7 +1987,7 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
2006
1987
}
2007
1988
memset (iscsilun , 0 , sizeof (IscsiLun ));
2008
1989
}
2009
- exit :
1990
+
2010
1991
return ret ;
2011
1992
}
2012
1993
0 commit comments