search for: part_expand_gpt

Displaying 11 results from an estimated 11 matches for "part_expand_gpt".

2015 Dec 22
0
Re: [PATCHv2] New API: part_expand_gpt.
...mon/parted.c > index df6b7e7..033c136 100644 > --- a/daemon/parted.c > +++ b/daemon/parted.c > @@ -928,3 +928,36 @@ do_part_get_mbr_part_type (const char *device, int partnum) > reply_with_error ("strdup failed"); > return NULL; > } > + > +int > +do_part_expand_gpt(const char *device) > +{ > + CLEANUP_FREE char *err = NULL; > + > + /* If something is broken, sgdisk may try to correct it. > + * (e.g. recreate partition table and so on). > + * We do not want such behavior, so dry-run at first.*/ > + int r = commandf (NULL, &err,...
2016 Jan 20
1
[PATCHv2] New API: part_expand_gpt.
...tions(+), 2 deletions(-) create mode 100755 tests/daemon/test-expand-gpt.pl diff --git a/daemon/parted.c b/daemon/parted.c index 22cd92b..00ae424 100644 --- a/daemon/parted.c +++ b/daemon/parted.c @@ -1003,3 +1003,37 @@ do_part_set_disk_guid_random (const char *device) return 0; } + +int +do_part_expand_gpt(const char *device) +{ + CLEANUP_FREE char *err = NULL; + + /* If something is broken, sgdisk may try to correct it. + * (e.g. recreate partition table and so on). + * We do not want such behavior, so dry-run at first.*/ + int r = commandf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR,...
2015 Nov 25
1
[PATCH] New API: part_expand_gpt.
...+), 1 deletion(-) diff --git a/daemon/parted.c b/daemon/parted.c index df6b7e7..033c136 100644 --- a/daemon/parted.c +++ b/daemon/parted.c @@ -928,3 +928,36 @@ do_part_get_mbr_part_type (const char *device, int partnum) reply_with_error ("strdup failed"); return NULL; } + +int +do_part_expand_gpt(const char *device) +{ + CLEANUP_FREE char *err = NULL; + + /* If something is broken, sgdisk may try to correct it. + * (e.g. recreate partition table and so on). + * We do not want such behavior, so dry-run at first.*/ + int r = commandf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR,...
2015 Dec 01
3
[PATCHv2] New API: part_expand_gpt.
...est-expand-gpt.pl diff --git a/daemon/parted.c b/daemon/parted.c index df6b7e7..033c136 100644 --- a/daemon/parted.c +++ b/daemon/parted.c @@ -928,3 +928,36 @@ do_part_get_mbr_part_type (const char *device, int partnum) reply_with_error ("strdup failed"); return NULL; } + +int +do_part_expand_gpt(const char *device) +{ + CLEANUP_FREE char *err = NULL; + + /* If something is broken, sgdisk may try to correct it. + * (e.g. recreate partition table and so on). + * We do not want such behavior, so dry-run at first.*/ + int r = commandf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR,...
2015 Dec 22
1
Re: [PATCHv2] New API: part_expand_gpt.
On Tue, Dec 22, 2015 at 11:57:39AM +0300, Maxim Perevedentsev wrote: > Please take a look. I am really going on holiday now, and not back until Jan 4th. I'll have a look when I get back, unless Pino, Dan or others get there before me. Also, new APIs aren't 1.32 material, since I just stabilised it, created the release notes, and nearly released it. But we'll open the gate for
2019 Apr 15
1
[PATCH] daemon: drop error message check in do_part_expand_gpt
...| 20 +------------------- tests/gdisk/test-expand-gpt.pl | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/daemon/parted.c b/daemon/parted.c index 070ed4790..2cc714d64 100644 --- a/daemon/parted.c +++ b/daemon/parted.c @@ -699,26 +699,8 @@ do_part_expand_gpt(const char *device) { CLEANUP_FREE char *err = NULL; - /* If something is broken, sgdisk may try to correct it. - * (e.g. recreate partition table and so on). - * We do not want such behavior, so dry-run at first.*/ int r = commandf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR,...
2016 Aug 08
0
ANNOUNCE: libguestfs 1.34 released
...e stored (Pino Toscano). "mountable_device" "mountable_subvolume" Split a Mountable into device name and subvolume (Cédric Bosdonnat). "ntfscat_i" Download NTFS file by inode number (Matteo Cafasso). "part_expand_gpt" Allow in-place expanding of GPT partitions by moving the second (backup) partition table to the end of the disk (Maxim Perevedentsev). "part_get_disk_guid" "part_set_disk_guid" "part_set_disk_guid_random"...
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.
..., []; + style = RErr, [String (Device, "device")], []; optional = Some "gdisk"; tests = [ InitGPT, Always, TestRun ( @@ -9509,7 +9509,7 @@ Return an error if the partition table of C<device> isn't GPT." }; { defaults with name = "part_expand_gpt"; added = (1, 33, 2); - style = RErr, [Device "device"], []; + style = RErr, [String (Device, "device")], []; optional = Some "gdisk"; shortdesc = "move backup GPT header to the end of the disk"; longdesc = "\ @@ -9522,7 +9522,7...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator. Rich.
2017 Feb 18
8
[PATCH 0/6] generator: Split up generator/actions.ml
Split up the huge generator/actions.ml into several smaller files. Rich.