search for: guestfs_statvfs

Displaying 20 results from an estimated 61 matches for "guestfs_statvfs".

2020 Feb 26
1
[PATCH] filesystems: fix size reporting for filesystems
...fses[i]); + /* Try mounting and stating the device. This might reasonably + * fail, so don't show errors. + */ + guestfs_push_error_handler (g, NULL, NULL); + + if (guestfs_mount_ro (g, fses[i], "/") == 0) { + CLEANUP_FREE_STATVFS struct guestfs_statvfs *stat = NULL; + + stat = guestfs_statvfs (g, "/"); + size = stat->blocks * stat->bsize; + guestfs_umount_all (g); + } else { + size = guestfs_blockdev_getsize64 (g, fses[i]); + } + + guestfs_pop_error_handler (g); + i...
2014 Sep 09
2
CoreOS support
Hello, is CoreOS supported by libguestfs? I was trying to run several commands some were successful others ended up with an error: for example virt-df was OK but when I tried to do virt-resize I got the following error message: root@ny2proxd03:/var/lib/vz/images/100# virt-resize --expand /dev/sda3 vm-100-disk-1.qcow2 vm-100-disk-1.qcow2.resized Examining vm-100-disk-1.qcow2 ... 100%
2020 Feb 20
0
buffer overflow detected in collectd using libguestfs
...I need to mention that the code presented here lacks proper cleanup. /* guestfs_extend start */ /* get FS stats using libguestfs */ /* Filesystems. */ guestfs_h *g = NULL; int ret = 0; int j = 0; int cnt_drives = 0; char **fses = NULL; struct guestfs_statvfs *fs_stats = NULL; struct fs_info *fs = NULL; /* Work around collectd bug with waitpid() after fork() */ signal (SIGCHLD, SIG_DFL); g = guestfs_create(); if (g == NULL) { ERROR(PLUGIN_NAME " plugin: failed to create libguestfs handle"); go...
2012 Dec 15
1
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
...rt_get_mbr_id = 131 libguestfs: trace: vfs_type "/dev/sda1" libguestfs: trace: vfs_type = "ext4" libguestfs: trace: mount_ro "/dev/sda1" "/" libguestfs: trace: mount_ro = 0 libguestfs: trace: statvfs "/" libguestfs: trace: statvfs = <struct guestfs_statvfs *> libguestfs: trace: part_get_bootable "/dev/sda" 2 libguestfs: trace: part_get_bootable = 0 libguestfs: trace: part_get_mbr_id "/dev/sda" 2 libguestfs: trace: part_get_mbr_id = 130 libguestfs: trace: vfs_type "/dev/sda2" libguestfs: trace: vfs_type = "e...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of local disk. Rich.
2014 Jan 27
0
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
...uot;vfat")) + options = "utf8"; + else + options = ""; + + if (guestfs_mount_options (g, options, dev, "/") == -1) + return -1; + + /* For debugging, print statvfs before and after doing the tar-in. */ + if (verbose) { + CLEANUP_FREE_STATVFS struct guestfs_statvfs *stats = + guestfs_statvfs (g, "/"); + fprintf (stderr, "before uploading:\n"); + fprintf (stderr, " bsize = %" PRIi64 "\n", stats->bsize); + fprintf (stderr, " frsize = %" PRIi64 "\n", stats->frsize); + fprintf (s...
2014 Jan 27
2
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
I thought it would be easy to rewrite virt-make-fs in C. Two days later ... The Perl program uses a lot of external commands, which makes it pretty tedious to implement in C. Rich.
2014 Sep 09
2
Re: CoreOS support
...t_get_mbr_id = -1 (error) libguestfs: trace: vfs_type "/dev/sda1" libguestfs: trace: vfs_type = "vfat" libguestfs: trace: mount_ro "/dev/sda1" "/" libguestfs: trace: mount_ro = 0 libguestfs: trace: statvfs "/" libguestfs: trace: statvfs = <struct guestfs_statvfs *> libguestfs: trace: part_get_bootable "/dev/sda" 3 libguestfs: trace: part_get_bootable = 0 libguestfs: trace: part_get_mbr_id "/dev/sda" 3 libguestfs: trace: part_get_mbr_id = -1 (error) libguestfs: trace: vfs_type "/dev/sda3" libguestfs: trace: vfs_type = "...
2012 Mar 28
2
[PATCH v2] New APIs: mount-local and umount-local using FUSE
This version doesn't crash or cause hung processes or stuck mountpoints, so that's an improvement. Rich.
2012 Mar 27
3
[PATCH 0/3] Enable FUSE support in the API via 'mount-local' call.
This patch is just for review. It enables FUSE support in the API via two new calls, 'guestfs_mount_local' and 'guestfs_umount_local'. FUSE turns out to be very easy to deadlock (necessitating that the machine be rebooted). Running the test from the third patch is usually an effective way to demonstrate this. However I have not yet managed to produce a simple reproducer that
2012 Mar 29
3
[PATCH v3] New APIs: mount-local, mount-local-run and umount-local using FUSE
This changes the proposed API slightly. Previously 'mount-local' generating a 'mounted' event when the filesystem was ready, and from the 'mounted' event you had to effectively do a fork. Now, 'mount-local' just initializes the mountpoint and you have to call 'mount-local-run' to enter the FUSE main loop. Between these calls you can do a fork or whatever
2014 Sep 09
2
Re: CoreOS support
...00 00 04 | 00 00 00 36 | 00 00 00 00 | ... guestfsd: main_loop: proc 73 (mount_ro) took 0.06 seconds guestfsd: main_loop: new request, len 0x30 libguestfs: recv_from_daemon: 128 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 36 | 00 00 00 01 | 00 12 34 0d | ... libguestfs: trace: statvfs = <struct guestfs_statvfs *> libguestfs: trace: part_get_bootable "/dev/sda" 3 libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 ea | 00 00 00 00 | ... guestfsd: main_loop: proc 54 (statvfs) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 parted -m -- /dev/sda...
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in: https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html Rich.
2017 May 04
4
[PATCH 0/3] generator: Allow returned strings to be annotated as devices.
If we want to permit more than 255 drives to be added, then we will have to add the disks to the same virtio-scsi target using different unit (LUN) numbers. Unfortunately SCSI LUN enumeration in the Linux is not deterministic (eg. two disks with target=0, lun=[0,1] can be enumerated as /dev/sda or /dev/sdb randomly). Dealing with that will require some very complex device name translation on the
2010 Dec 07
0
builder-debian libguestfs FAILED tests 4c5038ab54fb6fdff75ca8d5fdda9e73f48a5050
...quot; 1 = -1 (error) part_get_bootable "/dev/sda" 2 = 0 part_get_mbr_id "/dev/sda" 2 = -1 (error) pvs_full = <struct guestfs_lvm_pv_list *> vfs_type "/dev/sda1" = "ext2" mount_ro "/dev/sda1" "/" = 0 statvfs "/" = <struct guestfs_statvfs *> umount_all = 0 vfs_type "/dev/sda2" = "LVM2_member" partitions found: /dev/sda1, /dev/sda2 /dev/sda1: bootable = 0 can_expand_content = 1 expand_content_method = resize2fs fssize = 32490496 name = /dev/sda1 part_end = 33587199 part_num = 1 part_size = 33554432 par...
2010 Dec 24
0
builder-debian libguestfs success 3f4dc56a32074a02b1b829bd7a91878f73022d1d
...quot; 1 = -1 (error) part_get_bootable "/dev/sda" 2 = 0 part_get_mbr_id "/dev/sda" 2 = -1 (error) pvs_full = <struct guestfs_lvm_pv_list *> vfs_type "/dev/sda1" = "ext2" mount_ro "/dev/sda1" "/" = 0 statvfs "/" = <struct guestfs_statvfs *> umount_all = 0 vfs_type "/dev/sda2" = "LVM2_member" partitions found: /dev/sda1, /dev/sda2 /dev/sda1: bootable = 0 can_expand_content = 1 expand_content_method = resize2fs fssize = 32490496 name = /dev/sda1 part_end = 33587199 part_num = 1 part_size = 33554432 par...
2011 Jan 07
0
builder-debian libguestfs success 7e1114445e713c4a15f3f2cede5842044de1735a
...quot; 1 = -1 (error) part_get_bootable "/dev/sda" 2 = 0 part_get_mbr_id "/dev/sda" 2 = -1 (error) pvs_full = <struct guestfs_lvm_pv_list *> vfs_type "/dev/sda1" = "ext2" mount_ro "/dev/sda1" "/" = 0 statvfs "/" = <struct guestfs_statvfs *> umount_all = 0 vfs_type "/dev/sda2" = "LVM2_member" partitions found: /dev/sda1, /dev/sda2 /dev/sda1: bootable = 0 can_expand_content = 1 expand_content_method = resize2fs fssize = 32490496 name = /dev/sda1 part_end = 33587199 part_num = 1 part_size = 33554432 par...
2010 Dec 24
1
builder-ubuntu libguestfs success 3f4dc56a32074a02b1b829bd7a91878f73022d1d
...quot; 1 = -1 (error) part_get_bootable "/dev/sda" 2 = 0 part_get_mbr_id "/dev/sda" 2 = -1 (error) pvs_full = <struct guestfs_lvm_pv_list *> vfs_type "/dev/sda1" = "ext2" mount_ro "/dev/sda1" "/" = 0 statvfs "/" = <struct guestfs_statvfs *> umount_all = 0 vfs_type "/dev/sda2" = "LVM2_member" partitions found: /dev/sda1, /dev/sda2 /dev/sda1: bootable = 0 can_expand_content = 1 expand_content_method = resize2fs fssize = 32490496 name = /dev/sda1 part_end = 33587199 part_num = 1 part_size = 33554432 par...
2010 Dec 07
0
builder-debian libguestfs success 4b8f70d46dcfed1489c97f822e263b8615f21ea0
...quot; 1 = -1 (error) part_get_bootable "/dev/sda" 2 = 0 part_get_mbr_id "/dev/sda" 2 = -1 (error) pvs_full = <struct guestfs_lvm_pv_list *> vfs_type "/dev/sda1" = "ext2" mount_ro "/dev/sda1" "/" = 0 statvfs "/" = <struct guestfs_statvfs *> umount_all = 0 vfs_type "/dev/sda2" = "LVM2_member" partitions found: /dev/sda1, /dev/sda2 /dev/sda1: bootable = 0 can_expand_content = 1 expand_content_method = resize2fs fssize = 32490496 name = /dev/sda1 part_end = 33587199 part_num = 1 part_size = 33554432 par...
2010 Dec 08
0
builder-ubuntu libguestfs success 4e8ad174cadf9e75401b7fa0d380d4c84c29c9ec
...quot; 1 = -1 (error) part_get_bootable "/dev/sda" 2 = 0 part_get_mbr_id "/dev/sda" 2 = -1 (error) pvs_full = <struct guestfs_lvm_pv_list *> vfs_type "/dev/sda1" = "ext2" mount_ro "/dev/sda1" "/" = 0 statvfs "/" = <struct guestfs_statvfs *> umount_all = 0 vfs_type "/dev/sda2" = "LVM2_member" partitions found: /dev/sda1, /dev/sda2 /dev/sda1: bootable = 0 can_expand_content = 1 expand_content_method = resize2fs fssize = 32490496 name = /dev/sda1 part_end = 33587199 part_num = 1 part_size = 33554432 par...