search for: part_add

Displaying 20 results from an estimated 111 matches for "part_add".

2016 Jan 25
1
[PATCH] actions: expand partitions for btrfs_image test
...00644 --- 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"; "/dev/sda"; "p"; "64&quot...
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.
2014 Sep 22
1
Re: [PATCH v3 5/7] resize: add function mbr_part_type
...artition then "primary" > + else if x.p_part.G.part_num <= 4l && x.p_type = ContentExtendedPartition then "extended" > + else "logical" in > + > (* Now partition the target disk. *) > List.iter ( > fun p -> > - g#part_add "/dev/sdb" "primary" p.p_target_start p.p_target_end > + g#part_add "/dev/sdb" (mbr_part_type p) p.p_target_start p.p_target_end > ) partitions; > > (* Copy over the data. *) I don't think the comment is true: $ guestfis...
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)
2014 Jul 15
2
Re: virt-resize: support to MBR logical partitions and some question
...n Wed, Jun 04, 2014 at 10:21:41AM +0800, Hu Tao wrote: > > Hi, > > > > I'm adding support to resizing logical partitions(patch is in progess). > > But encounter an error when adding a logical partition in dest image: > > > > virt-resize: libguestfs error: part_add: parted: /dev/sdb: Warning: The resulting partition is not properly aligned for best performance. > > Error: Error informing the kernel about modifications to partition /dev/sdb5 -- Device or resource busy. This means Linux won't know about any changes you made to /...
2015 Mar 17
4
[PATCH] New API: part_get_part_type for showing partition type
...pe"; + 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"; "/dev/sda"; "l"; "204864&...
2018 Nov 14
0
[PATCH v2] test-data: Allow tests to be run when Btrfs is not available.
...->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, 524287); + $g->...
2016 Feb 08
1
[PATCH] tests: reduce sizes of scratch disks to 2 GB
...rtdesc = "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"; "/dev/sda"; "p"; "64&q...
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.
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
2014 Sep 19
1
Re: [PATCH v2 08/13] resize: add function mbr_part_type
...xtendedPartition then "primary" > + else if x.p_part_num <= 4 && x.p_type = ContentExtendedPartition then "extended" > + else "logical" in > + > (* Now partition the target disk. *) > List.iter ( > fun p -> > - g#part_add "/dev/sdb" "primary" p.p_target_start p.p_target_end > + g#part_add "/dev/sdb" (mbr_part_type p) p.p_target_start p.p_target_end > ) partitions; The big problem with this is I think it doesn't work properly for GPT. GPT has no idea wh...
2015 Mar 03
0
[PATCH 2/2] New API: btrfs_image_restore
..."; 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"; "/dev/sda"; "p"; "409600&...
2014 Jun 04
3
virt-resize: support to MBR logical partitions and some question
Hi, I'm adding support to resizing logical partitions(patch is in progess). But encounter an error when adding a logical partition in dest image: virt-resize: libguestfs error: part_add: parted: /dev/sdb: Warning: The resulting partition is not properly aligned for best performance. Error: Error informing the kernel about modifications to partition /dev/sdb5 -- Device or resource busy. This means Linux won't know about any changes you made to /dev/sd...
2016 Feb 03
0
[PATCH 1/3] tests: Increase the size of the /dev/sda and /dev/sdb test devices.
...["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 ( - [["part_disk"; "/dev/sda";...
2015 Mar 23
0
Re: [PATCH] New API: part_get_part_type for showing partition type
...tring "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"; "/dev/sda"; "l"; &qu...
2015 Mar 24
1
[PATCH 2/2] New API: part_get_part_type for showing partition type
...pe"; + 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"; "/dev/sda"; "l"; "204864&...
2012 Dec 15
2
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
...a`\x1e\xc1\xe0\x03\x89\xc11\xff1\xf6\x8e\xdb\xfc\xf3\xa5\x1f\xe8>\x00t\x06\xbe;\x81\xe8c\x00a\x83}\x08\x00\x0f\x85\x1d\xff\x83"<truncated, original size 2097152 bytes> 512 libguestfs: trace: pwrite_device = 2097152 align_first_partition_and_fix_bootloader = false libguestfs: trace: part_add "/dev/sdb" "primary" 2048 82835071 libguestfs: trace: part_add = 0 libguestfs: trace: part_add "/dev/sdb" "primary" 82835072 83883647 libguestfs: trace: part_add = 0 Copying /dev/sda1 ... libguestfs: trace: copy_device_to_device &...
2015 Jan 13
3
[PATCH] mkfs: add 'label' optional argument
...quot;/dev/sda1"; "/"]; ["umount"; "/"; "false"; "false"]; ["mounts"]], "is_string_list (ret, 0)"), [] @@ -4186,9 +4186,9 @@ See also: C<guestfs_mountpoints>" }; ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; ["part_add"; "/dev/sda"; "p"; "204800"; "409599"]; ["part_add"; "/dev/sda"; "p"; "409600&...
2014 Sep 22
13
[PATCH v3 0/7] add support to resize MBR logical partitions
Hi Rich, This is v3 series to add support for resizing MBR logical partitions. changes to v2: 1. remove p_part_num 2. remove filter_parts 3. name the function calculate_target_partitions 4. remove the code to restart guest introduced in v2 changes to v1: 1. spit the patches so it's easier to review 2. fix the parted error caused by unaligned logical partitions 3. extend the
2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
...", "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"; "/dev/sda1 /dev/sda2"; "&quo...