search for: getsize64

Displaying 20 results from an estimated 20 matches for "getsize64".

Did you mean: getsize
2010 Aug 04
1
[PATCH] Correctly detect the size of a block device over SSH
When fetching a storage volume over SSH, we were detecting its size with a simple 'stat -c %s'. While this works fine for files, it won't return the correct size of a block device. This patch uses the output of 'blockdev --getsize64' for block devices, and stat as before for regular files. Fixes RHBZ#620698 --- lib/Sys/VirtV2V/Transfer/SSH.pm | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/lib/Sys/VirtV2V/Transfer/SSH.pm b/lib/Sys/VirtV2V/Transfer/SSH.pm index 66ec294..5f54f0e 100...
2015 Sep 17
1
Wrong deficit calculation in virt-resize.
Hello guys! I tried to shrink a partition when resizing an image using virt-resize. The numbers and result are weird. ================BEFORE================ ><fs> blockdev-getsize64 /dev/sdc 4294967296 ><fs> part-list /dev/sdc [0] = { part_num: 1 part_start: 65536 part_end: 2193555455 part_size: 2193489920 } [1] = { part_num: 2 part_start: 2193555456 part_end: 4294967295 part_size: 2101411840 } ><fs> list-filesystems /dev/sdc1: ext...
2011 Apr 28
10
Expanding a virtual block device
Hi list. I''m running Xen 4.0.1 on Debian. I''m trying to live resize a block device : - I have a arbitrary block device in my dom0 (/dev/mapper/vm-vol42). - I start a PV domain with that device as a disk (disk = [''phy:/dev/mapper/vm-vol42,xvda,w'']). - I resize vm-vol42 in the dom0 (adding size only) - the dom0 sees the device''s new size. -
2014 Nov 23
0
[PATCH 2/3] New API: guestfs_blockdev_setra: Adjust readahead for filesystems and devices.
...;, -1, 1); } int @@ -128,23 +138,23 @@ do_blockdev_setbsz (const char *device, int blocksize) int64_t do_blockdev_getsz (const char *device) { - return call_blockdev (device, "--getsz", 0, 1); + return call_blockdev (device, "--getsz", -1, 1); } int64_t do_blockdev_getsize64 (const char *device) { - return call_blockdev (device, "--getsize64", 0, 1); + return call_blockdev (device, "--getsize64", -1, 1); } int do_blockdev_flushbufs (const char *device) { - return call_blockdev (device, "--flushbufs", 0, 0); + return call_blockde...
2010 May 21
4
[PATCH 0/4] Allow shrinking of ext2, PVs and NTFS
...uestfish, the libguestfs filesystem interactive shell for editing virtual machine filesystems. Type: 'help' for a list of commands 'man' to read the manual 'quit' to quit the shell ><fs> vfs-type /dev/vda1 ext3 ><fs> blockdev-getsize64 /dev/vda1 1073741312 ><fs> resize2fs-size /dev/vda1 100M ><fs> blockdev-getsize64 /dev/vda1 # container size same 1073741312 ><fs> mount-ro /dev/vda1 / # but filesystem is smaller ><fs> df-h Filesystem Size Used Avail Use%...
2014 Nov 23
7
[PATCH 0/3] patches needed for virt-bmap
See http://rwmj.wordpress.com/2014/11/23/mapping-files-to-disk/
2014 Nov 24
2
[PATCH v2 0/2] patches needed for virt-bmap
Does *not* incorporate changes suggested by Pino yet. Rich.
2011 Apr 09
16
wrong values in "df" and "btrfs filesystem df"
Hallo, linux-btrfs, First I create an array of 2 disks with mkfs.btrfs -d raid0 -m raid1 /dev/sdb1 /dev/sdd1 and mount it at /srv/MM. Then I fill it with about 1,6 TByte. And then I add /dev/sde1 via btrfs device add /dev/sde1 /srv/MM btrfs filesystem balance /srv/MM (it run about 20 hours) Then I work on it, copy some new files, delete some old files - all works well. Only df
2009 Nov 04
1
[PATCH] Generic partition creation interface.
...is a 1 exabyte partition: ><fs> sparse /mnt/tmp/test/test.img 1E ><fs> run ><fs> part-init gpt /dev/vda ><fs> part-add /dev/vda primary 0 0 ><fs> list-devices /dev/vda ><fs> list-partitions /dev/vda1 ><fs> blockdev-getsize64 /dev/vda1 1099511627775983104 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v...
2010 Apr 06
1
[PATCH] LocalCopy: Use blockdev to get the size of block devices
...error => $!))); - my $vol = $target->create_volume($name, $st->size); + my $size; + + # If it's a block device, use the output of blockdev command + if (S_ISBLK($st->mode)) { + my $blockdev; + open($blockdev, '-|', 'blockdev', '--getsize64', $path) + or die("Unable to execute blockdev: $!"); + + while (<$blockdev>) { + if (defined($size)) { + my $error = "blockdev returned multiple output lines:\n$size\n"; + $error .= $_; + while(&...
2019 Jul 04
3
[PATCH] v2v: Allow Windows virtio ISO to be a block device as well as a regular file.
Thanks: Steven Rosenberg --- v2v/windows_virtio.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml index 59b0bf493..56c7a6757 100644 --- a/v2v/windows_virtio.ml +++ b/v2v/windows_virtio.ml @@ -338,7 +338,7 @@ and copy_from_virtio_win g inspect srcdir destdir filter missing = ) paths ) ) - else if is_regular_file
2011 Jan 26
1
[PATCH] Don't use libvirt for volume information when converting with libvirtxml
Unless you're lucky, the target volumes won't be in a storage pool, so libvirt will return an error. For libvirtxml we know that the storage is local, so we can inspect it directly. We use qemu-img to determine format and file size. --- lib/Sys/VirtV2V/Connection/LibVirtXMLSource.pm | 48 ++++++++++++++++++++--- 1 files changed, 41 insertions(+), 7 deletions(-) diff --git
2008 Aug 09
4
Upgrade 3.0.3 to 3.2.1
...e to keep my domUs untouched for the migration process so i tried to start a domU on my new xen host with the old configuration and old domU kernel. But it fails to access the disks and i don''t know what am i missing!? The disks are accessible from the new xen host with e.g. blockdev --getsize64 /dev/xbd/test1.sda2 Has anyone an idea for me what''s wrong? Is it possible that device names within the domU has changed? Additional info: ==================================== root@xenhost:~# cat /etc/xen/test1 name = "test1" #cpus = "" vcpus = "8" memory...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...path => $path, - error => $!))); - - my $size; - - # If it's a block device, use the output of blockdev command - if (S_ISBLK($st->mode)) { - my $blockdev; - open($blockdev, '-|', 'blockdev', '--getsize64', $path) - or die("Unable to execute blockdev: $!"); - - while (<$blockdev>) { - if (defined($size)) { - my $error = "blockdev returned multiple output lines:\n$size\n"; - $error .= $_; - while(&...
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
...guestfs: 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...
2014 Sep 09
2
Re: CoreOS support
...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...
2015 May 15
5
[PATCH 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
.. and a lot of refactoring. https://bugzilla.redhat.com/show_bug.cgi?id=1167623 Rich.
2015 May 15
6
[PATCH v2 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
https://bugzilla.redhat.com/show_bug.cgi?id=1167623
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change. I'll get back to that series shortly ;-) It turned into a factorization and constification exercise during which I got a taste of ocaml. Thanks to Rich Jones for help with a few snippets in generator.ml. The overall result is that many previously-manually-maintained bits from daemon/*.c functions are now hoisted into the automatically-