search for: part_init

Displaying 20 results from an estimated 102 matches for "part_init".

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.
2016 Feb 03
0
[PATCH 1/3] tests: Increase the size of the /dev/sda and /dev/sdb test devices.
...quot; }; ["write"; "/new"; "new file contents"]; ["cat"; "/new"]], "new file contents"), []; InitEmpty, Always, TestRun ( - [["part_disk"; "/dev/sda"; "mbr"]; + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; ["mkfs_b"; "vfat"; "32768"; "/dev/sda1"]]), []; InitEmpty, Always, TestLastFail ( -...
2013 Apr 29
3
[PATCH] Fix make-fedora-img for btrfs minimum size
This first factors out all the partition sizing, and then resizes the images created to be 1GB instead of 512MB, to work around a size limitation with btrfs: mkfs_btrfs: /dev/vda2: device /dev/vda2 is too small (must be at least 256 MB)
2016 Jan 19
0
[PATCHv2 3/3] resize: preserve GPT disk GUID.
...ce disk's partition layout. *) let get_partition_content = let pvs_full = Array.to_list (g#pvs_full ()) in @@ -977,7 +984,10 @@ read the man page virt-resize(1). let last_error = ref "" in let rec initialize_partition_table g attempts = let ok = - try g#part_init "/dev/sdb" parttype_string; true + try + g#part_init "/dev/sdb" parttype_string; + may (g#part_set_disk_guid "/dev/sdb") disk_guid; + true with G.Error error -> last_error := error; false in if ok then g, true...
2016 Jan 25
1
[PATCH] actions: expand partitions for btrfs_image test
...2 deletions(-) diff --git a/generator/actions.ml b/generator/actions.ml index 75d3fc5..9ea5736 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -12680,8 +12680,8 @@ This enable skinny metadata extent refs." }; tests = [ InitEmpty, Always, TestRun ( [["part_init"; "/dev/sda"; "mbr"]; - ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; - ["part_add"; "/dev/sda"; "p"; "204800"; "409599"]; + ["part_add"; &...
2018 Nov 14
0
[PATCH v2] test-data: Allow tests to be run when Btrfs is not available.
...;fedora-btrfs.img-t", "raw", $IMAGE_SIZE); - $g->add_drive ("fedora-btrfs.img-t", format => "raw"); - $g->launch (); + $g->add_drive ("fedora-btrfs.img-t", format => "raw"); + $g->launch (); - $g->part_init ('/dev/sda', 'mbr'); - $g->part_add ('/dev/sda', 'p', 64, 524287); - $g->part_add ('/dev/sda', 'p', 524288, -64); + $g->part_init ('/dev/sda', 'mbr'); + $g->part_add ('/dev/sda', 'p', 64,...
2018 Nov 14
2
[PATCH v2] test-data: Allow tests to be run when Btrfs is not available.
v2: - Moved the btrfs available test into the subclause where it is used. Note I got tired of fighting emacs indentation mode and I pushed a whitespace only patch which fixes the indentation to be 4 spaces instead of 2 spaces: https://github.com/libguestfs/libguestfs/commit/df54c75d4c53ed580e5269306e11e0758d169452 This v2 patch requires that one. Rich.
2009 Dec 21
4
libguestfs on Ubuntu
...y Could not initialize KVM, will disable KVM support ><fs> list-devices /dev/sda ><fs> help part-disk NAME part-disk - partition whole disk with a single primary partition SYNOPSIS part-disk device parttype DESCRIPTION This command is simply a combination of "part_init" followed by "part_add" to create a single primary partition covering the whole disk. "parttype" is the partition table type, usually "mbr" or "gpt", but other possible values are described in "part_init". This command is dang...
2015 Mar 03
4
[PATCH 0/2] btrfs: add support to btrfs-image
This series adds new APIs to support btrfstune. Chen Hanxiao (2): New API: btrfs-image New API: btrfs_image_restore daemon/btrfs.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++ generator/actions.ml | 45 +++++++++++++++++++++++++++ src/MAX_PROC_NR | 2 +- 3 files changed, 133 insertions(+), 1 deletion(-) -- 2.1.0
2015 Mar 17
4
[PATCH] New API: part_get_part_type for showing partition type
...data extent refs." }; + { defaults with + name = "part_get_part_type"; + style = RString "partitiontype", [Device "device"; Int "partnum"], []; + proc_nr = Some 453; + tests = [ + InitEmpty, Always, TestResultString ( + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; + ["part_add"; "/dev/sda"; "e"; "204800"; "614400"]; + ["part_add"; &...
2017 Jul 29
5
[PATCH 1/1] New partition API: part_resize
...ect_os> to look for OSes)." }; + { defaults with + name = "part_resize"; added = (1, 37, 20); + style = RErr, [String (Device, "device"); Int "partnum"; Int64 "endsect"], []; + tests = [ + InitEmpty, Always, TestRun ( + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "primary"; "1"; "-1025"]; + ["part_resize"; "/dev/sda"; "1"; "-1"]]), [] + ]; + shortdesc = "resize a partit...
2016 Jan 19
4
[PATCHv2 0/3] Get/set disk GPT GUID API and support in virt-resize.
Some OSes (e.g. Windows Server 2012 R2) fail to boot after virt-resize due to changed disk guid. To fix it, we add new APIs: part_get_disk_guid part_set_disk_guid part_set_disk_guid_random We also preserve disk GUID in virt-resize. Maxim Perevedentsev (3): New API: part_get_disk_guid and part_set_disk_guid. New API: part_set_disk_guid_random. resize: preserve GPT disk GUID.
2012 Dec 15
1
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
...e 'resize2fs' method. /dev/sda2: This partition will be resized from 69.0M to 512.0M. The filesystem ext3 on /dev/sda2 will be expanded using the 'resize2fs' method. ********** Setting up initial partition table on /dev/vg0/kvm105_img ... libguestfs: trace: part_init "/dev/sdb" "msdos" libguestfs: trace: part_init = 0 libguestfs: trace: pread_device "/dev/sda" 446 0 libguestfs: trace: pread_device = "\xebc\x90\x10\x8e\xd0\xbc\x00\xb0\xb8\x00\x00\x8e\xd8\x8e\xc0\xfb\xbe\x00|\xbf\x00\x06\xb9\x00\x02\xf3\xa4\xea!\x06\x00\x00\x...
2015 Jun 24
0
[PATCH 5/5] New API: btrfstune_set_uuid_random
...= "btrfstune_set_uuid_random"; added = (1, 29, 47); + style = RErr, [Device "device"], []; + proc_nr = Some 455; + optional = Some "btrfs"; camel_name = "BTRFSTuneSetUuidRandom"; + tests = [ + InitPartition, Always, TestRun ( + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; + ["mkfs_btrfs"; "/dev/sda1"; ""; ""; "NOARG"; ""; "NOARG"; "N...
2015 Mar 03
0
[PATCH 2/2] New API: btrfs_image_restore
...name = "btrfs_image_restore"; + style = RErr, [Pathname "image"; DeviceList "source"], []; + proc_nr = Some 454; + optional = Some "btrfs"; camel_name = "BTRFSImage"; + tests = [ + InitPartition, Always, TestRun ( + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; + ["part_add"; "/dev/sda"; "p"; "204800"; "409599"]; + ["part_add"; &...
2015 Mar 03
0
[PATCH 1/2] New API: btrfs-image
..., [DeviceList "source"; Pathname "image"], [OInt "compresslevel"; OInt "numthreads"]; + proc_nr = Some 453; + optional = Some "btrfs"; camel_name = "BTRFSImage"; + tests = [ + InitPartition, Always, TestRun ( + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; + ["part_add"; "/dev/sda"; "p"; "204800"; "409599"]; + ["mkfs_btrfs";...
2017 Jul 30
0
Re: [PATCH 1/1] New partition API: part_resize
...}; > > + { defaults with > + name = "part_resize"; added = (1, 37, 20); > + style = RErr, [String (Device, "device"); Int "partnum"; Int64 "endsect"], []; > + tests = [ > + InitEmpty, Always, TestRun ( > + [["part_init"; "/dev/sda"; "mbr"]; > + ["part_add"; "/dev/sda"; "primary"; "1"; "-1025"]; > + ["part_resize"; "/dev/sda"; "1"; "-1"]]), [] > + ]; > + shortdesc = &...
2015 Mar 24
1
[PATCH v3] New API: btrfs-image
...mage"; + style = RErr, [DeviceList "source"; Pathname "image"], [OInt "compresslevel"]; + proc_nr = Some 453; + optional = Some "btrfs"; camel_name = "BTRFSImage"; + tests = [ + InitPartition, Always, TestRun ( + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; + ["part_add"; "/dev/sda"; "p"; "204800"; "409599"]; + ["mkfs_btrfs";...
2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
...system_show_all"; added = (1, 29, 46); + style = RStructList ("fsshow", "btrfsfsshow"), [], []; + (*style = RString "output", [], [OString "device"];*) + proc_nr = Some 455; + tests = [ + InitPartition, Always, TestRun ( + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; + ["part_add"; "/dev/sda"; "p"; "204800"; "-64"]; + ["mkfs_btrfs"; &q...
2016 Feb 08
1
[PATCH] tests: reduce sizes of scratch disks to 2 GB
...t;PART_ENTRY_SIZE\", \"4194049\") == 0"), []; ]; shortdesc = "print block device attributes"; longdesc = "\ @@ -12712,8 +12712,8 @@ This enable skinny metadata extent refs." }; tests = [ InitEmpty, Always, TestRun ( [["part_init"; "/dev/sda"; "mbr"]; - ["part_add"; "/dev/sda"; "p"; "64"; "4095999"]; - ["part_add"; "/dev/sda"; "p"; "4096000"; "8191999"]; + ["part_add"...