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
24 struct guestfs_lvm_int_pv {
34 hyper pv_pe_alloc_count;
41 typedef struct guestfs_lvm_int_pv guestfs_lvm_int_pv_list<>;
43 struct guestfs_lvm_int_vg {
52 hyper vg_extent_count;
65 typedef struct guestfs_lvm_int_vg guestfs_lvm_int_vg_list<>;
67 struct guestfs_lvm_int_lv {
73 hyper lv_kernel_major;
74 hyper lv_kernel_minor;
86 typedef struct guestfs_lvm_int_lv guestfs_lvm_int_lv_list<>;
88 struct guestfs_int_stat {
104 struct guestfs_int_statvfs {
118 struct guestfs_mount_args {
123 struct guestfs_touch_args {
127 struct guestfs_cat_args {
131 struct guestfs_cat_ret {
135 struct guestfs_ll_args {
139 struct guestfs_ll_ret {
143 struct guestfs_ls_args {
147 struct guestfs_ls_ret {
151 struct guestfs_list_devices_ret {
155 struct guestfs_list_partitions_ret {
159 struct guestfs_pvs_ret {
163 struct guestfs_vgs_ret {
167 struct guestfs_lvs_ret {
171 struct guestfs_pvs_full_ret {
172 guestfs_lvm_int_pv_list physvols;
175 struct guestfs_vgs_full_ret {
176 guestfs_lvm_int_vg_list volgroups;
179 struct guestfs_lvs_full_ret {
180 guestfs_lvm_int_lv_list logvols;
183 struct guestfs_read_lines_args {
187 struct guestfs_read_lines_ret {
191 struct guestfs_aug_init_args {
196 struct guestfs_aug_defvar_args {
201 struct guestfs_aug_defvar_ret {
205 struct guestfs_aug_defnode_args {
211 struct guestfs_aug_defnode_ret {
216 struct guestfs_aug_get_args {
220 struct guestfs_aug_get_ret {
224 struct guestfs_aug_set_args {
229 struct guestfs_aug_insert_args {
235 struct guestfs_aug_rm_args {
239 struct guestfs_aug_rm_ret {
243 struct guestfs_aug_mv_args {
248 struct guestfs_aug_match_args {
252 struct guestfs_aug_match_ret {
256 struct guestfs_aug_ls_args {
260 struct guestfs_aug_ls_ret {
264 struct guestfs_rm_args {
268 struct guestfs_rmdir_args {
272 struct guestfs_rm_rf_args {
276 struct guestfs_mkdir_args {
280 struct guestfs_mkdir_p_args {
284 struct guestfs_chmod_args {
289 struct guestfs_chown_args {
295 struct guestfs_exists_args {
299 struct guestfs_exists_ret {
303 struct guestfs_is_file_args {
307 struct guestfs_is_file_ret {
311 struct guestfs_is_dir_args {
315 struct guestfs_is_dir_ret {
319 struct guestfs_pvcreate_args {
323 struct guestfs_vgcreate_args {
328 struct guestfs_lvcreate_args {
334 struct guestfs_mkfs_args {
339 struct guestfs_sfdisk_args {
347 struct guestfs_write_file_args {
353 struct guestfs_umount_args {
354 string pathordevice<>;
357 struct guestfs_mounts_ret {
361 struct guestfs_file_args {
365 struct guestfs_file_ret {
366 string description<>;
369 struct guestfs_command_args {
373 struct guestfs_command_ret {
377 struct guestfs_command_lines_args {
381 struct guestfs_command_lines_ret {
385 struct guestfs_stat_args {
389 struct guestfs_stat_ret {
390 guestfs_int_stat statbuf;
393 struct guestfs_lstat_args {
397 struct guestfs_lstat_ret {
398 guestfs_int_stat statbuf;
401 struct guestfs_statvfs_args {
405 struct guestfs_statvfs_ret {
406 guestfs_int_statvfs statbuf;
409 struct guestfs_tune2fs_l_args {
413 struct guestfs_tune2fs_l_ret {
417 struct guestfs_blockdev_setro_args {
421 struct guestfs_blockdev_setrw_args {
425 struct guestfs_blockdev_getro_args {
429 struct guestfs_blockdev_getro_ret {
433 struct guestfs_blockdev_getss_args {
437 struct guestfs_blockdev_getss_ret {
441 struct guestfs_blockdev_getbsz_args {
445 struct guestfs_blockdev_getbsz_ret {
449 struct guestfs_blockdev_setbsz_args {
454 struct guestfs_blockdev_getsz_args {
458 struct guestfs_blockdev_getsz_ret {
462 struct guestfs_blockdev_getsize64_args {
466 struct guestfs_blockdev_getsize64_ret {
470 struct guestfs_blockdev_flushbufs_args {
474 struct guestfs_blockdev_rereadpt_args {
478 struct guestfs_upload_args {
479 string remotefilename<>;
482 struct guestfs_download_args {
483 string remotefilename<>;
486 struct guestfs_checksum_args {
491 struct guestfs_checksum_ret {
495 struct guestfs_tar_in_args {
499 struct guestfs_tar_out_args {
503 struct guestfs_tgz_in_args {
507 struct guestfs_tgz_out_args {
511 struct guestfs_mount_ro_args {
516 struct guestfs_mount_options_args {
522 struct guestfs_mount_vfs_args {
529 struct guestfs_debug_args {
534 struct guestfs_debug_ret {
538 struct guestfs_lvremove_args {
542 struct guestfs_vgremove_args {
546 struct guestfs_pvremove_args {
550 struct guestfs_set_e2label_args {
555 struct guestfs_get_e2label_args {
559 struct guestfs_get_e2label_ret {
563 struct guestfs_set_e2uuid_args {
568 struct guestfs_get_e2uuid_args {
572 struct guestfs_get_e2uuid_ret {
576 struct guestfs_fsck_args {
581 struct guestfs_fsck_ret {
585 struct guestfs_zero_args {
589 struct guestfs_grub_install_args {
594 struct guestfs_cp_args {
599 struct guestfs_cp_a_args {
604 struct guestfs_mv_args {
609 struct guestfs_drop_caches_args {
613 struct guestfs_dmesg_ret {
617 struct guestfs_equal_args {
622 struct guestfs_equal_ret {
626 struct guestfs_strings_args {
630 struct guestfs_strings_ret {
634 struct guestfs_strings_e_args {
639 struct guestfs_strings_e_ret {
643 struct guestfs_hexdump_args {
647 struct guestfs_hexdump_ret {
651 struct guestfs_zerofree_args {
655 struct guestfs_pvresize_args {
659 struct guestfs_sfdisk_N_args {
668 struct guestfs_sfdisk_l_args {
672 struct guestfs_sfdisk_l_ret {
676 struct guestfs_sfdisk_kernel_geometry_args {
680 struct guestfs_sfdisk_kernel_geometry_ret {
684 struct guestfs_sfdisk_disk_geometry_args {
688 struct guestfs_sfdisk_disk_geometry_ret {
692 struct guestfs_vg_activate_all_args {
696 struct guestfs_vg_activate_args {
701 struct guestfs_lvresize_args {
706 struct guestfs_resize2fs_args {
710 struct guestfs_find_args {
714 struct guestfs_find_ret {
718 struct guestfs_e2fsck_f_args {
722 struct guestfs_sleep_args {
726 struct guestfs_ntfs_3g_probe_args {
731 struct guestfs_ntfs_3g_probe_ret {
735 enum guestfs_procedure {
736 GUESTFS_PROC_MOUNT = 1,
737 GUESTFS_PROC_SYNC = 2,
738 GUESTFS_PROC_TOUCH = 3,
739 GUESTFS_PROC_CAT = 4,
742 GUESTFS_PROC_LIST_DEVICES = 7,
743 GUESTFS_PROC_LIST_PARTITIONS = 8,
744 GUESTFS_PROC_PVS = 9,
745 GUESTFS_PROC_VGS = 10,
746 GUESTFS_PROC_LVS = 11,
747 GUESTFS_PROC_PVS_FULL = 12,
748 GUESTFS_PROC_VGS_FULL = 13,
749 GUESTFS_PROC_LVS_FULL = 14,
750 GUESTFS_PROC_READ_LINES = 15,
751 GUESTFS_PROC_AUG_INIT = 16,
752 GUESTFS_PROC_AUG_CLOSE = 26,
753 GUESTFS_PROC_AUG_DEFVAR = 17,
754 GUESTFS_PROC_AUG_DEFNODE = 18,
755 GUESTFS_PROC_AUG_GET = 19,
756 GUESTFS_PROC_AUG_SET = 20,
757 GUESTFS_PROC_AUG_INSERT = 21,
758 GUESTFS_PROC_AUG_RM = 22,
759 GUESTFS_PROC_AUG_MV = 23,
760 GUESTFS_PROC_AUG_MATCH = 24,
761 GUESTFS_PROC_AUG_SAVE = 25,
762 GUESTFS_PROC_AUG_LOAD = 27,
763 GUESTFS_PROC_AUG_LS = 28,
764 GUESTFS_PROC_RM = 29,
765 GUESTFS_PROC_RMDIR = 30,
766 GUESTFS_PROC_RM_RF = 31,
767 GUESTFS_PROC_MKDIR = 32,
768 GUESTFS_PROC_MKDIR_P = 33,
769 GUESTFS_PROC_CHMOD = 34,
770 GUESTFS_PROC_CHOWN = 35,
771 GUESTFS_PROC_EXISTS = 36,
772 GUESTFS_PROC_IS_FILE = 37,
773 GUESTFS_PROC_IS_DIR = 38,
774 GUESTFS_PROC_PVCREATE = 39,
775 GUESTFS_PROC_VGCREATE = 40,
776 GUESTFS_PROC_LVCREATE = 41,
777 GUESTFS_PROC_MKFS = 42,
778 GUESTFS_PROC_SFDISK = 43,
779 GUESTFS_PROC_WRITE_FILE = 44,
780 GUESTFS_PROC_UMOUNT = 45,
781 GUESTFS_PROC_MOUNTS = 46,
782 GUESTFS_PROC_UMOUNT_ALL = 47,
783 GUESTFS_PROC_LVM_REMOVE_ALL = 48,
784 GUESTFS_PROC_FILE = 49,
785 GUESTFS_PROC_COMMAND = 50,
786 GUESTFS_PROC_COMMAND_LINES = 51,
787 GUESTFS_PROC_STAT = 52,
788 GUESTFS_PROC_LSTAT = 53,
789 GUESTFS_PROC_STATVFS = 54,
790 GUESTFS_PROC_TUNE2FS_L = 55,
791 GUESTFS_PROC_BLOCKDEV_SETRO = 56,
792 GUESTFS_PROC_BLOCKDEV_SETRW = 57,
793 GUESTFS_PROC_BLOCKDEV_GETRO = 58,
794 GUESTFS_PROC_BLOCKDEV_GETSS = 59,
795 GUESTFS_PROC_BLOCKDEV_GETBSZ = 60,
796 GUESTFS_PROC_BLOCKDEV_SETBSZ = 61,
797 GUESTFS_PROC_BLOCKDEV_GETSZ = 62,
798 GUESTFS_PROC_BLOCKDEV_GETSIZE64 = 63,
799 GUESTFS_PROC_BLOCKDEV_FLUSHBUFS = 64,
800 GUESTFS_PROC_BLOCKDEV_REREADPT = 65,
801 GUESTFS_PROC_UPLOAD = 66,
802 GUESTFS_PROC_DOWNLOAD = 67,
803 GUESTFS_PROC_CHECKSUM = 68,
804 GUESTFS_PROC_TAR_IN = 69,
805 GUESTFS_PROC_TAR_OUT = 70,
806 GUESTFS_PROC_TGZ_IN = 71,
807 GUESTFS_PROC_TGZ_OUT = 72,
808 GUESTFS_PROC_MOUNT_RO = 73,
809 GUESTFS_PROC_MOUNT_OPTIONS = 74,
810 GUESTFS_PROC_MOUNT_VFS = 75,
811 GUESTFS_PROC_DEBUG = 76,
812 GUESTFS_PROC_LVREMOVE = 77,
813 GUESTFS_PROC_VGREMOVE = 78,
814 GUESTFS_PROC_PVREMOVE = 79,
815 GUESTFS_PROC_SET_E2LABEL = 80,
816 GUESTFS_PROC_GET_E2LABEL = 81,
817 GUESTFS_PROC_SET_E2UUID = 82,
818 GUESTFS_PROC_GET_E2UUID = 83,
819 GUESTFS_PROC_FSCK = 84,
820 GUESTFS_PROC_ZERO = 85,
821 GUESTFS_PROC_GRUB_INSTALL = 86,
822 GUESTFS_PROC_CP = 87,
823 GUESTFS_PROC_CP_A = 88,
824 GUESTFS_PROC_MV = 89,
825 GUESTFS_PROC_DROP_CACHES = 90,
826 GUESTFS_PROC_DMESG = 91,
827 GUESTFS_PROC_PING_DAEMON = 92,
828 GUESTFS_PROC_EQUAL = 93,
829 GUESTFS_PROC_STRINGS = 94,
830 GUESTFS_PROC_STRINGS_E = 95,
831 GUESTFS_PROC_HEXDUMP = 96,
832 GUESTFS_PROC_ZEROFREE = 97,
833 GUESTFS_PROC_PVRESIZE = 98,
834 GUESTFS_PROC_SFDISK_N = 99,
835 GUESTFS_PROC_SFDISK_L = 100,
836 GUESTFS_PROC_SFDISK_KERNEL_GEOMETRY = 101,
837 GUESTFS_PROC_SFDISK_DISK_GEOMETRY = 102,
838 GUESTFS_PROC_VG_ACTIVATE_ALL = 103,
839 GUESTFS_PROC_VG_ACTIVATE = 104,
840 GUESTFS_PROC_LVRESIZE = 105,
841 GUESTFS_PROC_RESIZE2FS = 106,
842 GUESTFS_PROC_FIND = 107,
843 GUESTFS_PROC_E2FSCK_F = 108,
844 GUESTFS_PROC_SLEEP = 109,
845 GUESTFS_PROC_NTFS_3G_PROBE = 110,
846 GUESTFS_PROC_NR_PROCS
849 const GUESTFS_MESSAGE_MAX = 4194304;
851 /* The communication protocol is now documented in the guestfs(3)
855 const GUESTFS_PROGRAM = 0x2000F5F5;
856 const GUESTFS_PROTOCOL_VERSION = 1;
858 /* These constants must be larger than any possible message length. */
859 const GUESTFS_LAUNCH_FLAG = 0xf5f55ff5;
860 const GUESTFS_CANCEL_FLAG = 0xffffeeee;
862 enum guestfs_message_direction {
863 GUESTFS_DIRECTION_CALL = 0, /* client -> daemon */
864 GUESTFS_DIRECTION_REPLY = 1 /* daemon -> client */
867 enum guestfs_message_status {
868 GUESTFS_STATUS_OK = 0,
869 GUESTFS_STATUS_ERROR = 1
872 const GUESTFS_ERROR_LEN = 256;
874 struct guestfs_message_error {
875 string error_message<GUESTFS_ERROR_LEN>;
878 struct guestfs_message_header {
879 unsigned prog; /* GUESTFS_PROGRAM */
880 unsigned vers; /* GUESTFS_PROTOCOL_VERSION */
881 guestfs_procedure proc; /* GUESTFS_PROC_x */
882 guestfs_message_direction direction;
883 unsigned serial; /* message serial number */
884 guestfs_message_status status;
887 const GUESTFS_MAX_CHUNK_SIZE = 8192;
889 struct guestfs_chunk {
890 int cancel; /* if non-zero, transfer is cancelled */
891 /* data size is 0 bytes if the transfer has finished successfully */
892 opaque data<GUESTFS_MAX_CHUNK_SIZE>;