search for: part_set_mbr_id

Displaying 20 results from an estimated 22 matches for "part_set_mbr_id".

Did you mean: part_get_mbr_id
2014 Jul 01
3
libguestfs on proxmox
...??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? 00:00 libguestfs: trace: copy_device_to_device = 0 libguestfs: trace: part_set_bootable "/dev/sdb" 1 true libguestfs: trace: part_set_bootable = 0 libguestfs: trace: part_set_mbr_id "/dev/sdb" 1 7 libguestfs: trace: part_set_mbr_id = 0 libguestfs: trace: shutdown libguestfs: trace: internal_autosync libguestfs: trace: internal_autosync = 0 libguestfs: trace: shutdown = 0 libguestfs: trace: close libguestfs: trace: add_drive "vm-2000-disk-1.qcow2.out" "...
2014 Feb 03
2
[PATCH] resize: properly restore GPT partition types
...gful. *) p_operation = OpIgnore; @@ -1103,11 +1118,20 @@ read the man page virt-resize(1). if p.p_bootable then g#part_set_bootable "/dev/sdb" p.p_target_partnum true; - (match p.p_mbr_id with - | None -> () - | Some mbr_id -> - g#part_set_mbr_id "/dev/sdb" p.p_target_partnum mbr_id - ); + match parttype with + | GPT -> + (match p.p_gpt_type with + | None -> () + | Some gpt_type -> + g#part_set_gpt_type "/dev/sdb" p.p_target_partnum gpt_type + ) + | MBR -&...
2012 Dec 15
1
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
.../dev/sda2 ... libguestfs: trace: copy_device_to_device "/dev/sda2" "/dev/sdb2" "size:72351744" libguestfs: trace: copy_device_to_device = 0 libguestfs: trace: part_set_bootable "/dev/sdb" 1 true libguestfs: trace: part_set_bootable = 0 libguestfs: trace: part_set_mbr_id "/dev/sdb" 1 131 libguestfs: trace: part_set_mbr_id = 0 libguestfs: trace: part_set_mbr_id "/dev/sdb" 2 130 libguestfs: trace: part_set_mbr_id = 0 libguestfs: trace: umount_all libguestfs: trace: umount_all = 0 libguestfs: trace: sync libguestfs: trace: sync = 0 libguest...
2014 Feb 03
0
Re: [PATCH] resize: properly restore GPT partition types
...| None -> () > + | Some gpt_type -> > + g#part_set_gpt_type "/dev/sdb" p.p_target_partnum gpt_type > + ) > + | MBR -> > + (match p.p_mbr_id with > + | None -> () > + | Some mbr_id -> > + g#part_set_mbr_id "/dev/sdb" p.p_target_partnum mbr_id > + ) With the type above, you could write: match parttype, partition_id with | GPT, GPT_ID gpt_type -> g#part_set_gpt_type ... | MBR, MBR_ID mbr_id -> g#part_set_mbr_id ... | GPT, (No_ID | MBR_ID) | MBR, (No_ID | GPT_ID) -&...
2014 Sep 29
2
Change partition type
Hi, Is there any way to change the partition type using python-guestfs? I'm trying to recreate an NTFS partition, but can not change the type to NTFS (7 identifier in frisk) Filesystem from my disk g.list_filesystems() {'/dev/sda1': 'ntfs', '/dev/sda2': 'ntfs’} Fdisk print g.sfdisk_l(device) Disk /dev/sda: 51200 cylinders, 64 heads, 32 sectors/track Units =
2015 Nov 27
1
[PATCH 1/2] resize: Work around regression in sfdisk (RHBZ#1285847).
...artnum) p.p_label; + may (g#part_set_gpt_guid "/dev/sdb" p.p_target_partnum) p.p_guid; + + match parttype, p.p_id with + | GPT, GPT_Type gpt_type -> + g#part_set_gpt_type "/dev/sdb" p.p_target_partnum gpt_type + | MBR, MBR_ID mbr_id -> + g#part_set_mbr_id "/dev/sdb" p.p_target_partnum mbr_id + | GPT, (No_ID|MBR_ID _) | MBR, (No_ID|GPT_Type _) -> () + in + List.iter set_partition_bootable_and_id partitions; + (* Copy over the data. *) let copy_partition p = match p.p_operation with @@ -1202,26 +1224,6 @@ read the man...
2014 Jul 01
3
Re: libguestfs on proxmox
...▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 >> libguestfs: trace: copy_device_to_device = 0 >> libguestfs: trace: part_set_bootable "/dev/sdb" 1 true >> libguestfs: trace: part_set_bootable = 0 >> libguestfs: trace: part_set_mbr_id "/dev/sdb" 1 7 >> libguestfs: trace: part_set_mbr_id = 0 >> libguestfs: trace: shutdown >> libguestfs: trace: internal_autosync >> libguestfs: trace: internal_autosync = 0 >> libguestfs: trace: shutdown = 0 >> libguestfs: trace: close >> libguestf...
2018 Jan 10
0
[PATCH 3/3] resize: copy GPT partition flags
...guid "/dev/sdb" p.p_target_partnum) p.p_guid; + Option.may (g#part_set_gpt_attributes "/dev/sdb" p.p_target_partnum) p.p_attributes; match parttype, p.p_id with | GPT, GPT_Type gpt_type -> @@ -1205,7 +1214,7 @@ read the man page virt-resize(1). g#part_set_mbr_id "/dev/sdb" p.p_target_partnum mbr_id | GPT, (No_ID|MBR_ID _) | MBR, (No_ID|GPT_Type _) -> () in - List.iter set_partition_bootable_and_id partitions; + List.iter set_partition_bootable_attributes_and_id partitions; (* Copy over the data. *) let copy_partition p = --...
2018 Jan 15
0
[PATCH v2 3/3] resize: copy GPT partition flags
...guid "/dev/sdb" p.p_target_partnum) p.p_guid; + Option.may (g#part_set_gpt_attributes "/dev/sdb" p.p_target_partnum) p.p_attributes; match parttype, p.p_id with | GPT, GPT_Type gpt_type -> @@ -1205,7 +1214,7 @@ read the man page virt-resize(1). g#part_set_mbr_id "/dev/sdb" p.p_target_partnum mbr_id | GPT, (No_ID|MBR_ID _) | MBR, (No_ID|GPT_Type _) -> () in - List.iter set_partition_bootable_and_id partitions; + List.iter set_partition_attributes partitions; (* Copy over the data. *) let copy_partition p = -- 2.15.1
2014 Sep 30
0
Re: Change partition type
...gt; /dev/sda1 * 1 100 100 102400 7 HPFS/NTFS > /dev/sda2 101 51199 51099 52325376 83 Linux > /dev/sda3 0 - 0 0 0 Empty > /dev/sda4 0 - 0 0 0 Empty If it's MBR, then you can use g.part_set_mbr_id ("/dev/sda", 2, 7) For GPT use part_set_gpt_type which is similar but you have to use a GUID. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual...
2018 Jan 15
6
[PATCH v2 0/3] copying gpt attributes
Hi all, Here is the latest version of the series addressing Pino's comments. Cédric Bosdonnat (3): daemon: make sgdisk_info_extract_uuid_field more generic New APIs: part_set_gpt_attributes and part_get_gpt_attributes resize: copy GPT partition flags daemon/parted.ml | 45 +++++++++++++++++++++++++++++++++++---------- daemon/parted.mli | 3 +++
2018 Jan 16
4
[PATCH v3 0/3] copy GPT attributes
Hi all, Here is v3 of the series, taking Richard's comments in account. Cédric Bosdonnat (3): daemon: make sgdisk_info_extract_uuid_field more generic New APIs: part_set_gpt_attributes and part_get_gpt_attributes resize: copy GPT partition flags daemon/parted.ml | 45 +++++++++++++++++++++++++++++++++++---------- daemon/parted.mli | 2 ++ generator/actions_core.ml
2018 Jan 10
6
[PATCH 0/3] Handle GPT attribute flags
Hi all, Here is the series fixing the bug I mentioned on IRC regarding the GPT attribute flags to copy to the new disk in a virt-resize. Cédric Bosdonnat (3): daemon: make sgdisk_info_extract_uuid_field more generic New APIs: part_set_gpt_attributes and part_get_gpt_attributes resize: copy GPT partition flags daemon/parted.ml | 34 +++++++++++++++++++++++++++-------
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
2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got as far as compiling anything yet, but I've attached the C header for initial review. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490 -------------- next part -------------- An embedded and
2014 Jan 27
0
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
...quot;)) + mbr_id = 0xb; + else if (STREQ (type, "ntfs")) + mbr_id = 0x7; + else if (STRPREFIX (type, "ext")) + mbr_id = 0x83; + else if (STREQ (type, "minix")) + mbr_id = 0x81; + } + if (mbr_id != 0) { + if (guestfs_part_set_mbr_id (g, "/dev/sda", 1, mbr_id) == -1) + return -1; + } + } + + if (verbose) + fprintf (stderr, "creating %s filesystem on %s ...\n", type, dev); + + /* Create the filesystem. */ + if (STRNEQ (type, "btrfs")) { + int r; + + guestfs_push_error_handler...
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.
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 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...dbyte", [String (Device, "device"); Int "partnum"], []; fish_output = Some FishOutputHexadecimal; tests = [ InitEmpty, Always, TestResult ( @@ -5521,7 +5521,7 @@ types (see C<guestfs_part_get_parttype>)." }; { defaults with name = "part_set_mbr_id"; added = (1, 3, 2); - style = RErr, [Device "device"; Int "partnum"; Int "idbyte"], []; + style = RErr, [String (Device, "device"); Int "partnum"; Int "idbyte"], []; shortdesc = "set the MBR type byte (ID byte) of a p...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator. Rich.