examples: Use add_drive_opts function in examples.

In libguestfs 1.20, you will be able to use 'add_drive'
instead of 'add_drive_opts' (except in the C bindings).

However until libguestfs 1.20 is the minimum stable version
people will still be using old versions where you have to use
'add_drive_opts'.  This makes the examples confusing.

Therefore continue to use 'add_drive_opts' in the examples
for now.
This commit is contained in:
Richard W.M. Jones
2012-08-02 17:21:47 +01:00
parent b3d0cc0588
commit 863168467f
18 changed files with 25 additions and 25 deletions

View File

@@ -29,7 +29,7 @@ public class CreateDisk
put ("readonly", Boolean.FALSE);
}
};
g.add_drive (output, optargs);
g.add_drive_opts (output, optargs);
// Run the libguestfs back-end.
g.launch ();

View File

@@ -35,7 +35,7 @@ public class InspectVM
}
};
g.add_drive (disk, optargs);
g.add_drive_opts (disk, optargs);
// Run the libguestfs back-end.
g.launch ();

View File

@@ -9,7 +9,7 @@ guestfs-java - How to use libguestfs from Java
import com.redhat.et.libguestfs.*;
GuestFS g = new GuestFS ();
g.add_drive ("disk.img");
g.add_drive_opts ("disk.img");
g.launch ();
=head1 DESCRIPTION