1 # libguestfs generated file
2 # WARNING: THIS FILE IS GENERATED BY 'src/generator.ml'.
3 # ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.
5 # Copyright (C) 2009 Red Hat Inc.
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2 of the License, or (at your option) any later version.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 self._o = libguestfsmod.create ()
28 libguestfsmod.close (self._o)
31 return libguestfsmod.launch (self._o)
33 def wait_ready (self):
34 return libguestfsmod.wait_ready (self._o)
36 def kill_subprocess (self):
37 return libguestfsmod.kill_subprocess (self._o)
39 def add_drive (self, filename):
40 return libguestfsmod.add_drive (self._o, filename)
42 def add_cdrom (self, filename):
43 return libguestfsmod.add_cdrom (self._o, filename)
45 def config (self, qemuparam, qemuvalue):
46 return libguestfsmod.config (self._o, qemuparam, qemuvalue)
48 def set_path (self, path):
49 return libguestfsmod.set_path (self._o, path)
52 return libguestfsmod.get_path (self._o)
54 def set_autosync (self, autosync):
55 return libguestfsmod.set_autosync (self._o, autosync)
57 def get_autosync (self):
58 return libguestfsmod.get_autosync (self._o)
60 def set_verbose (self, verbose):
61 return libguestfsmod.set_verbose (self._o, verbose)
63 def get_verbose (self):
64 return libguestfsmod.get_verbose (self._o)
66 def mount (self, device, mountpoint):
67 return libguestfsmod.mount (self._o, device, mountpoint)
70 return libguestfsmod.sync (self._o)
72 def touch (self, path):
73 return libguestfsmod.touch (self._o, path)
76 return libguestfsmod.cat (self._o, path)
78 def ll (self, directory):
79 return libguestfsmod.ll (self._o, directory)
81 def ls (self, directory):
82 return libguestfsmod.ls (self._o, directory)
84 def list_devices (self):
85 return libguestfsmod.list_devices (self._o)
87 def list_partitions (self):
88 return libguestfsmod.list_partitions (self._o)
91 return libguestfsmod.pvs (self._o)
94 return libguestfsmod.vgs (self._o)
97 return libguestfsmod.lvs (self._o)
100 return libguestfsmod.pvs_full (self._o)
103 return libguestfsmod.vgs_full (self._o)
106 return libguestfsmod.lvs_full (self._o)
108 def read_lines (self, path):
109 return libguestfsmod.read_lines (self._o, path)
111 def aug_init (self, root, flags):
112 return libguestfsmod.aug_init (self._o, root, flags)
114 def aug_close (self):
115 return libguestfsmod.aug_close (self._o)
117 def aug_defvar (self, name, expr):
118 return libguestfsmod.aug_defvar (self._o, name, expr)
120 def aug_defnode (self, name, expr, val):
121 return libguestfsmod.aug_defnode (self._o, name, expr, val)
123 def aug_get (self, path):
124 return libguestfsmod.aug_get (self._o, path)
126 def aug_set (self, path, val):
127 return libguestfsmod.aug_set (self._o, path, val)
129 def aug_insert (self, path, label, before):
130 return libguestfsmod.aug_insert (self._o, path, label, before)
132 def aug_rm (self, path):
133 return libguestfsmod.aug_rm (self._o, path)
135 def aug_mv (self, src, dest):
136 return libguestfsmod.aug_mv (self._o, src, dest)
138 def aug_match (self, path):
139 return libguestfsmod.aug_match (self._o, path)
142 return libguestfsmod.aug_save (self._o)
145 return libguestfsmod.aug_load (self._o)
147 def aug_ls (self, path):
148 return libguestfsmod.aug_ls (self._o, path)
151 return libguestfsmod.rm (self._o, path)
153 def rmdir (self, path):
154 return libguestfsmod.rmdir (self._o, path)
156 def rm_rf (self, path):
157 return libguestfsmod.rm_rf (self._o, path)
159 def mkdir (self, path):
160 return libguestfsmod.mkdir (self._o, path)
162 def mkdir_p (self, path):
163 return libguestfsmod.mkdir_p (self._o, path)
165 def chmod (self, mode, path):
166 return libguestfsmod.chmod (self._o, mode, path)
168 def chown (self, owner, group, path):
169 return libguestfsmod.chown (self._o, owner, group, path)
171 def exists (self, path):
172 return libguestfsmod.exists (self._o, path)
174 def is_file (self, path):
175 return libguestfsmod.is_file (self._o, path)
177 def is_dir (self, path):
178 return libguestfsmod.is_dir (self._o, path)
180 def pvcreate (self, device):
181 return libguestfsmod.pvcreate (self._o, device)
183 def vgcreate (self, volgroup, physvols):
184 return libguestfsmod.vgcreate (self._o, volgroup, physvols)
186 def lvcreate (self, logvol, volgroup, mbytes):
187 return libguestfsmod.lvcreate (self._o, logvol, volgroup, mbytes)
189 def mkfs (self, fstype, device):
190 return libguestfsmod.mkfs (self._o, fstype, device)
192 def sfdisk (self, device, cyls, heads, sectors, lines):
193 return libguestfsmod.sfdisk (self._o, device, cyls, heads, sectors, lines)
195 def write_file (self, path, content, size):
196 return libguestfsmod.write_file (self._o, path, content, size)
198 def umount (self, pathordevice):
199 return libguestfsmod.umount (self._o, pathordevice)
202 return libguestfsmod.mounts (self._o)
204 def umount_all (self):
205 return libguestfsmod.umount_all (self._o)
207 def lvm_remove_all (self):
208 return libguestfsmod.lvm_remove_all (self._o)
210 def file (self, path):
211 return libguestfsmod.file (self._o, path)
213 def command (self, arguments):
214 return libguestfsmod.command (self._o, arguments)
216 def command_lines (self, arguments):
217 return libguestfsmod.command_lines (self._o, arguments)
219 def stat (self, path):
220 return libguestfsmod.stat (self._o, path)
222 def lstat (self, path):
223 return libguestfsmod.lstat (self._o, path)
225 def statvfs (self, path):
226 return libguestfsmod.statvfs (self._o, path)
228 def tune2fs_l (self, device):
229 return libguestfsmod.tune2fs_l (self._o, device)
231 def blockdev_setro (self, device):
232 return libguestfsmod.blockdev_setro (self._o, device)
234 def blockdev_setrw (self, device):
235 return libguestfsmod.blockdev_setrw (self._o, device)
237 def blockdev_getro (self, device):
238 return libguestfsmod.blockdev_getro (self._o, device)
240 def blockdev_getss (self, device):
241 return libguestfsmod.blockdev_getss (self._o, device)
243 def blockdev_getbsz (self, device):
244 return libguestfsmod.blockdev_getbsz (self._o, device)
246 def blockdev_setbsz (self, device, blocksize):
247 return libguestfsmod.blockdev_setbsz (self._o, device, blocksize)
249 def blockdev_getsz (self, device):
250 return libguestfsmod.blockdev_getsz (self._o, device)
252 def blockdev_getsize64 (self, device):
253 return libguestfsmod.blockdev_getsize64 (self._o, device)
255 def blockdev_flushbufs (self, device):
256 return libguestfsmod.blockdev_flushbufs (self._o, device)
258 def blockdev_rereadpt (self, device):
259 return libguestfsmod.blockdev_rereadpt (self._o, device)