Displaying 20 results from an estimated 83 matches for "blockdev_getsize64".
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%
2016 Feb 03
5
[PATCH 0/3] tests: Various fixes for btrfs and aarch64.
These patches fix btrfs on aarch64. You still need btrfs-progs 4.4
which was only released a few days ago.
Rich.
2012 Dec 15
1
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
...ter = 0
libguestfs: trace: available "ntfsprogs ntfs3g"
libguestfs: trace: available = 0
libguestfs: trace: available "btrfs"
libguestfs: trace: available = 0
libguestfs: trace: blockdev_getss "/dev/sdb"
libguestfs: trace: blockdev_getss = 512
libguestfs: trace: blockdev_getsize64 "/dev/sda"
libguestfs: trace: blockdev_getsize64 = 1073741824
libguestfs: trace: blockdev_getsize64 "/dev/sdb"
libguestfs: trace: blockdev_getsize64 = 42949672960
libguestfs: trace: part_get_parttype "/dev/sda"
libguestfs: trace: part_get_parttype = "msdos&qu...
2016 Feb 03
0
[PATCH 1/3] tests: Increase the size of the /dev/sda and /dev/sdb test devices.
...24*1024/512"), []
];
shortdesc = "get total size of device in 512-byte sectors";
longdesc = "\
@@ -4798,7 +4799,8 @@ This uses the L<blockdev(8)> command." };
proc_nr = Some 63;
tests = [
InitEmpty, Always, TestResult (
- [["blockdev_getsize64"; "/dev/sda"]], "ret == UINT64_C (524288000)"), []
+ [["blockdev_getsize64"; "/dev/sda"]],
+ "ret == INT64_C (10)*1024*1024*1024"), []
];
shortdesc = "get total size of device in bytes";
longdesc = "...
2016 Jul 06
1
Re: list-filesystems and btrfs snapshots
...stubs.c. That means we will get an error
> trying to call blockdev - oriented functions at these devices.
>
> =========================
>
> After grepping "list_filesystems" issues were found in:
> - virt-sparsify (in-place and copying): is_lv
> - virt-filesystems: blockdev_getsize64
> - virt-cat (inspect_os) treats this as multiboot system and refuses
> to proceed
> - virt-rescue --suggest suggests all snapshots (maybe this is correct)
> - virt-sysprep --operation fs-uuids goes into infinite loop
>
> [ 144.2] Performing "fs-uuids" ...
> virt-sys...
2015 Oct 20
1
[PATCH v3 02/13] v2v: factor out overlay creation
...ist of overlays structs. Query each disk for its
- * virtual size, and fill in a few other fields.
- *)
- let overlays =
- mapi (
- fun i (overlay_file, source) ->
- let sd = "sd" ^ drive_name i in
- let dev = "/dev/" ^ sd in
- let vsize = g#blockdev_getsize64 dev in
-
- { ov_overlay_file = overlay_file; ov_sd = sd;
- ov_virtual_size = vsize; ov_source = source }
- ) overlays in
-
(* Work out where we will write the final output. Do this early
* just so we can display errors to the user before doing too much
* work.
@@ -385...
2017 Jan 12
0
[PATCH] resize: support non-local output disks (RHBZ#1404182)
..._format ~readonly:false ~cachemode:"unsafe"
- outfile;
+ ~protocol ?server ?username ?secret:password path;
if not (quiet ()) then Progress.set_up_progress_bar ~machine_readable g;
g#launch ();
@@ -368,7 +378,7 @@ read the man page virt-resize(1).
let insize = g#blockdev_getsize64 "/dev/sda" in
let outsize = g#blockdev_getsize64 "/dev/sdb" in
debug "%s size %Ld bytes" (fst infile) insize;
- debug "%s size %Ld bytes" outfile outsize;
+ debug "%s size %Ld bytes" (fst outfile) outsize;
sectsize, insize, outs...
2017 Feb 06
1
[PATCH v3] resize: support non-local output disks (RHBZ#1404182)
...- outfile;
+ add_drive_uri g ?format:output_format ~readonly:false ~cachemode:"unsafe"
+ (snd outfile);
if not (quiet ()) then Progress.set_up_progress_bar ~machine_readable g;
g#launch ();
@@ -368,7 +384,7 @@ read the man page virt-resize(1).
let insize = g#blockdev_getsize64 "/dev/sda" in
let outsize = g#blockdev_getsize64 "/dev/sdb" in
debug "%s size %Ld bytes" (fst infile) insize;
- debug "%s size %Ld bytes" outfile outsize;
+ debug "%s size %Ld bytes" (fst outfile) outsize;
sectsize, insize, outs...
2017 Feb 02
2
[PATCH v2] resize: support non-local output disks (RHBZ#1404182)
..._format ~readonly:false ~cachemode:"unsafe"
- outfile;
+ ~protocol ?server ?username ?secret:password path;
if not (quiet ()) then Progress.set_up_progress_bar ~machine_readable g;
g#launch ();
@@ -368,7 +378,7 @@ read the man page virt-resize(1).
let insize = g#blockdev_getsize64 "/dev/sda" in
let outsize = g#blockdev_getsize64 "/dev/sdb" in
debug "%s size %Ld bytes" (fst infile) insize;
- debug "%s size %Ld bytes" outfile outsize;
+ debug "%s size %Ld bytes" (fst outfile) outsize;
sectsize, insize, outs...
2012 Oct 08
3
[PATCH v3 0/3] Add support for disk labels and hotplugging.
This is, I guess, version 3 of this patch series which adds disk
labels and hotplugging (only hot-add implemented so far).
The good news is .. it works!
Rich.
2014 Sep 09
2
Re: CoreOS support
...r = 0
libguestfs: trace: available "ntfsprogs ntfs3g"
libguestfs: trace: available = 0
libguestfs: trace: available "btrfs"
libguestfs: trace: available = -1 (error)
libguestfs: trace: blockdev_getss "/dev/sdb"
libguestfs: trace: blockdev_getss = 512
libguestfs: trace: blockdev_getsize64 "/dev/sda"
libguestfs: trace: blockdev_getsize64 = 10737418240
libguestfs: trace: blockdev_getsize64 "/dev/sdb"
libguestfs: trace: blockdev_getsize64 = 10737418240
libguestfs: trace: part_get_parttype "/dev/sda"
libguestfs: trace: part_get_parttype = "gpt"
vm...
2016 Feb 08
1
[PATCH] tests: reduce sizes of scratch disks to 2 GB
...et == INT64_C(2)*1024*1024*1024/512"), []
];
shortdesc = "get total size of device in 512-byte sectors";
longdesc = "\
@@ -4800,7 +4800,7 @@ This uses the L<blockdev(8)> command." };
tests = [
InitEmpty, Always, TestResult (
[["blockdev_getsize64"; "/dev/sda"]],
- "ret == INT64_C(10)*1024*1024*1024"), []
+ "ret == INT64_C(2)*1024*1024*1024"), []
];
shortdesc = "get total size of device in bytes";
longdesc = "\
@@ -9884,7 +9884,7 @@ device is stopped, but it i...
2017 Dec 12
1
Re: failure to virt-sysprep (FC27?)
Well the patch is attached ... but ... it doesn't solve the problem
at all:
libguestfs: trace: disk_virtual_size "test1.vmdk"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ --output json
libguestfs: command: run: \ test1.vmdk
qemu-img: Could not open 'test1.vmdk': Failed to get shared "write" lock
Is
2015 Aug 11
0
[PATCH v2 03/17] v2v: factor out overlay creation
...ist of overlays structs. Query each disk for its
- * virtual size, and fill in a few other fields.
- *)
- let overlays =
- mapi (
- fun i (overlay_file, source) ->
- let sd = "sd" ^ drive_name i in
- let dev = "/dev/" ^ sd in
- let vsize = g#blockdev_getsize64 dev in
-
- { ov_overlay_file = overlay_file; ov_sd = sd;
- ov_virtual_size = vsize; ov_source = source }
- ) overlays in
-
(* Work out where we will write the final output. Do this early
* just so we can display errors to the user before doing too much
* work.
@@ -451...
2018 Aug 14
2
[PATCH] v2v: Add --print-estimate option to print source size estimate.
...let { Guestfs.bfree; blocks; bsize } = g#statvfs "/" in
+ (blocks -^ bfree) *^ bsize, "filesystem"
+ )
+ else (
+ (* Assume the full size of the filesystem will have
+ * to be copied.
+ *)
+ g#blockdev_getsize64 dev, "device"
+ ) in
+
+ debug "print-estimate: %s %s uses %Ld (%s)"
+ what dev sz (human_size sz);
+ size +^ sz
+ ) 0L fses in
+
+ g#umount_all ();
+
+ printf "%Ld\n" size
+
(* Conversion can fail if there is no space on the g...
2012 Oct 08
5
[PATCH v4 0/5] Finish hotplugging support.
This rounds off hotplugging support by allowing you to add and remove
drives at any stage (before and after launch).
Rich.
2014 Sep 19
22
[PATCH v2 00/13] virt-resize: add support for resizing MBR logical partitions
Hi Rich,
This is v2 series to add support for resizing MBR logical partitions.
I found the reason of problem in v1 that parted reports error when
adding logical partitions, is that logical partitions are not aligned
to 2 sectors. This problem doesn't appear in v2.
This is for early review, because of:
1. I'm not sure the splitting of patches is appropriate or not, but
it's much
2018 Aug 14
0
Re: [PATCH] v2v: Add --print-estimate option to print source size estimate.
...ocks; bsize } = g#statvfs "/" in
> + (blocks -^ bfree) *^ bsize, "filesystem"
> + )
> + else (
> + (* Assume the full size of the filesystem will have
> + * to be copied.
> + *)
> + g#blockdev_getsize64 dev, "device"
> + ) in
> +
> + debug "print-estimate: %s %s uses %Ld (%s)"
> + what dev sz (human_size sz);
> + size +^ sz
> + ) 0L fses in
> +
> + g#umount_all ();
> +
> + printf "%Ld\n" size
>...
2014 Sep 26
9
[PATCH v4 0/7] virt-resize: add support for resizing logical partitions
Hi Rich,
This is v3 series to add support for resizing MBR logical partitions.
changes to v3:
1. merge patch 1 and patch 3 in v3
2. let mbr_part_type return 'primary' for GPT partitions
3. add test for resizing logical partitions
4. fix extending the extended partition (yet). see patch 7.
changes to v2:
1. remove p_part_num
2. remove filter_parts
3. name the function
2014 Sep 09
2
Re: CoreOS support
...op: proc 216 (available) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
udevadm settle
blockdev --getss /dev/sdb
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 3b | 00 00 00 01 | 00 12 34 03 | ...
libguestfs: trace: blockdev_getss = 512
libguestfs: trace: blockdev_getsize64 "/dev/sda"
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 3f | 00 00 00 00 | ...
guestfsd: main_loop: proc 59 (blockdev_getss) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
udevadm settle
blockdev --getsize64 /dev/sda
libguestfs: re...