diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-14 12:42:24 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-14 12:42:24 +0100 |
commit | 7486fc6f43bdb22a989cc039e361afc4c0658d52 (patch) | |
tree | eebbe3e0bb3ec8c79a1a60961f1d7c2ea96a28e1 /resize | |
parent | b48ae2eadf43315159f2174c8fd35b05ede14c0f (diff) | |
download | libguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.tar.gz libguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.tar.xz libguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.zip |
generator: Rename 'add_drive_opts' API to 'add_drive'.
By using the once_had_no_optargs flag, this change is backwards
compatible for callers (except Haskell, PHP and GObject as discussed
in earlier commit).
Diffstat (limited to 'resize')
-rw-r--r-- | resize/resize.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resize/resize.ml b/resize/resize.ml index cd4c9d62..9ef2bbd3 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -173,7 +173,7 @@ read the man page virt-resize(1). printf "alignment\n"; printf "align-first\n"; let g = new G.guestfs () in - g#add_drive_opts "/dev/null"; + g#add_drive "/dev/null"; g#launch (); if feature_available g [| "ntfsprogs"; "ntfs3g" |] then printf "ntfs\n"; @@ -209,8 +209,8 @@ let btrfs_available = ref true let connect_both_disks () = let g = new G.guestfs () in if debug then g#set_trace true; - g#add_drive_opts ?format ~readonly:true infile; - g#add_drive_opts ?format:output_format ~readonly:false outfile; + g#add_drive ?format ~readonly:true infile; + g#add_drive ?format:output_format ~readonly:false outfile; if not quiet then Progress.set_up_progress_bar ~machine_readable g; g#launch (); @@ -1125,7 +1125,7 @@ let g = let g = new G.guestfs () in if debug then g#set_trace true; - g#add_drive_opts ?format:output_format ~readonly:false outfile; + g#add_drive ?format:output_format ~readonly:false outfile; if not quiet then Progress.set_up_progress_bar ~machine_readable g; g#launch (); |